body {
  background-color: var(--color-background);
}

.background-gradient {
  position: absolute;
  height: 100vh;
  width: 100%;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0) 40%, var(--color-blue) 40%, var(--color-pink) 105%);
  z-index: -1;
}

.thegrid {
  display: grid;
  grid-gap: 16px;
  grid-template-rows: max-content auto max-content max-content;
  grid-template-columns: 1fr;
  grid-template-areas:
    "header"
    "screenshot"
    "body"
    "footer";

  padding: 16px 16px;
  height: calc(100vh - 32px);
  width: calc(100vw - 32px);
}

.header {
  grid-area: header;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header a {
  color: var(--color-text);
}

.header .button {
  background-color: var(--color-background);
  font-size: 12px;
  font-weight: 500;
  border-style: solid;
  border-width: 2px;
  border-color: var(--color-text);
  border-radius: 8px;
  padding: 6px 16px;
}

.header .button.plugin {
  color: var(--color-text);
  border-color: var(--color-pink);
  background-color: var(--color-pink);
}

.wordmark img {
  width: 140px;
  object-fit: contain;
}

.screenshot-plugin {
  display: none;
}

.screenshot-mobile {
  grid-area: screenshot;
  background-image: url('../images/mobile-ios.webp');
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.body {
  grid-area: body;
  place-self: center;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

.body .title .desktop {
  display: none;
}

.body .title {
  text-align: center;
  line-height: 72px;
  font-size: 62px;
  font-weight: 800;
}

.body .subtitle {
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: 16px;
}

.body .applinks {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.body .applinks img {
  height: 34px;
  object-fit: contain;
}

.body .platform-split {
  display: none;
}

.footer {
  grid-area: footer;

  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);

  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer a {
  color: var(--color-text-secondary);
}

.footer .links, .footer .social {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.footer .links {
  gap: 16px;
}

.footer .social {
  gap: 32px;
}

.footer .social a {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer .social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

@media screen and (min-width: 768px) {
  .background-gradient {
    background: linear-gradient(153deg, rgba(0, 0, 0, 0) 51%, var(--color-blue) 51%, var(--color-pink) 105%);
  }

  .thegrid {
    grid-template-rows: max-content auto max-content;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "header header"
      "screenshot body"
      "footer footer";
  }

  .screenshot-plugin {
    grid-area: screenshot;
    display: unset;
    background-image: url('../images/plugin/splash.png');
    background-size: contain;
    background-position: left top -64px;
    background-repeat: no-repeat;
    z-index: -2;
    margin: -16px;
  }

  .screenshot-mobile {
    background-size: auto 70%;
    background-position: center right 104px;
  }

  .header .button.plugin {
    display: none;
  }

  .body {
    place-self: center start;
  }
  .body .title {
    text-align: left;
  }
  .body .subtitle {
    display: none;
  }
  .body .applinks {
    display: none;
  }
  .body .applinks img {
    height: 39px;
  }

  .body .title .desktop {
    display: block;
  }

  .body .title .mobile {
    display: none;
  }

  .body .platform-split {
    display: unset;
    display: flex;
    flex-direction: row;
    gap: 48px;
    padding-top: 24px;
  }

  .body .platform-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .body .platform-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    font-size: 31px;
    gap: 16px;
  }

  .body .platform-header img {
    height: 30px;
    object-fit: contain;
  }

  .body .platform-subtitle {
    color: var(--color-text-tertiary);
    font-size: 14px;
  }

  .body .platform-split .divider {
    width: 2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
  }

  .body .platform-split .button {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    height: 54px;
    background-color: var(--color-pink);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .body .platform-split .applinks {
    display: unset;
    justify-content: flex-start;
  }

  .footer {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer .copyright {
    order: -1;
  }
  .footer {
    border-top: 1.5px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
  }
}

@media screen and (min-width: 1920px) {
  .screenshot-mobile {
    background-size: auto 80%;
  }
}

@media screen and (max-width: 375px) {
  .wordmark img {
    width: 100px;
  }

  .body .title {
    line-height: 52px;
    font-size: 40px;
  }
}

@supports (-webkit-touch-callout: none) {
  min-height: -webkit-fill-available;
}

