:root {
  --bg: #191919;
  --orange: #f26a1b;
  --orange-hover: #ff7d2e;
  --text: #f5f3ee;
  --muted: #b9b5ad;
  --line: #3a3835;
}

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

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(0.5rem, 3vw, 2rem) 1.25rem 2rem;
  text-align: center;
}

.logo {
  margin: 0;
  width: min(720px, 100%);
  line-height: 0;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.logo--small { width: min(440px, 90%); }

.signup {
  width: min(620px, 100%);
  margin-top: clamp(-4rem, -6vw, -1rem);
  animation: rise 0.8s ease-out both;
}

.headline {
  margin: 0 0 0.75rem;
  color: var(--orange);
  font-family: "Archivo", "Montserrat", sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: clamp(1.1rem, 5.2vw, 2.4rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
  text-align: center;
}

.sub {
  margin: 0 auto 2rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 500;
  line-height: 1.55;
}

.sub__line { display: block; }

.form {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 0.25rem;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.2s ease;
}

.input::placeholder { color: #7d7a74; }

.input:focus {
  outline: none;
  border-bottom-color: var(--orange);
}

.button {
  padding: 0.95rem 1.6rem;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.button:hover { background: var(--orange-hover); }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.button:disabled { opacity: 0.7; cursor: progress; }
.button--link { display: inline-block; }

.status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  font-weight: 700;
  color: var(--text);
}

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

.footer {
  padding: 1.5rem;
  text-align: center;
  color: #6f6c66;
  font-size: 0.8rem;
}

.hp { position: absolute; left: -9999px; }

.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 (max-width: 540px) {
  .form { flex-direction: column; }
  .button { width: 100%; }
}

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

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