:root {
  --black: #080808;
  --surface: #0d0d0d;
  --surface-2: #111111;

  --white: #ffffff;
  --muted: #969696;
  --muted-2: #626262;

  --lime: #b8ff00;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--black);
  color: var(--white);

  font-family: "Inter", sans-serif;

  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.onboarding-page {
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  position: relative;
}


/* TOP */

.topbar {
  width: 100%;

  padding: 26px 5vw;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 105px;
  height: auto;

  display: block;
}

.socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.socials a {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border: 1px solid transparent;
  border-radius: 8px;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.socials a:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.socials svg {
  width: 15px;
  height: 15px;

  fill: currentColor;
}


/* PROGRESS */

.progress-wrap {
  width: min(760px, 90%);

  margin: 35px auto 0;

  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-track {
  flex: 1;

  height: 2px;

  background: #202020;

  overflow: hidden;
}

.progress-fill {
  width: 16.66%;
  height: 100%;

  background: var(--lime);

  transition: width 0.5s ease;
}

#stepCounter {
  min-width: 48px;

  color: var(--muted-2);

  font-size: 10px;
  letter-spacing: 0.08em;
}


/* ONBOARDING */

.onboarding {
  flex: 1;

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 70px 20px 100px;
}

.form-window {
  width: min(650px, 100%);

  position: relative;

  min-height: 580px;

  overflow: hidden;
}

.step {
  width: 100%;

  position: absolute;

  left: 0;
  top: 0;

  opacity: 0;
  visibility: hidden;

  transform: translateY(80px);

  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    visibility 0.55s ease;
}

.step.active {
  position: relative;

  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

.step.exit-up {
  opacity: 0;
  transform: translateY(-80px);
}

.step-label {
  color: var(--lime);

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.17em;
}

.step h1 {
  margin-top: 22px;

  font-family: "Manrope", sans-serif;

  font-size: clamp(50px, 7vw, 76px);
  line-height: 0.98;

  letter-spacing: -0.06em;

  font-weight: 600;
}

.step > p {
  max-width: 470px;

  margin-top: 25px;

  color: var(--muted);

  font-size: 15px;
  line-height: 1.65;
}


/* FORM */

.step-form {
  width: 100%;

  margin-top: 38px;
}

.step-form label {
  display: block;

  margin-bottom: 9px;

  color: #8b8b8b;

  font-size: 11px;
}

.step-form input {
  width: 100%;

  height: 58px;

  padding: 0 17px;

  border: 1px solid var(--border-strong);
  border-radius: 11px;

  outline: none;

  background: var(--surface);
  color: var(--white);

  font-size: 14px;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.step-form input::placeholder {
  color: #4e4e4e;
}

.step-form input:focus {
  border-color: rgba(184, 255, 0, 0.5);

  box-shadow:
    0 0 0 3px rgba(184, 255, 0, 0.05);
}

.continue-btn {
  width: 100%;

  height: 56px;

  margin-top: 13px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 17px;

  border: 0;
  border-radius: 10px;

  background: var(--lime);
  color: #080808;

  font-size: 13px;
  font-weight: 600;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.continue-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 15px 35px rgba(184, 255, 0, 0.1);
}

.continue-btn span {
  font-size: 19px;
}


/* VERIFICATION */

.verification-step strong {
  color: var(--white);
  font-weight: 500;
}

.resend-btn {
  margin-top: 17px;

  border: 0;

  background: transparent;

  color: var(--muted);

  font-size: 11px;

  text-decoration: underline;
  text-underline-offset: 4px;
}

.resend-btn:hover {
  color: var(--white);
}


/* SUCCESS */

.success-symbol {
  width: 48px;
  height: 48px;

  margin-bottom: 28px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(184, 255, 0, 0.35);

  border-radius: 50%;

  color: var(--lime);

  font-size: 20px;

  box-shadow:
    0 0 40px rgba(184, 255, 0, 0.08);
}

.promo-box {
  width: 100%;

  margin-top: 34px;
  padding: 20px;

  display: grid;

  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;

  border: 1px solid var(--border-strong);
  border-radius: 15px;

  background:
    linear-gradient(
      135deg,
      rgba(184, 255, 0, 0.045),
      transparent
    ),
    var(--surface);
}

.promo-label {
  color: var(--muted-2);

  font-size: 9px;
  letter-spacing: 0.15em;
}

.promo-box strong {
  grid-column: 1 / 2;

  margin-top: 9px;

  font-family: "Manrope", sans-serif;

  font-size: 28px;
  letter-spacing: 0.12em;
}

.promo-box button {
  grid-column: 2;
  grid-row: 1 / 3;

  align-self: center;

  display: flex;
  align-items: center;
  gap: 7px;

  padding: 9px 11px;

  border: 1px solid var(--border-strong);
  border-radius: 8px;

  background: transparent;
  color: var(--white);

  font-size: 10px;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.promo-box button:hover {
  border-color: rgba(184, 255, 0, 0.4);
  background: rgba(184, 255, 0, 0.05);
}

.promo-box svg {
  width: 13px;
  height: 13px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.copy-message {
  height: 20px;

  margin-top: 9px;

  color: var(--lime);

  font-size: 10px;

  opacity: 0;

  transform: translateY(-3px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.copy-message.show {
  opacity: 1;
  transform: translateY(0);
}

.final-btn {
  margin-top: 18px;
}


/* DISCOUNT PHONE */

.discount-step {
  text-align: center;
}

.discount-step .step-label {
  margin-top: 35px;
}

.discount-phone {
  display: flex;
  justify-content: center;

  perspective: 1000px;
}

.mini-phone {
  width: 220px;
  height: 390px;

  padding: 7px;

  background: #161616;

  border: 1px solid var(--border-strong);

  border-radius: 31px;

  transform: rotate(2deg);

  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.5);

  animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {
  50% {
    transform: rotate(-2deg) translateY(-7px);
  }
}

.mini-notch {
  position: absolute;

  top: 10px;
  left: 50%;

  transform: translateX(-50%);

  width: 55px;
  height: 17px;

  background: #050505;

  border-radius: 20px;

  z-index: 3;
}

.mini-screen {
  width: 100%;
  height: 100%;

  padding: 42px 17px 20px;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(184, 255, 0, 0.09),
      transparent 45%
    ),
    #090909;

  border-radius: 25px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.mini-logo {
  width: 26px;
  height: 26px;

  display: grid;
  place-items: center;

  background: white;

  border-radius: 7px;

  overflow: hidden;
}

.mini-logo img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.mini-small {
  margin-top: 21px;

  color: var(--lime);

  font-size: 7px;
  letter-spacing: 0.16em;
}

.discount-number {
  margin-top: 25px;

  font-family: "Manrope", sans-serif;

  font-size: 67px;
  line-height: 0.8;

  letter-spacing: -0.08em;
  font-weight: 700;
}

.discount-number span {
  color: var(--lime);

  font-size: 32px;

  vertical-align: top;
}

.discount-off {
  margin-top: 10px;

  font-family: "Manrope", sans-serif;

  font-size: 17px;

  font-weight: 600;

  letter-spacing: 0.18em;

  color: var(--lime);
}

.discount-line {
  width: 50px;
  height: 1px;

  margin-top: 21px;

  background: var(--lime);
}

.mini-screen p {
  margin-top: 13px;

  color: #777;

  font-size: 9px;
  line-height: 1.5;
}

.mini-code {
  margin-top: auto;

  padding: 7px 10px;

  border: 1px solid var(--border);

  border-radius: 6px;

  color: #aaa;

  font-size: 8px;
  letter-spacing: 0.12em;
}


/* DISCOUNT CONTENT */

.discount-step h1 {
  margin-top: 18px;

  font-size: clamp(39px, 5vw, 55px);
}

.discount-step > p {
  max-width: 500px;

  margin-left: auto;
  margin-right: auto;
}

.validity {
  max-width: 490px;

  margin: 25px auto 0;
  padding: 13px;

  display: flex;
  align-items: flex-start;
  gap: 9px;

  border: 1px solid var(--border);

  border-radius: 9px;

  color: var(--muted);

  font-size: 10px;
  line-height: 1.5;

  text-align: left;
}

.validity span {
  flex: 0 0 auto;

  width: 6px;
  height: 6px;

  margin-top: 4px;

  border-radius: 50%;

  background: var(--lime);
}

.email-note {
  color: #686868 !important;

  font-size: 10px !important;
}

.finish-btn {
  width: 100%;

  height: 56px;

  margin-top: 13px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 17px;

  border-radius: 10px;

  background: var(--lime);
  color: #080808;

  font-size: 13px;
  font-weight: 600;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.finish-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 15px 35px rgba(184, 255, 0, 0.1);
}

.finish-btn span {
  font-size: 19px;
}


/* FOOTER */

.onboarding-footer {
  padding: 25px 5vw;

  display: flex;
  justify-content: space-between;

  border-top: 1px solid var(--border);

  color: var(--muted-2);

  font-size: 10px;
}


/* MOBILE */

@media (max-width: 600px) {

  .topbar {
    padding: 20px;
  }

  .logo img {
    width: 90px;
  }

  .socials {
    gap: 2px;
  }

  .socials a {
    width: 30px;
    height: 30px;
  }

  .socials svg {
    width: 13px;
    height: 13px;
  }

  .progress-wrap {
    width: calc(100% - 40px);

    margin-top: 25px;
  }

  .onboarding {
    padding: 55px 20px 70px;

    align-items: flex-start;
  }

  .form-window {
    min-height: 600px;
  }

  .step h1 {
    font-size: 48px;
  }

  .step > p {
    font-size: 14px;
  }

  .step-form input {
    height: 55px;
  }

  .mini-phone {
    width: 195px;
    height: 350px;
  }

  .discount-number {
    font-size: 58px;
  }

  .discount-step h1 {
    font-size: 39px;
  }

  .onboarding-footer {
    padding: 20px;

    gap: 20px;
  }
}