@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;200;300;400;500;700&display=swap');

html, body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: #E6E6E6;
  min-height: 100vh;
  text-align: center;
  position: relative;
}

a {
  color: inherit;
}

.page-content-container {
  width: 100%;
  position: relative;
}

.page-step-bar-container {
  width: 100%;
  height: 148px;
  text-align: center;
  background: #F0F0F0;
  z-index: 1;
}

.page-step-bar {
  width: 700px;
  display: grid;
  grid-template-columns: 64px 1fr 64px 1fr 64px;
  grid-column-gap: 12px;
  margin: auto;
  padding-top: 26px;
  place-items: center;
  z-index: 2;
}

.page-step-bar-spacer {
  background: #d9d9d9;
  border-radius: 70px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
  height: 5px;
  width: 100%;
  place-self: start;
  margin: 30px 0;
  overflow: hidden;
  position: relative;
}

.page-step-bar-spacer span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #52b991;
  opacity: .35;
  transform: scaleX(0);
  transform-origin: left;
  animation: step-line 8s ease-in-out infinite;
}

.page-step-bar-spacer:nth-of-type(4) span {
  animation-delay: 1.2s;
}

.page-step-item {
  display: grid;
  grid-template-rows: 64px 16px;
  grid-row-gap: 14px;
}

.page-step-text {
  text-transform: uppercase;
  color: gray;
  font-size: 14px;
}

.step-icon {
  width: 64px;
  height: 64px;
  place-self: center;
  overflow: visible;
  color: #a8adb2;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .08));
}

.page-step-item.is-active .step-icon {
  color: #24b476;
}

.step-icon-track {
  fill: #fff;
  stroke: #d5d8da;
  stroke-width: 5;
}

.step-icon-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  opacity: .45;
  animation: ring-glow 8s ease-in-out infinite;
}

.step-icon-check,
.step-icon-download {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-icon-download {
  transform: scale(.8);
  transform-origin: 32px 35px;
}

.page-step-item:nth-of-type(3) .step-icon-ring {
  animation-delay: 1.2s;
}

.page-step-item:nth-of-type(5) .step-icon-ring {
  animation-delay: 2.4s;
}

.dialog {
  width: 700px;
  background: #fff;
  border: 1px solid #A5A5A5;
  overflow: hidden;
  box-shadow: 0 -.25vh 3vh .2vh rgba(0, 0, 0, 0.22);
  margin: 0 auto 27px;
  z-index: 0;
}

.dialog-header {
  height: 48px;
  background: #F0F0F0;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  color: #CBCBCB;
  line-height: 48px;
  position: relative;
}

.dialog-body {
  color: #4D4D4D;
  padding: 34px 45px 25px;
  box-sizing: border-box;
  text-align: left;
}

.brand-text {
  width: 100%;
}

.title-text {
  font-size: 30px;
  font-weight: 700;
}

.dialog-text {
  font-size: 21px;
  margin: 10px auto 24px;
}

.small-text {
  font-size: 14px;
  line-height: 1.5;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
}

.webstore-badge-button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.webstore-badge {
  display: block;
  width: 170px;
  height: 48px;
  object-fit: contain;
}

.download-btn {
  text-transform: uppercase;
  background-color: #f33045;
  background-repeat: no-repeat;
  background-position: 25px center;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAVBAMAAACqMuMoAAAAElBMVEUAAAD///////////////////8+Uq06AAAABXRSTlMA0BDAgN5bSDYAAABFSURBVBjTY4AAYwZkEEpXnhOQpwLjsAQqhDKJOkB5TKJCoYqBCjBJxcBQUSEgDZMMBUnBJUOBUghJQaAUacA0FAGCUXkAsj4QrNs8HNQAAAAASUVORK5CYII=');
  border-radius: 4px;
  border: 1px solid #d20015;
  height: 60px;
  cursor: pointer;
  display: inline-block;
  color: #fff;
  font-weight: 500;
  font-size: 22px;
  line-height: 60px;
  text-align: right;
  padding-right: 35px;
  padding-left: 70px;
  transition: .3s all ease-in-out;
}

.download-btn:hover {
  background-color: #c4071a;
}

.hint-text {
  width: 700px;
  margin: 50px auto;
  font-size: 14px;
  color: #4d4d4d;
  text-align: center;
}

.footer-links {
  width: 100%;
  margin: 20px auto 40px;
  font-size: 14px;
  color: #4D4D4D;
  text-align: center;
}

.footer-links a {
  font-size: 14px;
  color: #4D4D4D;
  text-decoration: underline;
}

@media (max-width: 920px) {
  .page-step-bar {
    width: 92%;
    grid-template-columns: 48px 1fr 48px 1fr 48px;
    padding-top: 20px;
  }
  .dialog {
    width: 92%;
  }
  .dialog-header {
    height: auto;
    min-height: 48px;
    line-height: 1.2;
    padding: 8px 12px;
    box-sizing: border-box;
  }
  .dialog-body {
    text-align: center;
    padding: 24px 20px;
  }
  .cta-row {
    justify-content: center;
    flex-wrap: wrap;
  }
  .download-btn {
    margin: 0;
  }
  .hint-text {
    width: 92%;
  }
}

@keyframes step-line {
  0%, 20% { transform: scaleX(0); }
  50%, 85% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

@keyframes ring-glow {
  0%, 20%, 100% { opacity: .3; }
  50%, 85% { opacity: .7; }
}

@media (prefers-reduced-motion: reduce) {
  .page-step-bar-spacer span,
  .step-icon-ring {
    animation: none;
  }

  .page-step-bar-spacer span { transform: scaleX(1); }
}
