@font-face {
  font-family: Argon;
  src: url("/fonts/Argon-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #131625;
  --sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --display: Argon, "argon Fallback", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  background:
    radial-gradient(540px 420px at 50% 12%, rgba(232, 205, 150, 0.16), transparent 62%),
    radial-gradient(720px 520px at 88% 100%, rgba(92, 112, 186, 0.2), transparent 58%),
    radial-gradient(520px 380px at 8% 92%, rgba(196, 150, 72, 0.08), transparent 55%),
    var(--canvas);
  -webkit-font-smoothing: antialiased;
}

.screen {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  animation: fade 0.35s ease both;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 72%);
}

.brand {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  padding: 1.25rem 1.5rem;
}

.logo {
  display: block;
  width: 89px;
  height: 38px;
  background: #fff;
  -webkit-mask: url("/brand/logo.svg") center / contain no-repeat;
  mask: url("/brand/logo.svg") center / contain no-repeat;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1.5rem;
}

.stack {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portrait {
  position: relative;
  width: min(44vw, 156px, 21vh);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(255, 246, 228, 0.28),
    0 24px 50px -18px rgba(0, 0, 0, 0.75),
    0 0 70px rgba(214, 186, 122, 0.22);
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.portrait video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  margin: 1.75rem 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 8.5vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

h1 .tight {
  margin-left: -0.13em;
}

.lede {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14.5px;
  line-height: 1.625;
  text-wrap: balance;
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.form {
  width: 100%;
  margin-top: 2rem;
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

.spacer {
  height: 2rem;
}

input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 0.875rem 1.5rem;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
  outline: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(240, 215, 162, 0.7);
  box-shadow: 0 0 0 4px rgba(214, 186, 122, 0.12);
}

.primary,
.primary-link {
  width: 100%;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0f172b;
  padding: 0.875rem 2rem;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary svg,
.primary-link svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.2s ease;
}

.primary:hover,
.primary-link:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
}

.primary:hover svg,
.primary-link:hover svg {
  transform: translateX(2px);
}

.primary:active,
.primary-link:active {
  transform: scale(0.97);
}

.primary:disabled {
  cursor: progress;
  transform: none;
}

.primary:focus-visible,
.primary-link:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.form-error {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.form-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 0.85rem;
}

.text-button {
  display: inline;
  width: auto;
  margin-top: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button:disabled {
  cursor: progress;
}

footer {
  flex-shrink: 0;
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
}

footer p,
.noscript {
  max-width: 400px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  line-height: 1.65;
  text-wrap: balance;
}

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

@media (min-width: 640px) {
  .brand {
    padding: 1.5rem 2rem;
  }

  .logo {
    width: 103px;
    height: 44px;
  }

  .stack {
    max-width: 640px;
  }

  .portrait {
    width: min(168px, 22vh);
    border-radius: 30px;
  }

  h1 {
    margin-top: 2rem;
    font-size: 2.8rem;
  }

  .lede {
    margin-top: 1.25rem;
    max-width: 520px;
    font-size: 16.5px;
  }

  .form {
    max-width: 420px;
    margin-top: 2.25rem;
  }

  input,
  .primary,
  .primary-link {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  input {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .primary,
  .primary-link {
    font-size: 15.5px;
  }

  footer {
    padding-bottom: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .portrait,
  h1,
  .lede,
  .form,
  .primary,
  .primary-link {
    animation: none;
    transition: none;
  }
}

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

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