/* eveli.ai waitlist — editorial system.
   Paper white, near-black ink, 1px hairlines, 0 radius, no shadows, Inter. */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-soft: #151515;
  --dim: #787878;
  --mute: #a0a3a2;
  --hair: #dcd9d4;
  --field: 360px;
  --font: "Inter", "Helvetica Neue", Helvetica, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6vh 24px;
}

/* margin:auto centers the active state vertically when it fits, and collapses to
   0 when content is taller than the viewport (so nothing is clipped — it scrolls). */
.state { width: 100%; max-width: 520px; text-align: center; display: none; margin: auto 0; }
.state.is-active { display: block; }

/* Type */
.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.headline {
  margin: 0 auto;
  max-width: 12em;
  font-size: 40px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.subtext {
  margin: 22px auto 0;
  max-width: 30em;
  font-size: 16px;
  line-height: 1.5;
  color: var(--dim);
}
.microlabel {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.number {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.helper { margin: 22px 0 0; font-size: 12px; color: var(--mute); }

/* Minimal join line: "Join waitlist." bold black + "or don't." lighter gray. */
.join-line {
  margin: 0;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.join-strong { font-weight: 700; color: var(--ink); }
.join-soft { font-weight: 400; color: var(--dim); }

/* Phone priority screens (after questions / after phone). Sparse, monochrome. */
.eyebrow strong { font-weight: 700; color: var(--ink); }
#state-phone .number, #state-final .number { margin-top: 14px; }
.phone-offer { margin: 22px auto 0; max-width: 34em; font-size: 16px; line-height: 1.5; color: var(--ink); }
.phone-offer strong { font-weight: 700; }
.down-arrow { margin: 14px 0 22px; font-size: 20px; line-height: 1; color: var(--ink); }
.phone-row { width: 100%; max-width: 520px; margin: 0 auto; display: flex; justify-content: center; }
.phone-country {
  flex: 0 0 auto;
  height: 52px;
  border: 1px solid var(--hair);
  border-right: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  padding: 0 6px 0 12px;
  cursor: pointer;
}
.phone-row .field { flex: 1 1 auto; height: 52px; min-width: 0; }
.phone-row .btn-primary { width: auto; flex: 0 0 auto; height: 52px; padding: 0 30px; cursor: pointer; }
#phone-error { margin: 12px auto 0; max-width: 520px; }
.consent { margin: 18px auto 0; max-width: 32em; font-size: 11px; line-height: 1.55; color: var(--mute); }

/* Form */
.form {
  margin: 20px auto 0;
  width: 100%;
  max-width: var(--field);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--hair);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
}
.field::placeholder { color: var(--mute); }
.field:focus { border-color: var(--ink); }
.field.has-error { border-color: var(--ink); }

.btn-primary {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-primary:disabled { opacity: 0.45; cursor: default; }

.btn-ghost {
  margin: 18px auto 0;
  display: block;
  border: 0;
  background: none;
  color: var(--dim);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.error {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
}

.turnstile { display: flex; justify-content: center; }
.turnstile[hidden] { display: none; }
/* Invisible Turnstile: an empty container takes no space; it only appears if a
   challenge actually needs to be shown. */
.turnstile:empty { display: none; }

/* Minimal privacy link (required disclosure for invisible Turnstile). */
.footer { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px; text-align: center; }
.footer a {
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.footer a:hover { color: var(--dim); text-decoration: underline; }

/* Privacy page (doc layout). */
.stage--doc { align-items: flex-start; padding: 14vh 24px 12vh; }
.doc { max-width: 560px; text-align: left; }
.doc-title { margin: 14px 0 24px; font-size: 32px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.doc p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.doc a { color: var(--ink); text-decoration: underline; }
.doc .doc-back { margin-top: 28px; }
.doc .doc-back a { color: var(--dim); font-size: 13px; text-decoration: none; }

/* Position state */
.number { margin-top: 4px; }
.dupe-note { margin: 14px 0 0; font-size: 13px; color: var(--dim); }
.rule { width: var(--field); max-width: 100%; margin: 30px auto; border: 0; border-top: 1px solid var(--hair); }
.skip-title { margin: 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.skip-sub { margin: 10px auto 26px; max-width: 26em; font-size: 14px; line-height: 1.5; color: var(--dim); }
#state-position .btn-primary { max-width: var(--field); margin: 0 auto; }

/* Questions */
#state-questions { max-width: 560px; }
.q-headline {
  margin: 18px auto 28px;
  max-width: 16em;
  font-size: 30px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.q-subtext { margin: -14px auto 26px; max-width: 30em; font-size: 13px; line-height: 1.5; color: var(--dim); }

/* Original waitlist-number status note above Question 1 (Q1 only). */
#q-context { margin: 0 auto 30px; }
.q-context-num { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.q-context-sub { margin: 6px 0 0; font-size: 13px; color: var(--dim); }
.options {
  margin: 0 auto 12px;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option {
  width: 100%;
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid var(--hair);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.option[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 500;
}
#state-questions .field { max-width: 480px; margin: 0 auto; }
#state-questions .btn-primary { max-width: 480px; margin: 20px auto 0; }
#q-error { max-width: 480px; margin: 10px auto 0; text-align: center; }

/* Footer dev note */
.env-note {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--mute);
  text-align: center;
  background: #faf9f8;
  border-top: 1px solid var(--hair);
}

@media (max-width: 600px) {
  .stage { padding: 6vh 20px; }
  .headline { font-size: 32px; }
  .number { font-size: 52px; }
  .q-headline { font-size: 24px; }
}
