@import url("https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap");
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

button {
  border: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: hsl(204, 43%, 93%);
  font-family: "Karla", sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

main {
  container-type: inline-size;
  flex-grow: 1;
  max-width: 640px;
  margin-inline: 1rem;
}

article {
  border-radius: 10px;
  overflow: hidden;
}

section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
}

.join {
  background-color: white;
}
.join h1 {
  font-weight: 700;
  color: hsl(179, 62%, 43%);
}
.join p:first-of-type {
  font-weight: 700;
  color: hsl(71, 73%, 54%);
}
.join p:last-child {
  color: hsl(218, 22%, 67%);
}

.pricing,
.why {
  color: hsl(204, 43%, 93%);
}

.pricing {
  background-color: hsl(179, 62%, 43%);
}
.pricing p {
  display: flex;
  align-items: center;
}
.pricing span {
  font-size: 32px;
  font-weight: 700;
  margin-right: 16px;
}
.pricing button {
  max-width: 275px;
  color: hsl(204, 43%, 93%);
  font-size: 16px;
  font-weight: 700;
  background-color: hsl(71, 73%, 54%);
  height: 50px;
  border-radius: 5px;
  box-shadow: 2px 2px 10px -5px black;
}
.pricing button:hover {
  cursor: pointer;
}

.why {
  background-color: #4abebd;
}

@container (min-width: 600px) {
  section {
    gap: 0.5rem;
    padding: 2rem;
  }
  article {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  article .join {
    grid-column: span 2;
  }
  .pricing span {
    font-size: 24px;
  }
  .pricing p:last-of-type {
    margin-bottom: 1.4rem;
  }
}