:root {
  box-sizing: border-box;
  font-size: 16px;
  
  --font-family: 'Karla', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --cyan: hsl(179, 62%, 43%);
  --light-cyan: hsl(179, 52%, 53%);
  --bright-yellow: hsl(71, 73%, 54%);
  --light-gray: hsl(204, 43%, 93%);
  --grayish-blue: hsl(218, 22%, 67%);
}

body {
  font-family: var(--font-family);
  color: var(--light-gray);
  background-color: var(--light-gray);
  min-height: 100vh;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  background-color: white;
  max-width: 700px;
  margin: 25px;
  border-radius: 8px;
  box-shadow: 15px 15px 15px 0 hsl(218, 22%, 67%, 0.2), -3px 9px 12px 0 hsl(218, 22%, 67%, 0.3);
  overflow: hidden;
}

main > * {
  padding: 2.5rem;
}

.heading {
  grid-area: 1/1/2/-1;
}

.subscription {
  grid-area: 2/1/-1/2;
  background-color: var(--cyan);
}

.why-us {
  grid-area: 2/2/-1/-1;
  background-color: var(--light-cyan);
}

.heading h1 {
  color: var(--cyan);
  font-size: 1.6rem;
}

.heading p {
  margin: 0;
  color: var(--grayish-blue);
  font-size: 1.1rem;
  line-height: 150%;
}

.heading h2 {
  margin: 0;
  color: var(--bright-yellow);
}

h1, h2 {
  margin-top: 0;
  color: white;
}

h2 {
  line-height: 2.5rem;
  font-size: 1.2rem;
}

p {
  line-height: 1.6rem;
}

ul, li {
  margin: 0;
  list-style: none;
  padding: 0;
  font-weight: 200;
  line-height: 1.3rem;
}

.pricing {
  font-weight: 200;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pricing span {
  font-weight: bold;
  font-size: 2rem;
  color: white;
}

button {
  width: 100%;
  height: 3rem;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  background: var(--bright-yellow);
  cursor: pointer;
  outline: 1px solid var(--bright-yellow);
  box-shadow: 5px 10px 10px 0 hsl(179, 22%, 43%, 0.3), -2px -2px 10px 0px hsl(179, 22%, 43%, 0.3);
}

.subscription p:last-of-type {
  font-size: 1.1rem;
}

button:hover {
  background: hsl(71, 63%, 44%);
}

@media screen and (max-width: 768px) {
  main {
    display: block;
  }

  main > * {
    padding: 1.5rem;
  }

  h1, h2 {
    margin-top: 0;
    color: white;
  }
  
  .heading h2, h2 {
    font-size: 1.1rem;
    line-height: 1.5rem;
    margin: 1.5rem 0;
  } 

  .subscription p:last-of-type, .heading p {
    font-size: 1rem;
  }
}
