*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.phone-page {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  width: 100%;
  height: 44px;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  background: #fff;
}

.navbar h1 {
  margin: 0;
  color: #222;
  font-size: 18px;
  font-weight: 600;
  line-height: 44px;
  text-align: center;
}

.back-btn {
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: 4px;
}

.back-btn::before {
  position: absolute;
  top: 50%;
  left: 19px;
  width: 13px;
  height: 13px;
  border: solid #222;
  border-width: 0 0 2px 2px;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.download-container {
  display: flex;
  min-height: calc(100vh - 44px);
  flex-direction: column;
  align-items: center;
  background: #fff;
}

.top-banner {
  width: 100%;
}

.app-copy {
  margin-top: 106px;
  color: #222;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.download-btn {
  display: block;
  width: calc(100% - 48px);
  height: 58px;
  margin-top: 36px;
  align-self: flex-end;
  border-radius: 6px;
  background: linear-gradient(270deg, #fe1c0d, #fe532b);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 58px;
  text-align: center;
}

#toast {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#toast[hidden] {
  display: none;
}

#toast span {
  max-width: 82vw;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 0, 0, .72);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 431px) {
  body {
    background: #f5f5f5;
  }

  .phone-page {
    max-width: 430px;
    box-shadow: 0 0 24px rgba(0, 0, 0, .08);
  }
}

@media (max-height: 760px) {
  .app-copy {
    margin-top: 88px;
  }
}
