:root {
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
}

header {
  margin-bottom: 5rem;
}

header a {
  font-weight: 600;
  text-decoration: none;
}

h1 {
  margin: 0 0 2rem;
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  margin: 3.5rem 0 1rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}

p,
ul {
  margin: 0 0 1.25rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.lead {
  margin-bottom: 3rem;
  font-size: 1.5rem;
  line-height: 1.4;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 3.5rem 3rem;
  margin: 4rem 0 3.5rem;
}

.plans h2 {
  margin-top: 0;
}

.price {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

footer {
  margin-top: 7rem;
  padding-top: 2rem;
  border-top: 1px solid #000;
  font-size: 1rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

@media (max-width: 40rem) {
  .page {
    padding-top: 3rem;
  }

  header {
    margin-bottom: 3.5rem;
  }

  h1 {
    font-size: 2.125rem;
  }

  .lead {
    font-size: 1.3125rem;
  }

  footer {
    margin-top: 5rem;
  }
}
