/* Cirkit waitlist — mobile-first, single column, no framework */

:root {
  --text: #121212;      /* not pure black */
  --accent: #FD4C01;    /* orange */
  --bg: #fdfdfc;        /* very light neutral */
  --muted: #6a6a6a;
  --border: #e2e2df;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Layout */
.wrap {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100%;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
}

/* Typography */
.headline {
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.subhead {
  font-weight: 400;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 34rem;
}

/* Form */
.signup { margin: 0 0 2.5rem; }

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

input[type="email"] {
  width: 100%;
  font: inherit;
  font-weight: 500;
  padding: 0.85rem 1rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s ease;
}

input[type="email"]:focus {
  border-color: var(--accent);
}

input[type="email"]::placeholder { color: #b0b0ac; }

button[type="submit"] {
  font: inherit;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  min-width: 11.5rem; /* holds the idle width so the label swap (→ Pending → Added) doesn't shift layout */
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

button[type="submit"]:hover { filter: brightness(0.94); }
button[type="submit"]:disabled { opacity: 0.6; cursor: default; }

/* Only the label text cross-fades — the orange button itself never fades out */
.btn-label { transition: opacity 0.15s ease; }
.btn-label.is-fading { opacity: 0; }

/* Wider screens: input + button side by side */
@media (min-width: 520px) {
  .field-row { flex-direction: row; }
  input[type="email"] { flex: 1; }
  button[type="submit"] { white-space: nowrap; }
}

/* Status message */
.status {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 1.3em;
}
.status.success { color: var(--accent); }
.status.error { color: #c0392b; }

/* Honeypot — visually and semantically hidden from humans */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Screen-reader-only label */
.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;
}

/* Social row */
.social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.social a {
  color: var(--text);
  display: inline-flex;
  transition: color 0.15s ease, transform 0.15s ease;
}

.social a:hover,
.social a:focus-visible {
  color: var(--accent);
  transform: translateY(-2px);
}

.social svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* Footer */
.foot {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.foot p { margin: 0; }
