:root {
  --bg: #000;
  --text: #f3f5f5;
  --muted: #9aa2a2;
  --line: rgba(255, 255, 255, 0.14);
  --field: rgba(8, 8, 8, 0.55);
  --teal: #3ec4c6;
  --ink: #041414;
  --font: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--teal);
  color: var(--ink);
}

.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100svh;
  height: 100dvh;
  height: 100svh;
  overflow: hidden;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem
    max(1.35rem, env(safe-area-inset-bottom));
}

.product {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  pointer-events: none;
}

.product picture,
.product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.brand,
.cta {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  justify-content: center;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text);
}

.lockup img {
  width: 1.7rem;
  height: 1.7rem;
}

.cta {
  margin-top: auto;
  text-align: center;
  max-width: 32rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 3.5rem 0.5rem 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.42) 55%,
    rgba(0, 0, 0, 0) 100%
  );
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.signup {
  display: flex;
  gap: 0.45rem;
  margin: 1.1rem auto 0;
  max-width: 22.5rem;
}

.signup[hidden] {
  display: none;
}

.signup input,
.signup button {
  font-family: inherit;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0.72rem 0.95rem;
}

.signup input {
  flex: 1;
  min-width: 0;
  background: var(--field);
  border-color: var(--line);
  color: var(--text);
  outline: none;
  backdrop-filter: blur(8px);
}

.signup input::placeholder {
  color: #7a8181;
}

.signup input:focus {
  border-color: var(--teal);
}

.signup button {
  background: var(--teal);
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.signup button:hover {
  background: #6ad4d6;
}

.signup button:active {
  transform: translateY(0.5px);
}

.signup button:disabled {
  opacity: 0.65;
  cursor: default;
}

.signup input:focus-visible,
.signup button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.status {
  min-height: 1.25rem;
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--teal);
}

.cta.is-done .status {
  margin-top: 1.1rem;
  font-size: 0.95rem;
}

.status.is-error {
  color: #e8a0a0;
}

.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;
}

.lockup,
.cta {
  animation: fade 0.85s ease both;
}

.cta {
  animation-delay: 0.12s;
}

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

@media (max-width: 640px) {
  .lockup {
    font-size: 0.95rem;
  }

  .lockup img {
    width: 1.45rem;
    height: 1.45rem;
  }

  .signup {
    flex-direction: column;
    max-width: 18.5rem;
  }

  .signup button {
    width: 100%;
  }

  h1 {
    font-size: 1.05rem;
  }

  .cta {
    padding-top: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lockup,
  .cta {
    animation: none;
  }
}
