:root {
  --colors-teal: #4d96a9;
  --colors-light-teal: #71c0d4;
  --colors-purple: #855fb1;
  --colors-light-purple: #b18bdd;
  --colors-dark-purple: #28283d;
  --colors-gray: #87879d;
  --colors-cyan: #8fe3f9;
  --colors-violet: #d9b8ff;
  --colors-light-shady: #fafafa;
  --body-font: 'Red Hat Display', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--colors-light-shady);
  color: var(--colors-gray);
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.625;
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
}

h1,
h2 {
  color: var(--colors-dark-purple);
  font-weight: 900;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.1;
}

h2 {
  font-size: 2rem;
  line-height: 1.125;
}

.container {
  width: min(100% - 3rem, 69.375rem);
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  min-height: 3.625rem;
  max-width: 100%;
  padding: 1rem 2.5rem;
  padding-inline: clamp(1rem, 11vw, 2.5rem);
  border-radius: 2rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.625;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.teal {
  background-color: var(--colors-teal);
}

.teal .version {
  color: var(--colors-cyan);
}

.purple {
  background-color: var(--colors-purple);
}

.purple .version {
  color: var(--colors-violet);
}

.teal:hover,
.teal:focus-visible {
  background-color: var(--colors-light-teal);
}

.purple:hover,
.purple:focus-visible {
  background-color: var(--colors-light-purple);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--colors-dark-purple);
  outline-offset: 5px;
}

.header__container {
  display: flex;
  justify-content: center;
  padding-top: 3rem;
}

.header__logo {
  display: block;
  border-radius: 0.25rem;
}

.hero {
  overflow: hidden;
  position: relative;
  padding-block: 3.375rem 4rem;
  text-align: center;
}

.hero__img {
  width: 110%;
  max-width: 51.25rem;
  aspect-ratio: 820 / 303;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background: url('../tablet/image-hero.png') center / contain no-repeat;
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
}

.hero h1 {
  max-width: 27.8125rem;
}

.hero p {
  max-width: 28.5625rem;
  margin-top: 1.5rem;
}

.hero__btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  margin-top: 2rem;
}

.hero__btn-what {
  padding-inline: clamp(1rem, 8vw, 1.8125rem);
}

.content {
  scroll-margin-top: 2rem;
}

.content__container {
  padding-bottom: 11rem;
  text-align: center;
}

.section-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-marker::before {
  content: '';
  width: 1px;
  height: 5.25rem;
  background-color: rgb(135 135 157 / 25%);
}

.section-marker span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgb(135 135 157 / 25%);
  border-radius: 50%;
  background-color: var(--colors-light-shady);
  color: var(--colors-gray);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.content__imgs-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
  list-style: none;
}

.content__img-wrapper {
  overflow: hidden;
  border-radius: 0.5rem;
  aspect-ratio: 255 / 242;
}

.content__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content__text {
  margin-top: 4rem;
}

.slim {
  color: var(--colors-teal);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.625;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
}

.content__text h2 {
  max-width: 27.8125rem;
  margin: 1.5rem auto 2rem;
}

.content__text > p:last-child {
  max-width: 35.8125rem;
  margin-inline: auto;
}

.footer {
  position: relative;
  background-image: linear-gradient(rgb(77 150 169 / 90%), rgb(77 150 169 / 90%)), url('../mobile/image-footer.jpg');
  background-position: center;
  background-size: cover;
  color: var(--colors-light-shady);
}

.footer > .section-marker {
  position: absolute;
  top: -7rem;
  left: 50%;
  transform: translateX(-50%);
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 5.75rem 4.5rem;
  text-align: center;
}

.footer h2 {
  max-width: 25rem;
  color: inherit;
}

.footer p {
  max-width: 35.8125rem;
  margin-block: 1.5rem 2rem;
  font-size: 1.125rem;
  line-height: 1.444444;
}

.footer .btn:focus-visible {
  outline-color: #fff;
}

.download-status {
  position: fixed;
  z-index: 1;
  inset: auto 1.5rem 1.5rem;
  width: fit-content;
  max-width: calc(100% - 3rem);
  margin-inline: auto;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--colors-dark-purple);
  color: #fff;
  text-align: center;
  box-shadow: 0 0.25rem 1rem rgb(40 40 61 / 20%);
}

.download-status:empty {
  display: none;
}

@media (min-width: 40em) {
  h1 {
    font-size: 3rem;
    line-height: 1;
  }

  h2 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .container {
    width: min(100% - 5rem, 69.375rem);
  }

  .hero {
    padding-block: 4rem 5rem;
  }

  .hero__container {
    margin-top: 4.5rem;
  }

  .hero__btns {
    flex-direction: row;
  }

  .content__container {
    padding-bottom: 12rem;
  }

  .content__imgs-features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6875rem;
  }

  .content__text {
    margin-top: 3rem;
  }

  .content__text h2 {
    margin-top: 1rem;
  }

  .footer {
    background-image: linear-gradient(rgb(77 150 169 / 90%), rgb(77 150 169 / 90%)), url('../tablet/image-footer.jpg');
  }

  .footer__container {
    padding-bottom: 4.125rem;
  }

  .footer p {
    margin-block: 2rem 2.5rem;
  }
}

@media (min-width: 64em) {
  body {
    font-size: 1.125rem;
    line-height: 1.444444;
  }

  h1 {
    font-size: 4rem;
  }

  .header__container {
    padding-top: 5rem;
  }

  .hero {
    padding-block: 6.75rem 7.3125rem;
  }

  .hero__img {
    /* Keep the portraits beside the copy as the desktop viewport narrows. */
    --portrait-width: clamp(11.625rem, calc(50vw - 20.375rem), 24.625rem);
    position: absolute;
    top: 3.8125rem;
    width: min(calc(100% + 4rem), 94rem);
    max-width: none;
    height: 22.375rem;
    background: none;
  }

  .hero__img::before,
  .hero__img::after {
    content: '';
    position: absolute;
    width: var(--portrait-width);
    aspect-ratio: 394 / 303;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
  }

  .hero__img::before {
    left: 0;
    top: calc(50% - 1.71875rem);
    background-image: url('../desktop/image-hero-left.png');
  }

  .hero__img::after {
    right: 0;
    top: calc(50% + 1.71875rem);
    background-image: url('../desktop/image-hero-right.png');
  }

  .hero__container {
    position: relative;
    margin-top: 0;
  }

  .hero p {
    max-width: 33.75rem;
    margin-top: 2.125rem;
  }

  .content__container {
    padding-bottom: 11.5rem;
  }

  .content__imgs-features {
    gap: 1.875rem;
  }

  .content__text {
    margin-top: 5rem;
  }

  .content__text > p:last-child {
    max-width: 33.75rem;
  }

  .footer {
    background-image: linear-gradient(rgb(77 150 169 / 90%), rgb(77 150 169 / 90%)), url('../desktop/image-footer.jpg');
  }

  .footer__container {
    display: grid;
    grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr) minmax(0, 0.73fr);
    gap: 1.875rem;
    align-items: start;
    min-height: 19.25rem;
    padding-block: 7.25rem 6.5rem;
    text-align: left;
  }

  .footer h2 {
    max-width: 21.875rem;
  }

  .footer p {
    margin: 0;
  }

  .footer__btn-download {
    align-self: center;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
