/* Fonts are self-hosted (SIL Open Font License, see /fonts/OFL-*.txt). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --ground: #edebe6;
  --ink: #111110;
  --ink-soft: #3a3936;
  --ink-muted: #5c5a55;
  --accent: #2b3bff;
  --error: #a3160b;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

p {
  margin: 0;
}

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

.page {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Top bar */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand__mark {
  display: block;
  width: 14px;
  height: 14px;
  background: var(--accent);
}

.top__status {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Main block */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 56px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow__rule {
  display: block;
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: var(--ink);
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 8.5vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.headline__line {
  display: block;
  text-wrap: balance;
}

.lower {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 40px 64px;
  align-items: end;
}

.intro {
  max-width: 480px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Signup */
.signup__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup__label {
  font-size: 14px;
  font-weight: 600;
}

.signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.signup__input {
  flex: 1 1 220px;
  min-width: 0;
  height: 56px;
  padding: 0 4px;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
}

.signup__input::placeholder {
  color: #6b6964;
  opacity: 1;
}

.signup__input:focus-visible {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 2px 0 var(--accent);
}

.signup__input[aria-invalid="true"] {
  border-bottom-color: var(--error);
}

.signup__button {
  height: 56px;
  padding: 0 28px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.signup__button:hover {
  background: #1c2be0;
}

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

.signup__button:disabled {
  background: #5c5a55;
  cursor: progress;
}

/* Honeypot: kept in the layout tree but moved off screen. */
.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The Turnstile widget only takes up space when it needs interaction. */
.cf-turnstile:empty {
  display: none;
}

.signup__status {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--error);
}

.signup__status:empty {
  display: none;
}

.signup__note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.signup__done {
  padding: 18px 0;
  border-top: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.signup__done:focus {
  outline: none;
}

/* Footer */
.bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  font-size: 14px;
}

/* Simple message pages (404) */
.message {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.message a {
  color: var(--ink);
  font-weight: 600;
}

.message a:hover {
  color: var(--accent);
}

@media (max-width: 480px) {
  .page {
    padding-top: 28px;
    padding-bottom: 28px;
    gap: 36px;
  }

  .main {
    gap: 36px;
  }

  .signup__button {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signup__button {
    transition: none;
  }
}
