:root {
  --blue: #0d55fd;
  --blue-600: #0a46d6;
  --blue-soft: #ecf2fe;
  --red: #d92d20;
  --ink: #020209;
  --surface: #f5f6f8;
  --gray-700: #3c3f47;
  --gray-600: #62656d;
  --gray-500: #686c76;
  --gray-400: #6f7177;
  --line: #e3e4e8;
  --bg: #ffffff;

  --gutter: clamp(20px, 3.9vw, 60px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --vh: 1vh;
}

@supports (height: 1svh) {
  :root {
    --vh: 1svh;
  }
}

:root {
  --u: min(100vw / 1536, var(--vh) * 100 / 1024);
  --m: clamp(0.45px, min(100vw / 375, var(--vh) * 100 / 600), 1px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
p {
  margin: 0;
}

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

svg {
  display: block;
}

::selection {
  background: var(--blue);
  color: #fff;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-inline: var(--gutter);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(calc(18 * var(--m)), calc(35 * var(--u)), 35px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(calc(10 * var(--m)), calc(14 * var(--u)), 14px);
  border-radius: 10px;
}

.brand:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
}

.brand__icon {
  width: clamp(max(24px, calc(36 * var(--m))), calc(46 * var(--u)), 46px);
  height: auto;
  aspect-ratio: 1;
  color: var(--blue);
}

.brand__name {
  position: relative;
  top: -0.08em;
  font-size: clamp(max(18px, calc(28 * var(--m))), calc(45 * var(--u)), 45px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.social {
  display: flex;
  gap: clamp(6px, calc(10 * var(--u)), 10px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.social__link {
  display: grid;
  place-items: center;
  width: clamp(max(28px, calc(36 * var(--m))), calc(40 * var(--u)), 40px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gray-500);
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.social__link svg {
  width: 45%;
  height: 45%;
}

.social__link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (hover: hover) {
  .social__link:hover {
    border-color: var(--blue-soft);
    background: var(--blue-soft);
    color: var(--blue);
  }
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: clamp(calc(12 * var(--m)), calc(24 * var(--u)), 24px);
  text-align: center;
}

.hero__icon {
  width: clamp(calc(96 * var(--m)), calc(172 * var(--u)), 172px);
  aspect-ratio: 1;
  border-radius: 21%;
  color: var(--blue);
  box-shadow:
    0 8px 24px rgba(13, 85, 253, 0.1),
    0 4px 48px rgba(13, 85, 253, 0.1);
}

.hero__icon svg {
  width: 100%;
  height: 100%;
}

.hero__eyebrow {
  margin-top: clamp(calc(24 * var(--m)), calc(45 * var(--u)), 45px);
  padding-left: 0.5em;
  color: var(--gray-600);
  font-size: clamp(max(10px, calc(12 * var(--m))), calc(20 * var(--u)), 20px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.hero__title {
  margin-top: 0.25em;
  font-size: clamp(calc(44 * var(--m)), calc(116 * var(--u)), 116px);
  font-weight: 825;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero__title .accent {
  color: var(--blue);
}

.hero__lead {
  margin-top: 0.33em;
  color: var(--gray-500);
  font-size: clamp(max(13px, calc(18 * var(--m))), calc(36 * var(--u)), 36px);
  line-height: 1.4;
  letter-spacing: 0.005em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin-top: clamp(calc(28 * var(--m)), calc(47 * var(--u)), 47px);
  font-size: clamp(max(12px, calc(16 * var(--m))), calc(25 * var(--u)), 25px);
}

.cta,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4em 1.2em;
  border-radius: 999px;
  line-height: 1.44;
  letter-spacing: -0.02em;
}

.cta {
  border: 0;
  background: var(--blue);
  box-shadow: 0 8px 20px -8px rgba(13, 85, 253, 0.6);
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.cta:active {
  transform: translateY(1px);
}

.cta:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (hover: hover) {
  .cta:hover {
    background: var(--blue-600);
  }
}

html:not(.js) .cta {
  display: none;
}

.badge {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 500;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block:
    clamp(calc(16 * var(--m)), calc(25 * var(--u)), 25px)
    clamp(calc(24 * var(--m)), calc(49 * var(--u)), 49px);
  border-top: 1px solid var(--line);
  color: var(--gray-400);
  font-size: clamp(max(12px, calc(14 * var(--m))), calc(18 * var(--u)), 18px);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.chain {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.chain__mark {
  flex: none;
  width: 1em;
  height: 1em;
  border-radius: 0.22em;
  background: var(--blue);
}

.wl {
  --wl-pad: 28px;

  width: min(448px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(var(--vh) * 100 - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 24px 80px rgba(2, 2, 9, 0.22),
    0 2px 8px rgba(2, 2, 9, 0.06);
  color: var(--ink);
}

.wl::backdrop {
  background: rgba(2, 2, 9, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.wl__badge-check path,
.wl__check path,
.wl__close path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wl__body {
  padding: var(--wl-pad);
}

.wl__title {
  margin: 0;
  padding-right: 44px;
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
  letter-spacing: -0.03em;
}

.wl__intro {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 15px;
  line-height: 22px;
}

.wl__close {
  position: absolute;
  top: calc(var(--wl-pad) - 2px);
  right: calc(var(--wl-pad) - 8px);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.wl__close svg {
  width: 20px;
  height: 20px;
}

.wl__close path {
  stroke-width: 2;
}

.wl__close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (hover: hover) {
  .wl__close:hover {
    background: var(--surface);
    color: var(--ink);
  }
}

.wl__steps {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.wl__step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
}

.wl__badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.wl__badge > * {
  grid-area: 1 / 1;
}

.wl__badge-num {
  transition: opacity 0.2s ease;
}

.wl__badge-check {
  width: 16px;
  height: 16px;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.wl__badge-check path {
  stroke-width: 2.6;
}

.wl.is-unlocked .wl__step--follow .wl__badge {
  background: var(--blue);
  box-shadow: none;
}

.wl.is-unlocked .wl__step--follow .wl__badge-num {
  opacity: 0;
}

.wl.is-unlocked .wl__step--follow .wl__badge-check {
  opacity: 1;
  transform: none;
}

.wl__step-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 20px;
  letter-spacing: -0.01em;
}

.wl__step-hint {
  margin-top: 2px;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 18px;
}

.wl__when-unlocked,
.wl.is-unlocked .wl__when-locked {
  display: none;
}

.wl.is-unlocked .wl__when-unlocked {
  display: inline;
}

.wl__follow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

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

.wl.is-unlocked .wl__follow {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.wl__follow:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (hover: hover) {
  .wl__follow:hover {
    border-color: #2a2a2e;
    background: #2a2a2e;
  }

  .wl.is-unlocked .wl__follow:hover {
    border-color: #d6d8de;
    background: #fff;
  }
}

.wl__step--details {
  align-items: start;
}

.wl__step--details .wl__badge {
  margin-top: -4px;
}

.wl__step--details > div {
  grid-column: 2 / -1;
}

.wl__fields {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  min-width: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  transition: opacity 0.2s ease;
}

.wl__fields:disabled {
  opacity: 0.5;
}

.wl__label {
  display: block;
  margin-bottom: 6px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.wl__control {
  position: relative;
}

.wl__prefix {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--gray-400);
  font-size: 16px;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.wl__input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.wl__input--handle {
  padding-left: 31px;
}

.wl__input--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -0.02em;
}

.wl__input::placeholder {
  color: #9a9ca5;
  opacity: 1;
}

.wl__input--mono::placeholder {
  font-family: var(--font);
  letter-spacing: 0;
}

.wl__input:disabled {
  cursor: not-allowed;
}

.wl__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 85, 253, 0.15);
  outline: none;
}

.wl__input[aria-invalid="true"] {
  border-color: var(--red);
}

.wl__input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.15);
}

@media (hover: hover) {
  .wl__input:hover:not(:disabled, :focus, [aria-invalid="true"]) {
    border-color: #cfd1d7;
  }
}

.wl__error {
  margin-top: 6px;
  color: var(--red);
  font-size: 13px;
  line-height: 18px;
}

.wl__error--form {
  margin-top: 14px;
  text-align: center;
}

.wl__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wl__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 10px 24px -10px rgba(13, 85, 253, 0.7);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.wl__submit:disabled {
  box-shadow: none;
  opacity: 0.4;
  cursor: not-allowed;
}

.wl__submit[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

.wl__submit:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (hover: hover) {
  .wl__submit:hover:not(:disabled) {
    background: var(--blue-600);
  }
}

.wl__privacy {
  margin-top: 12px;
  color: var(--gray-400);
  font-size: 12.5px;
  line-height: 18px;
  text-align: center;
  text-wrap: balance;
}

.wl__done {
  padding-top: calc(var(--wl-pad) + 12px);
  text-align: center;
}

.wl__check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.wl__check svg {
  width: 30px;
  height: 30px;
}

.wl__check path {
  stroke-width: 2.4;
}

.wl__done .wl__title {
  padding-right: 0;
}

.wl__done .wl__intro {
  margin-top: 8px;
  text-wrap: balance;
}

.wl__done .wl__submit {
  margin-top: 24px;
}

@media (max-width: 480px) {
  .wl {
    --wl-pad: 22px;

    width: 100%;
    max-width: 100%;
    max-height: calc(var(--vh) * 100 - 12px);
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }

  .wl__body {
    padding-bottom: calc(var(--wl-pad) + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 400px) {
  .wl__step--follow .wl__follow {
    grid-column: 2 / -1;
    justify-self: start;
    margin-top: 10px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero > :nth-child(2) { animation-delay: 0.08s; }
  .hero > :nth-child(3) { animation-delay: 0.16s; }
  .hero > :nth-child(4) { animation-delay: 0.24s; }
  .hero > :nth-child(5) { animation-delay: 0.32s; }

  .wl[open] {
    animation: pop 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .wl[open]::backdrop {
    animation: fade 0.25s ease;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 480px) {
  .wl[open] {
    animation: sheet 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes sheet {
  from {
    transform: translateY(100%);
  }
}
