/* Matches the storefront theme (Horizon settings in storefront/config/settings_data.json):
   white background, black text, #333333 input text, #DFDFDF borders,
   14px radius, Inter (bold headings). No web fonts are loaded: Inter is used if
   the visitor has it, otherwise the system sans-serif. */
:root {
  --bg: #ffffff;
  --fg: #000000;
  --text-2: #333333;
  --muted: #555555;
  --border: #dfdfdf;
  --error: #b00020;
  --radius: 14px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1rem 3rem;
  text-align: center;
}

.logo {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1rem; }

.lede { margin-bottom: 1.5rem; }

.points { margin-bottom: 2rem; }

.signup-line { margin-bottom: 1rem; }

.form { margin: 0 auto; max-width: 30rem; }

.row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

input[type="email"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid #8a8a8a; /* darker than --border so the field edge meets 3:1 contrast */
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-2);
  font: inherit;
}

input[type="email"]::placeholder { color: #6b6b6b; opacity: 1; }

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

button {
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--fg);
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: var(--text-2); }
button[disabled] { opacity: 0.6; cursor: progress; }

:focus-visible {
  outline: 3px solid #1a5fd6;
  outline-offset: 2px;
}

.status { min-height: 1.6em; margin: 0.75rem 0 0; font-weight: 600; }
.status.is-error { color: var(--error); }

.success {
  margin: 0 auto;
  max-width: 30rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
}

.consent, .privacy {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.consent { max-width: 30rem; margin: 1rem auto 2rem; }

.questions { margin-bottom: 1.5rem; }

.privacy { max-width: 30rem; margin: 0 auto; }

a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.back { display: inline-block; margin-top: 1rem; }

/* Honeypot: off screen for people, still in the form for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden {
  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: 40em) {
  .page { padding-top: 5rem; }
  .row { flex-direction: row; }
  .row input { flex: 1; }
}
