@font-face {
  font-family: "Onest";
  src: url("/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Onest", Arial, sans-serif;
  background: #000;
  color: #f7f7f5;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #000;
}

main {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 48px;
  text-align: center;
}

.mark {
  --mark-left-far: -60px;
  --mark-left-near: -30px;
  --mark-right-near: 30px;
  --mark-right-far: 60px;
  position: relative;
  width: 300px;
  height: 174px;
  max-width: 88vw;
}

.disc {
  position: absolute;
  top: 2px;
  left: calc(50% - 85px);
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 68px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -5px;
  will-change: transform;
}

.pink {
  z-index: 1;
  background: #ff1694;
  transform: translateX(var(--mark-left-far));
  animation: card-pink 640ms 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.violet {
  z-index: 2;
  background: #6414e8;
  transform: translateX(var(--mark-left-near));
  animation: card-violet 560ms 330ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.yellow {
  z-index: 3;
  background: #ffd114;
  animation: card-yellow 480ms 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.orange {
  z-index: 4;
  background: #ff5b16;
  transform: translateX(var(--mark-right-near));
  animation: card-orange 400ms 230ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.front {
  z-index: 5;
  background: #fff;
  color: #000;
  transform: translateX(var(--mark-right-far));
  animation: card-front 620ms 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

h1 {
  margin: 24px 0 0;
  font-size: clamp(52px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.065em;
  font-weight: 760;
  animation: copy-in 500ms 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lead {
  margin: 28px 0 0;
  color: #9b9ba0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  animation: copy-in 500ms 840ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 36px;
  animation: copy-in 500ms 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.actions a {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  padding: 0 25px;
  font: inherit;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: #f7f7f5;
  color: #080808;
  font-weight: 720;
}

.secondary {
  background: #171719;
  color: #fff;
  font-weight: 600;
}

.steps {
  width: min(100%, 560px);
  margin: 32px 0 0;
  padding: 0 0 0 1.6em;
  color: #9b9ba0;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  text-align: left;
  animation: copy-in 500ms 960ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.steps li {
  margin-top: 8px;
  padding-left: 4px;
}

.steps li::marker {
  color: #626267;
}

.copy {
  display: inline-block;
  margin: 0 4px;
  border: 0;
  border-radius: 10px;
  padding: 4px 12px;
  background: #171719;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}

.copy-status {
  color: #626267;
  font-size: 14px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #69adff;
  outline-offset: 4px;
}

footer {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 38px 32px;
  color: #626267;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

footer p {
  margin: 0;
}

footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes card-front {
  from {
    transform: translateX(0) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(var(--mark-right-far)) scale(1);
  }
}

@keyframes card-orange {
  from { opacity: 0; transform: translateX(0) scale(0.94); }
  to { transform: translateX(var(--mark-right-near)) scale(1); }
}

@keyframes card-yellow {
  from { opacity: 0; transform: translateX(0) scale(0.94); }
  to { transform: translateX(0) scale(1); }
}

@keyframes card-violet {
  from { opacity: 0; transform: translateX(0) scale(0.94); }
  to { transform: translateX(var(--mark-left-near)) scale(1); }
}

@keyframes card-pink {
  from { opacity: 0; transform: translateX(0) scale(0.94); }
  to { transform: translateX(var(--mark-left-far)) scale(1); }
}

@keyframes copy-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  main {
    min-height: calc(100vh - 60px);
    padding-top: 48px;
  }

  .mark {
    --mark-left-far: -52px;
    --mark-left-near: -26px;
    --mark-right-near: 26px;
    --mark-right-far: 52px;
    width: 270px;
    height: 136px;
  }

  .disc {
    top: 0;
    left: calc(50% - 66px);
    width: 132px;
    height: 132px;
    font-size: 52px;
  }

  .actions {
    width: min(100%, 360px);
    flex-direction: column;
  }

  .actions a {
    width: 100%;
  }

  .steps {
    font-size: 16px;
  }

  footer {
    min-height: 60px;
    padding: 20px 20px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
