* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f4f6f8;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  color: #17221d;
  background: #f4f6f8;
}

.download-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px 20px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: min(100%, 420px);
  padding: 34px 30px 30px;
  border: 1px solid #e8ece9;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 44px rgb(25 48 37 / 9%);
}

.app-icon {
  display: block;
  width: clamp(120px, 34vw, 144px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgb(23 34 29 / 8%);
  border-radius: 26px;
  box-shadow: 0 8px 20px rgb(22 35 29 / 12%);
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 74px;
  border: 1px solid #08734f;
  border-radius: 17px;
  background: #087f57;
  box-shadow: 0 5px 12px rgb(8 127 87 / 18%);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.download-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.download-button:hover {
  background: #066c4a;
  box-shadow: 0 7px 16px rgb(8 127 87 / 24%);
}

.download-button:active {
  transform: scale(0.985);
}

.download-button:focus-visible {
  outline: 3px solid #65b891;
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .download-page {
    display: flex;
    min-height: 100svh;
    min-height: 100dvh;
    padding: calc(18px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom));
  }

  .download-card {
    flex: 1;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    padding: clamp(44px, 10vh, 88px) 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .app-icon {
    width: clamp(132px, 38vw, 156px);
    border-radius: 28px;
  }

  .download-button {
    flex: 0 0 auto;
    min-height: 74px;
    border-radius: 18px;
  }
}

@media (max-width: 380px) {
  .download-page {
    padding-inline: 18px;
  }

  .download-button {
    min-height: 70px;
  }
}

@media (max-width: 600px) and (max-height: 500px) and (orientation: landscape) {
  .download-card {
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .app-icon {
    width: min(27vw, 108px);
  }

  .download-button {
    width: min(64%, 340px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-button {
    transition: none;
  }
}
