/* Rainsoon public site: the home page only. Colours and base rules come from site.css. */

.hero {
  padding-block: 1.5rem 0.5rem;
  text-align: center;
}

.hero .logo {
  width: min(21rem, 78%);
}

.hero h1 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 44rem;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
}

.pill {
  display: inline-block;
  margin: 0;
  padding: 0.5rem 1.25rem;
  border-radius: 62rem;
  background: var(--ink);
  color: var(--amber);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-block: 2.75rem 0.75rem;
}

.screens figure {
  margin: 0;
}

.screens img {
  display: block;
  width: 100%;
}

.screens figcaption {
  margin-top: 0.875rem;
  color: var(--muted);
}

.screens strong {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.home h2 {
  margin: 3.5rem 0 1.25rem;
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 900;
  line-height: 1.15;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards li {
  padding: 1.5rem;
  border-radius: 1.75rem;
  background: var(--card);
}

.cards h3 {
  margin: 0 0 0.375rem;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.25;
}

.cards p {
  margin: 0;
  color: var(--muted);
}

.promise {
  margin-top: 3.5rem;
  padding: 0.5rem 1.5rem 2rem;
  border-radius: 2.125rem;
  background: var(--ink);
  color: #ffffff;
}

.promise h2 {
  margin-top: 1.5rem;
}

.promise .cards {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.promise .cards li {
  padding: 0;
  background: none;
}

.promise h3 {
  color: var(--amber);
}

.promise p {
  color: #ffffff;
}

/* Coverage map: the picture, and beside it the key that names the countries (never colour alone). */

.coverage {
  display: grid;
  grid-template-columns: minmax(0, 26rem) 1fr;
  gap: 2rem;
  align-items: center;
}

.coverage img {
  display: block;
  width: 100%;
}

.keys {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.keys li {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.keys li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.375rem;
  background: var(--rain);
}

.keys .soon::before {
  background: var(--soon);
}

.keys strong {
  display: block;
  font-weight: 900;
}

@media (max-width: 46rem) {
  .screens,
  .cards,
  .promise .cards,
  .coverage {
    grid-template-columns: 1fr;
  }

  .coverage img {
    max-width: 24rem;
    margin-inline: auto;
  }

  .screens {
    max-width: 22rem;
    margin-inline: auto;
  }
}
