*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

:root {
  --neutral-0: #ffffff;
  --neutral-50: #fafafa;
  --neutral-500: #747b95;
  --neutral-800: #333950;
  --neutral-900: #25293a;
  --blue-100: #e4eaff;
  --blue-300: #829cff;
  --blue-500: #5175ff;
  --red-400: #f05b5b;
}

body {
  font-family: "Kumbh Sans", sans-serif;
  color: var(--neutral-800);
  position: relative;
  background: var(--neutral-50);
}

a {
  font-family: inherit;
  color: inherit;
}

img {
  max-width: 100%;
}

h1 {
  font-size: clamp(2.5rem, 0.2544rem + 4.6784vw, 3.5rem);
  line-height: 120%;
}

h2 {
  font-size: 1.25rem;
  line-height: 140%;
}

p {
  font-size: 1rem;
  line-height: 160%;
  color: var(--neutral-500);
}

strong {
  font-size: 3.5rem;
  line-height: 120%;
  color: var(--neutral-900);
}

.container {
  width: 90%;
  margin: 0 auto;
  max-width: 1110px;
}

.row {
  display: flex;
  justify-content: space-between;
}

.column {
  display: flex;
  flex-direction: column;
}

.btn--solid {
  display: flex;
  justify-content: center;
  text-decoration: none;
  color: var(--neutral-0);
  background: var(--blue-500);
  font-weight: 700;
  line-height: 160%;
  padding: 0.75em 2.5em;
  border-radius: 12rem;

  &:hover {
    background: var(--blue-300);
  }
}

.btn--solid-shadow {
  box-shadow: 0 25px 25px -10px rgba(63, 91, 194, 0.25);

  &:hover {
    box-shadow: none;
  }

  &:focus {
    box-shadow: 0 0 0 3px var(--colors-neutral-0, #fff),
      0 0 0 5px var(--colors-blue-500, #5175ff);
  }
}

.btn--solid-light {
  background: var(--blue-100);
  color: var(--blue-500);

  &:hover {
    background: var(--blue-500);
    color: var(--neutral-0);
  }
}

.btn--solid-inverted {
  color: var(--blue-500);
  background: var(--neutral-0);

  &:hover {
    background: var(--blue-100);
  }
}

/* HEADER */
.top-background {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;

  img {
    width: 100%;
  }
}

header {
  padding-top: clamp(2.5rem, 0.1145rem + 10.1781vw, 5rem);
  padding-bottom: clamp(5rem, 3.0867rem + 8.1633vw, 8.75rem);
}

.main__nav {
  justify-content: center;
}

@media only screen and (min-width: 48rem) {
  .top-background {
    width: auto;
    right: 0;
  }

  .main__nav {
    justify-content: space-between;
  }
}

@media only screen and (min-width: 64rem) {
  .top-background {
    width: auto;
    top: -23%;
    right: -26%;
  }
}

/* HERO */
.hero {
  text-align: center;
}

.hero__content {
  align-items: center;
  gap: 1.5rem;
}

.hero__image {
  max-width: 55%;
  margin: 0 auto 3rem;
}

@media only screen and (min-width: 48rem) {
  .hero > .container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
  }

  .hero__content {
    width: 50%;
    align-items: flex-start;
    text-align: start;
  }

  .hero__image {
    width: 43%;
    margin: 0;
  }
}

@media only screen and (min-width: 64rem) {
  .hero__content {
    width: 47%;
  }
  .hero__image {
    width: 45%;
  }
}

/* PRICING */
.pricing {
  position: relative;
}

.pricing__background {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60%;
  background-image: url("assets/home/bg-pattern-footer.svg");
  background-color: var(--neutral-900);
  background-repeat: no-repeat;
  background-size: 175%;
  background-position: bottom -5% center;
  z-index: -1;
}

.card__container {
  padding: clamp(5rem, 3.0867rem + 8.1633vw, 8.75rem) 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  align-items: center;
  gap: 3rem;
  text-align: center;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 50px 50px -25px rgba(75, 92, 154, 0.24);
  border-radius: 0.75rem;
  background: var(--neutral-0);
}

.card-blue {
  background: var(--blue-500);
  .card__title,
  strong,
  .card__price p,
  .card__features li {
    color: var(--neutral-0);
  }
}

.card__title {
  color: var(--neutral-900);
  margin-bottom: clamp(1rem, 0.2347rem + 3.2653vw, 2.5rem);
}

.card__price {
  gap: 0.5rem;
  p {
    color: var(--neutral-900);
  }
}

.card__features {
  list-style: none;
  gap: 1rem;
  padding: 0;

  li {
    color: var(--neutral-500);
  }
}

@media only screen and (min-width: 48rem) {
  .pricing .card {
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    justify-items: start;
    text-align: start;
    row-gap: 1.5rem;
  }

  .card__features {
    grid-row: span 2;
  }
}

@media only screen and (min-width: 64rem) {
  .pricing__background {
    background-size: 80%;
    background-position: bottom 80% left -100%;
  }

  .card__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-between;
    gap: 2rem;
  }

  .pricing .card {
    display: flex;
    text-align: center;
    padding: 2.5rem 1.25rem;
    gap: 2.5rem;
  }
}

/* COUNTDOWN */
.countdown {
  padding-bottom: 7rem;

  h2,
  strong {
    color: var(--neutral-0);
    text-transform: uppercase;
  }
}

.countdown__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.countdown__title {
  font-size: 1rem;
  line-height: 160%;
  letter-spacing: 5px;
  margin-bottom: 1.25rem;
}

.countdown__time {
  margin-bottom: 3rem;
}

.accent-text {
  color: var(--blue-500);
}

.countdown__time {
  gap: 1rem;
}

.countdown__item {
  align-items: center;
  gap: 0.25rem;
  background: var(--neutral-800);
  border-radius: 0.75rem;
  padding: 1rem 0.75rem;
  font-weight: 700;
  strong {
    font-size: clamp(2.5rem, 0.2544rem + 4.6784vw, 3.5rem);
    font-weight: 700;
  }
}

@media only screen and (min-width: 64rem) {
  .countdown__content {
    flex-direction: row;
    justify-content: space-between;
    text-align: start;
  }

  .countdown__time {
    margin-bottom: 0;
  }
}

/* SIGN UP */
body {
  position: relative;
  min-height: 100vh;
}

.sign-up__background {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: clamp(19.75rem, 10.3869rem + 39.9491vw, 29.5625rem);
  z-index: -1;

  background: url("./assets/home/bg-pattern-footer.svg"), var(--neutral-900);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 175%;
}

section.sign-up {
  text-align: center;
  position: relative;
  padding-bottom: clamp(5rem, 3.0916rem + 8.1425vw, 7rem);

  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;

    max-width: 33.75rem;
  }

  .sign-up__title {
    margin-bottom: 1.5rem;
  }

  .sign-up__text {
    font-size: 1.125rem;
    line-height: 150%;
    max-width: 52ch;
  }

  .countdown {
    padding-bottom: 0;
    width: 100%;
  }

  .countdown__content {
    width: 100%;

    & > .column {
      width: 100%;
      max-width: 28rem;
    }
  }

  .countdown__title {
    color: var(--neutral-800);
  }

  .countdown__item {
    flex-grow: 1;
    background: var(--blue-100);
    color: rgba(51, 57, 80, 0.5);
    strong {
      color: var(--blue-500);
    }
  }

  .contact__form {
    width: 100%;
  }
}

.sign-up-form {
  margin: 0 auto;
  max-width: 27.8125rem;
  gap: 1.5rem;
  padding: 2.5rem clamp(1.25rem, 0.0573rem + 5.0891vw, 2.5rem);

  .sign-up-form__row {
    align-self: stretch;
  }

  input,
  select,
  button {
    width: 100%;
  }

  button {
    font: inherit;
    border: none;
    line-height: 160%;
    font-weight: 700;
    margin-top: 1rem;

    cursor: pointer;
  }

  input,
  select {
    outline: none;
    border: none;
    border-bottom: 1px solid rgba(116, 123, 149, 0.5);
    background-color: transparent;
    padding: 0 1rem 1rem;
    font: inherit;
    line-height: 175%;
    cursor: pointer;

    &:hover {
      border-color: var(--blue-500);
    }

    &:focus {
      outline: solid 2px var(--blue-500);
    }
  }

  input::placeholder {
    font: inherit;
    color: var(--neutral-500);
    line-height: 175% !important;
  }
}

@media only screen and (min-width: 64rem) {
  .sign-up__background {
    right: 0;
    left: auto;
    bottom: auto;
    top: auto;
    width: 33%;
    height: 100%;
  }

  section.sign-up {
    text-align: start;

    .content {
      align-items: flex-start;
    }

    .container {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
    }

    .contact__form {
      flex-grow: 1;
      width: auto;
    }

    .sign-up-form {
      margin: 0 0 0 auto;
    }
  }
}
