.app-button {
  border: none;
  padding: 12px 24px;
  font-size: var(--text-base);
  line-height: 1.25;
  font-weight: bold;
  background-color: var(--color-primary-green-yellow);
  color: var(--color-primary-blue);
  border-radius: 24px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
  cursor: pointer;

  &:hover {
    background-color: var(--color-primary-green-yellow-hover);
  }

  &:focus {
    background-color: var(--color-primary-green-yellow-focus);
    outline: 2px solid var(--color-primary-green-yellow-outline);
    outline-offset: 2px;
  }

  &:active {
    background-color: var(--color-primary-green-yellow-active);
  }

  &.large {
    @media screen and (min-width: 768px) {
      font-size: var(--text-lg);
      padding: 16px 32px;
      border-radius: 32px;
    }
  }

  &.app-button--lg {
    padding: 16px 32px;
    font-size: var(--text-base);
    border-radius: 24px;

    @media screen and (min-width: 768px) {
      padding: 20px 40px;
      font-size: var(--text-lg);
      border-radius: 32px;
    }
  }

  &.outlined {
    background-color: transparent;
    color: white;
    border: 2px solid white;

    &:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    &:focus {
      background: rgba(255, 255, 255, 0.1);
      outline-offset: 2px;
    }

    &:active {
      background: rgba(255, 255, 255, 0.3);
      border-color: transparent;
    }
  }
}

.app-sheets {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: calc(100vw - 48px);
  gap: 20px;
  @media screen and (min-width: 768px) {
    max-width: 372px;
  }
  @media screen and (min-width: 1024px) {
    max-width: 472px;
  }
  @media screen and (min-width: 1280px) {
    max-width: 572px;
  }
}
.app-sheet {
  background: white;
  border-radius: 32px;
  display: flex;
  width: calc(100% - 36px);
  gap: 18px;
  padding: 18px;
  @media screen and (min-width: 768px) {
    gap: 24px;
    padding: 20px;
  }
  @media screen and (min-width: 1024px) {
    gap: 28px;
    padding: 24px;
  }
  > .app-sheet-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow:
      0px 4px 6px -4px #0000001a,
      0px 10px 15px -3px #0000001a;
    width: 50px;
    height: 50px;
    @media screen and (min-width: 1024px) {
      width: 56px;
      height: 56px;
    }
    > img {
      width: 28px;
      height: 28px;
    }
  }
  > .app-sheet-content {
    display: flex;
    flex-direction: column;
    color: var(--color-gray);

    > .app-sheet-title {
      font-family: "Montserrat", sans-serif;
      font-size: 20px;
      font-weight: 700;
      line-height: 1.25;
      @media screen and (min-width: 1024px) {
        font-size: 24px;
      }
    }
    > .app-sheet-description {
      font-family: "Montserrat", sans-serif;
      font-size: 16px;
      font-weight: 400;
      line-height: 1.4;
      @media screen and (min-width: 1024px) {
        font-size: 18px;
      }
    }
  }
}

.app-cards {
  display: flex;
  width: 100%;
  gap: 12px;
  overflow-x: scroll;

  @media screen and (min-width: 768px) {
    margin-right: 2rem;
    overflow: hidden;
    flex-wrap: wrap;
    max-width: 740px;
  }
  @media screen and (min-width: 1024px) {
    gap: 20px;
    margin-right: 13.5rem;
  }
  @media screen and (min-width: 1280px) {
    margin-right: 20.5rem;
  }

  > .app-card:first-child {
    margin-left: 24px;
    @media screen and (min-width: 768px) {
      margin-left: 0px;
    }
  }

  > .app-card:last-child {
    margin-right: 24px;
    @media screen and (min-width: 768px) {
      margin-right: 0px;
    }
  }
}
.app-card {
  background: #f3f3f3;
  color: #4a5565;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 16px;
  width: 218px;
  padding: 20px;
  @media screen and (min-width: 1024px) {
    gap: 28px;
    width: 264px;
    padding: 24px;
  }
  @media screen and (min-width: 1280px) {
    padding: 32px;
  }
  > .app-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow:
      0px 4px 6px -4px #0000001a,
      0px 10px 15px -3px #0000001a;
    width: 50px;
    height: 50px;
    @media screen and (min-width: 1024px) {
      width: 56px;
      height: 56px;
    }

    > img {
      width: 28px;
      height: 28px;
    }
  }
  > .app-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;

    color: var(--color-gray);
    @media screen and (min-width: 1024px) {
      gap: 12px;
    }
    > .app-card-title {
      font-family: "Montserrat", sans-serif;
      font-size: 20px;
      font-weight: 700;
      line-height: 1.25;
      @media screen and (min-width: 768px) {
        font-size: 18px;
      }
      @media screen and (min-width: 1024px) {
        font-size: 20px;
      }
    }
    > .app-card-description {
      font-family: "Montserrat", sans-serif;
      font-size: 14px;
      font-weight: 400;
      line-height: 1.4;
    }
  }
}

.app-ballons {
  position: relative;
  .app-ballon {
    position: absolute;

    padding-left: 12px;
    padding-right: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    @media screen and (min-width: 768px) {
      padding-left: 16px;
      padding-right: 16px;
      padding-top: 12px;
      padding-bottom: 12px;
    }
    @media screen and (min-width: 1024px) {
      padding-left: 24px;
      padding-right: 24px;
      padding-top: 12px;
      padding-bottom: 12px;
    }
    &:nth-child(2) {
      left: 30%;
      top: 0%;
    }
    &:nth-child(3) {
      right: 0%;
      top: 15%;
    }
    &:nth-child(4) {
      left: -5%;
      top: 25%;
    }
    &:nth-child(5) {
      right: 0%;
      top: 45%;
    }
    &:nth-child(6) {
      left: -5%;
      top: 55%;
    }
    &:nth-child(7) {
      right: 0%;
      top: 75%;
    }

    &::before {
      content: "";
      position: absolute;
      width: 0;
      height: 0;
      left: 0;
      top: 0%;
      width: 100%;
      height: 100%;
      background: var(--color-primary-green-yellow);
      z-index: 2;
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0px 0px 14px 0px #00000040;
    }
    .app-ballon-tip-wrapper {
      z-index: 3;
      position: absolute;
      width: 15px;
      height: 15px;
      bottom: 0px;
      transform: translate(-50%, 50%);
      left: 70%;
      clip-path: polygon(-50% 45%, 150% 45%, 150% 200%, -50% 200%);
      .app-ballon-tip {
        position: absolute;
        left: 0px;
        top: 0px;
        width: 15px;
        height: 15px;
        background: var(--color-primary-green-yellow);
        box-shadow: 0px 0px 14px 0px #00000040;
        transform: rotate(45deg);
      }
    }
    &:nth-child(3),
    &:nth-child(5),
    &:nth-child(7) {
      .app-ballon-tip-wrapper {
        left: 30%;
      }
    }
    > p {
      position: relative;
      z-index: 3;
      font-weight: 700;
      color: var(--color-primary-blue);
      font-size: 14px;
      @media screen and (min-width: 1024px) {
        font-size: 16px;
      }
    }
  }
}

.vertical-divider {
  height: 32px;
  width: 3px;
  background-color: currentColor;
}

.hero {
  height: calc(100vh - 4rem);
  align-items: flex-end !important;
  padding-bottom: 0px !important;
  @media screen and (min-width: 768px) {
    align-items: center !important;
    padding-bottom: 4rem !important;
    height: calc(100vh - 6rem);
  }

  .hero-content-wrapper {
    display: flex;
    justify-content: flex-end;
    bottom: 0px;
    position: absolute;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7) 46.36%,
      rgba(0, 0, 0, 0) 100%
    );
    > * {
      @starting-style {
        opacity: 0;
      }
      &:nth-child(1) {
        transition: opacity 1s ease-out 0.5s;
      }
      &:nth-child(2) {
        transition: opacity 1s ease-out 1s;
      }
      &:nth-child(3) {
        transition: opacity 1s ease-out 2s;
      }
    }
    @media screen and (min-width: 768px) {
      background: none;
    }
    .hero-content {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      padding-bottom: 2rem;
      gap: 16px;
      width: 100%;
      @media screen and (min-width: 768px) {
        max-width: 320px;
        padding-bottom: 0px;
      }
      @media screen and (min-width: 1024px) {
        max-width: 440px;
      }
    }
  }
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  width: 9rem;
  .logo-rota {
    width: 58%;
    margin-bottom: 4px;
  }
  .logo-carreiras {
    width: 100%;
  }

  .logo-estacio-container {
    margin-top: 4px;
    display: flex;
    align-items: center;
    width: 100%;
    .outline-trace {
      display: block;
      height: 1px;
      flex-grow: 1;
      width: 100%;
      background-color: white;
      opacity: 0.5;
      z-index: -1;
    }
    .logo-estacio {
      width: 50%;
      padding-left: 3px;
      padding-right: 3px;
      @media screen and (min-width: 1024px) {
        padding-left: 6px;
        padding-right: 4px;
      }
    }
  }
  @media screen and (min-width: 1024px) {
    width: 11rem;
    margin-top: 8px;
  }
}

.why-section-character {
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  height: 60vh;

  @media screen and (min-width: 768px) {
    position: absolute;
    left: calc(50% + 15.5rem);
    bottom: 0px;
    transform: translate(-50%, 0);
    height: 70vh;
  }

  @media screen and (min-width: 1024px) {
    left: calc(50% + 20rem);
  }
  @media screen and (min-width: 1280px) {
    left: calc(50% + 21rem);
  }
  > img {
    object-fit: contain;
    width: 280px;
    @media screen and (min-width: 768px) {
      width: 320px;
    }
    @media screen and (min-width: 1024px) {
      width: 350px;
    }
    @media screen and (min-width: 1280px) {
      width: 400px;
    }
  }
}

.mobile-preview {
  aspect-ratio: 406 / 540;
  width: min(calc(100vw - 80px), 360px);
  @media screen and (min-width: 768px) {
    width: 360px;
  }
  @media screen and (min-width: 1024px) {
    width: 406px;
  }
}
