@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes blink-slow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}

/* The site is one column of this width, centered once the screen is wider than it: that column
   is the viewport everything on the page is laid out and aligned against, and the inset is the
   distance any edge-hugging element keeps from its edges. */
:root {
  --viewport-width: 420px;
  --viewport-inset: clamp(8px, 3vw, 16px);
}

html, body {
  margin: 0;
  height: 100%;
  background: oklch(0.14 0.006 40);
  overflow: hidden;
}

.slider {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

.slides {
  height: 100%;
  width: 100%;
  transform: translateY(0);
}

.slide {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
}

.page {
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 5vh, 32px) clamp(24px, 7vw, 56px);
  background: oklch(0.14 0.006 40);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  gap: clamp(14px, 4vh, 28px);
  max-width: var(--viewport-width);
  margin: 0 auto;
  padding-top: clamp(48px, 9vh, 76px);
  padding-bottom: clamp(64px, 12vh, 96px);
}

.intro {
  display: flex;
  flex-direction: column;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 2.4vh, 26px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  color: oklch(0.5 0.006 40);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  animation: blink-slow 4s ease-in-out infinite;
}

.scroll-arrow {
  width: 56px;
  height: 13px;
}

.scroll-arrow-up {
  transform: rotate(180deg);
}

.eyebrow {
  color: oklch(0.63 0.22 25);
  font-size: clamp(12px, 3.2vh, 15px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: clamp(6px, 1.6vh, 12px);
  padding-left: 3px;
}

.headline {
  color: oklch(0.97 0.003 40);
  font-size: clamp(32px, 9vh, 52px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.headline .accent {
  color: oklch(0.63 0.22 25);
}

.headline-indent {
  padding-left: 3px;
}

.subtext,
.scroll-label {
  color: oklch(0.5 0.006 40);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.subtext {
  margin-top: clamp(8px, 2vh, 16px);
  padding-left: 3px;
}

.form-view,
.done-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.done-view {
  align-items: flex-start;
}

.hidden {
  display: none;
}

.code-input {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  letter-spacing: 0.4em;
  font-size: clamp(24px, 6vh, 34px);
  font-weight: 800;
  padding: clamp(10px, 3vh, 18px) 8px;
  border-radius: 0;
  border: none;
  border-bottom: 4px solid oklch(0.63 0.22 25);
  background: transparent;
  color: oklch(0.97 0.003 40);
  font-family: inherit;
  outline: none;
}

.error-message {
  height: 16px;
  color: oklch(0.63 0.22 25);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0;
}

.error-message.visible {
  opacity: 1;
}

.btn {
  width: 100%;
  padding: clamp(12px, 3.5vh, 20px);
  border: none;
  font-size: clamp(16px, 4vh, 20px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-primary {
  background: oklch(0.63 0.22 25);
  color: oklch(0.98 0.003 40);
}

/* The label stays in place but invisible, so the button keeps its size under the spinner. */
.btn.loading {
  position: relative;
  color: transparent;
  cursor: default;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.2em;
  height: 1.2em;
  margin: -0.6em 0 0 -0.6em;
  border: 3px solid oklch(0.98 0.003 40 / 0.35);
  border-top-color: oklch(0.98 0.003 40);
  border-radius: 50%;
  box-sizing: border-box;
  animation: spin 0.7s linear infinite;
}

.btn-secondary {
  background: oklch(0.97 0.003 40);
  color: oklch(0.14 0.006 40);
}

.partnership {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: clamp(8px, 2vh, 16px);
}

.partnership-title {
  color: oklch(0.5 0.006 40);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  padding-left: 3px;
}

.partnership-link {
  color: oklch(0.97 0.003 40);
  font-size: clamp(16px, 4vh, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding-left: 3px;
}

.partnership-link:hover {
  color: oklch(0.63 0.22 25);
}

.done-title {
  color: oklch(0.97 0.003 40);
  font-size: clamp(20px, 5vh, 28px);
  font-weight: 800;
  text-transform: uppercase;
}
