/* Seção hero do app baseada no node Figma 2063:1884. */
.app-hero-section {
  width: 100%;
  padding: 29px 0 118px;
  background: #fafafa;
  overflow: visible;
}

/* Shell maior que o header, acompanhando o frame de 1588px do Figma. */
.app-hero-shell {
  width: min(1588px, 100%);
  margin: 0 auto;
}

/* Bloco azul-roxo principal com cantos grandes no topo do app. */
.app-hero-card {
  position: relative;
  height: 752px;
  border-radius: 60px;
  overflow: visible;
  background: linear-gradient(180deg, #65a4ff 0%, #7c5cff 100%);
}

/* Coluna de conteúdo textual da esquerda. */
.app-hero-copy {
  width: 853px;
  padding: 74px 0 0 83px;
  color: #ffffff;
}

/* Pílula superior do hero. */
.app-hero-eyebrow {
  width: auto;
  min-width: 249px;
  height: 45px;
  padding: 10px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: "Muring Display", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 1.65px;
  white-space: nowrap;
  text-transform: uppercase;
}

/* Título principal do bloco com pesos alternados e gradiente do Figma. */
.app-hero-title {
  width: 853px;
  margin: 30px 0 0;
  font-family: "Muring Display", system-ui, sans-serif;
  font-size: 60px;
  font-weight: 300;
  line-height: 1.13;
  letter-spacing: 0.02em;
  background: linear-gradient(174.07deg, #ffffff 35.58%, rgba(255, 255, 255, 0) 129.45%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.app-hero-title strong {
  font-weight: 700;
}

/* Texto de apoio com largura do node. */
.app-hero-description {
  width: 668px;
  margin: 37px 0 0;
  color: #ffffff;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.39;
  letter-spacing: 0;
}

.app-hero-description strong {
  font-weight: 700;
}

/* Grupo de CTAs e link secundário. */
.app-hero-actions {
  width: 451px;
  margin-top: 34px;
  display: grid;
  grid-template-columns: 234px 201px;
  grid-template-areas:
    "patient doctor"
    "more    more";
  gap: 0 16px;
}

.app-hero-actions a,
.app-hero-actions a * {
  cursor: pointer !important;
}

.app-hero-actions a {
  pointer-events: auto;
}

.app-hero-choice {
  position: relative;
  height: 69px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-family: "Muring Display", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.app-hero-choice--patient:hover {
  transform: translateY(-1px);
}

.app-hero-choice--patient {
  grid-area: patient;
  color: transparent;
  background: rgba(255, 255, 255, 0.78);
  --app-hero-choice-icon: url("../assets/figma/hero-mobile-patient.svg");
}

.app-hero-choice--patient:hover {
  background: #ffffff;
}

.app-hero-choice--doctor {
  grid-area: doctor;
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
  --app-hero-choice-icon: url("../assets/figma/hero-mobile-doctor.svg");
}

.app-hero-choice-icon {
  position: relative;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: block;
  background-image: var(--app-hero-choice-icon);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.app-hero-choice-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0;
  transform: scale(1);
  transform-origin: center;
  pointer-events: none;
}

.app-hero-choice--patient:hover .app-hero-choice-icon::after {
  animation: app-hero-choice-icon-pulse 720ms ease-out;
}

.app-hero-choice-label {
  display: block;
}

.app-hero-choice--patient .app-hero-choice-label {
  background:
    linear-gradient(173.4deg, #57d4ff 0%, #845cff 100%),
    linear-gradient(90deg, #895af6 0%, #895af6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

@keyframes app-hero-choice-icon-pulse {
  0% {
    opacity: 0.78;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-hero-choice--patient:hover .app-hero-choice-icon::after {
    animation: none;
  }
}

.app-hero-more {
  grid-area: more;
  width: 234px;
  height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: "Muring Display", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Bloco de download abaixo dos CTAs. */
.app-hero-download {
  width: 587px;
  max-width: 100%;
  margin-top: 34px;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.app-hero-download p {
  width: 587px;
  max-width: 100%;
  margin: 0;
  color: #ffffff;
  font-family: "Muring Display", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.59;
  letter-spacing: 0.36px;
}

.app-hero-stores {
  height: 51px;
  display: flex;
  align-items: flex-end;
  gap: 5.171px;
}

.app-hero-stores a,
.app-hero-stores img {
  width: 129.915px;
  height: 38.134px;
  display: block;
}

.app-hero-download--mobile {
  display: none;
}

/* Área visual com mockups sobrepostos à direita. */
.app-hero-visual {
  position: absolute;
  left: 688px;
  bottom: -118px;
  width: 650px;
  height: 849px;
  pointer-events: none;
}

.app-hero-phone {
  position: absolute;
  top: 0;
  width: 650px;
  height: 849px;
  object-fit: contain;
}

.app-hero-phone--shadow {
  left: -86px;
  display: none;
  opacity: 0.68;
  transform: translate(-14px, 44px) rotate(-3deg) scale(0.878);
  filter: blur(0.2px);
}

.app-hero-phone--main {
  left: 0;
}

/* Selo Anvisa no canto inferior direito do card. */
.app-hero-anvisa {
  position: absolute;
  right: 64px;
  bottom: 67px;
  width: 106px;
  height: 106px;
  display: block;
}

@media (max-width: 1340px) {
  .app-hero-section {
    padding-top: 24px;
  }

  .app-hero-shell {
    width: calc(100% - 48px);
  }

  .app-hero-card {
    height: calc((100vw - 48px) * 0.47355);
    min-height: 430px;
    max-height: 752px;
    border-radius: 42px;
  }

  .app-hero-copy {
    width: min(100%, 525px);
    padding: 44px 0 0 52px;
  }

  .app-hero-title {
    width: min(100%, 525px);
    margin-top: 22px;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.08;
  }

  .app-hero-description {
    width: min(100%, 430px);
    margin-top: 24px;
    font-size: clamp(14px, 1.36vw, 20px);
    line-height: 1.45;
  }

  .app-hero-actions {
    width: 276px;
    margin-top: 21px;
    grid-template-columns: 143px 123px;
    gap: 0 10px;
  }

  .app-hero-choice {
    height: 42px;
    gap: 6px;
    font-size: 12px;
  }

  .app-hero-choice-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .app-hero-more {
    width: 143px;
    height: 30px;
    font-size: 12px;
  }

  .app-hero-download {
    margin-top: 25px;
    gap: 17px;
  }

  .app-hero-download p {
    font-size: 12px;
  }

  .app-hero-stores a,
  .app-hero-stores img {
    width: 80px;
    height: auto;
  }

  .app-hero-visual {
    left: 376px;
    bottom: -64px;
    transform: scale(0.715);
    transform-origin: right bottom;
  }

  .app-hero-anvisa {
    right: 48px;
    bottom: 40px;
    width: 65px;
    height: 65px;
  }
}

@media (max-width: 900px) {
  .app-hero-section {
    padding-top: 10px;
    padding-bottom: 0;
  }

  .app-hero-shell {
    width: calc(100% - 32px);
  }

  .app-hero-card {
    height: auto;
    min-height: 0;
    padding: 42px 28px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border-radius: 42px;
  }

  .app-hero-copy {
    width: 100%;
    padding: 0;
    text-align: center;
  }

  .app-hero-title {
    width: 100%;
    margin-top: 26px;
    font-size: 46px;
    line-height: 1.08;
  }

  .app-hero-description {
    width: min(100%, 620px);
    margin: 26px auto 0;
    font-size: 20px;
  }

  .app-hero-actions {
    width: min(100%, 451px);
    margin: 30px auto 0;
  }

  .app-hero-download {
    margin-top: 54px;
    justify-items: center;
    gap: 16px;
  }

  .app-hero-visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 520px);
    height: 540px;
    margin-top: 30px;
    transform: none;
  }

  .app-hero-phone {
    width: 414px;
    height: auto;
  }

  .app-hero-phone--shadow {
    left: calc(50% - 230px);
    transform: translate(-28px, 28px) rotate(-3deg) scale(0.88);
  }

  .app-hero-phone--main {
    left: calc(50% - 207px);
  }

  .app-hero-anvisa {
    right: 26px;
    bottom: 32px;
    width: 82px;
    height: 82px;
  }
}

@media (max-width: 480px) {
  body.page-index main > .app-hero-section,
  .app-hero-section {
    padding-top: 0;
    padding-bottom: 0;
    overflow-x: clip;
  }

  .app-hero-shell {
    width: min(374px, calc(100% - 16px));
  }

  .app-hero-card {
    height: auto;
    min-height: 946px;
    margin-bottom: 0;
    padding: 28.5px 9px 24px;
    display: block;
    overflow: hidden;
    border-radius: 45px;
    background: linear-gradient(180deg, #65a4ff 0%, #7c5cff 100%);
  }

  .app-hero-copy {
    position: relative;
    z-index: 5;
    width: 100%;
    min-height: 889px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-hero-title {
    width: 355px;
    max-width: 100%;
    margin-top: 19px;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.13;
    letter-spacing: 0.02em;
  }

  .app-hero-eyebrow {
    height: 35px;
    min-width: 249px;
    padding: 10px 26px;
    font-size: 10px;
    line-height: 1.55;
    letter-spacing: 1.1px;
  }

  .app-hero-title strong {
    font-weight: 700;
  }

  .app-hero-description {
    width: 334px;
    max-width: 100%;
    margin-top: 19px;
    font-family: "Muring Display", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.59;
    letter-spacing: 0.3px;
  }

  .app-hero-actions {
    position: relative;
    z-index: 6;
    width: 332px;
    max-width: 100%;
    margin: 454px auto 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "patient"
      "more"
      "doctor";
    gap: 0;
  }

  .app-hero-choice {
    width: 332px;
    max-width: 100%;
    height: 69px;
    gap: 15px;
    font-family: "Muring Display", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.36px;
  }

  .app-hero-choice-icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .app-hero-choice--patient {
    padding: 21px 58px;
    color: transparent;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
  }

  .app-hero-choice--patient .app-hero-choice-label {
    background:
      linear-gradient(166.11deg, #57d4ff 0%, #845cff 100%),
      linear-gradient(90deg, #57d4ff 0%, #57d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
  }

  .app-hero-choice--doctor {
    margin-top: 22px;
    border: 2px solid #ffffff;
    color: #ffffff;
  }

  .app-hero-more {
    width: 234px;
    height: 49px;
    margin: 0 auto;
    font-size: 15px;
    line-height: normal;
    letter-spacing: 0.3px;
  }

  .app-hero-download--card {
    display: none;
  }

  .app-hero-download--mobile {
    position: static;
    width: 100%;
    max-width: none;
    margin: 16px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    pointer-events: auto;
  }

  .app-hero-download p {
    margin: 0;
    color: #64748b;
    font-family: "Muring Display", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.59;
    letter-spacing: 0.24px;
    text-align: center;
    white-space: nowrap;
  }

  .app-hero-stores {
    width: 193px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
  }

  .app-hero-stores a,
  .app-hero-stores img {
    width: 94px;
    height: 27px;
    display: block;
  }

  .app-hero-stores a:first-child img {
    content: url("../assets/figma/hero-mobile-google-play.svg");
  }

  .app-hero-stores a:last-child img {
    content: url("../assets/figma/hero-mobile-app-store.svg");
  }

  .app-hero-visual {
    position: absolute;
    left: 50%;
    top: 264px;
    z-index: 3;
    width: 345.271px;
    max-width: calc(100% - 28px);
    height: 450px;
    margin: 0;
    pointer-events: none;
    transform: translateX(-50%);
  }

  .app-hero-phone {
    position: absolute;
    max-width: none;
    object-fit: contain;
  }

  .app-hero-phone--shadow {
    left: 34.6px;
    top: 36.1px;
    width: 303.147px;
    height: 404.011px;
    display: block;
    opacity: 0.58;
    filter: blur(50px);
    mix-blend-mode: multiply;
    transform: rotate(-177.45deg) scaleY(-1);
    object-fit: cover;
    object-position: bottom;
  }

  .app-hero-phone--main {
    left: 0;
    top: 0;
    width: 345.271px;
    height: 450px;
    object-fit: cover;
    object-position: 50% 50%;
  }

  .app-hero-anvisa {
    left: calc(50% + 100px);
    top: 617px;
    right: auto;
    bottom: auto;
    z-index: 4;
    width: 66px;
    height: 66px;
  }
}

@media (max-width: 390px) {
  .app-hero-card {
    min-height: 946px;
    margin-bottom: 0;
  }

  .app-hero-copy,
  .app-hero-anvisa {
    transform: none;
  }
}
