.container {
  max-width: 360px;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 16px;
  margin: 0 auto;
  text-align: left;
}

.image {
  display: block;
  margin: 0 auto 8px;
  align-self: center;
  color: transparent;
}

.title {
  color: var(--typography-100);
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0;
}

.subtitle {
  margin-top: 8px;
  color: var(--primary-100);
  text-align: center;
  font-size: 16px;
  line-height: 1.35;
}

.text {
  margin-top: 32px;
  margin-bottom: 7px;
  color: var(--typography-100);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;

  & > strong {
    font-weight: 700;
  }
}

.button {
  position: sticky;
  margin: 0;
  margin-top: 16px;
  bottom: calc(0dvh + 16px);

  & > button {
    height: 50px;
    font-weight: 600;
  }

  &.back-button > button {
    background: transparent;
  }
}

.summary {
  display: flex;

  & > .indicator {
    position: relative;
    width: 2px;
    height: 170px;
    margin-left: 6px;
    margin-right: 30px;
    background-color: var(--secondary-700);
    border-radius: 2px;

    & > .progress {
      position: absolute;
      top: 0;
      left: 0;
      width: 2px;
      transition: 0.5s linear;
      transition-property: height;
      background: linear-gradient(
        180deg,
        rgba(69, 104, 220, 0),
        rgba(176, 106, 179, 0.85),
        hsla(0, 0%, 98%, 0.85)
      );
      filter: blur(1px);
      transform: translateZ(0);

      animation: progress 4s linear forwards;
    }

    & > .pointer {
      position: absolute;
      left: 50%;
      top: 0;
      transform: translateX(-50%) translateY(0);
      transition: 0.5s linear;
      transition-property: transform;

      animation: pointer 4s linear forwards;

      & > img {
        color: transparent;
      }
    }
  }

  .list {
    & > .item {
      margin-top: 20px;

      @for $i from 1 through 3 {
        &:nth-child(#{$i}) > .trait-name {
          animation-delay: ($i - 1) * 1s;
        }
      }

      @for $i from 1 through 3 {
        &:nth-child(#{$i}) > .trait-value {
          animation-delay: ($i - 1) * 1s;
        }
      }

      &:first-child {
        margin-top: 0;
      }

      & > .trait-name {
        font-size: 14px;
        line-height: 1.35;
        transition: 0.5s linear;
        transition-property: color;
        color: var(--primary-100);
        opacity: 0.25;
        animation-name: trait-name;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
        animation-duration: 0.5s;
      }

      & > .trait-value {
        display: flex;
        align-items: center;
        margin-top: 2px;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.35;
        transition: 0.5s linear;
        transition-property: color, opacity;
        color: var(--primary-100);
        opacity: 0;
        animation-name: trait-value;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
        animation-duration: 0.5s;
      }
    }
  }
}

@keyframes progress {
  0% {
    height: 0px;
  }
  12% {
    height: 0px;
  }
  25% {
    height: 82px;
  }
  50% {
    height: 82px;
  }
  75% {
    height: 170px;
  }
  100% {
    height: 170px;
  }
}

@keyframes pointer {
  0% {
    transform: translateX(-50%) translateY(-10px);
  }
  12% {
    transform: translateX(-50%) translateY(-10px);
  }
  25% {
    transform: translateX(-50%) translateY(72px);
  }
  50% {
    transform: translateX(-50%) translateY(72px);
  }
  75% {
    transform: translateX(-50%) translateY(160px);
  }
  100% {
    transform: translateX(-50%) translateY(160px);
  }
}

@keyframes trait-name {
  0% {
    opacity: 0.25;
  }
  100% {
    opacity: 1;
  }
}

@keyframes trait-value {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
