/* ==========================================================================
   BON JEU — early-access sign-up
   A navy block on the cream page: the one place asking something of the
   visitor, so it earns the colour.
   ========================================================================== */

.signup {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(28px, 4vw, 56px) clamp(22px, 3.4vw, 60px);
}

.signup__copy {
  max-width: 46ch;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.5;
  color: rgba(244, 240, 230, 0.9);
}
.signup__copy .alt {
  display: block;
  margin-top: 6px;
  font-style: italic;
  font-size: 0.85em;
  color: rgba(244, 240, 230, 0.58);
}

.signup__form {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  gap: clamp(14px, 1.6vw, 26px);
  align-items: end;
  margin-top: clamp(22px, 2.6vw, 34px);
  max-width: 900px;
}

.signup__field { display: block; }

.signup__label {
  display: block;
  margin-bottom: 9px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.66);
}
.signup__label em {
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: rgba(244, 240, 230, 0.42);
}
/* The label already carries its own French; a second one under the word
   "optional" is noise. */
.signup__label .alt { display: none; }

.signup__field input {
  width: 100%;
  padding: 11px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(244, 240, 230, 0.4);
  color: var(--cream);
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: border-color 200ms var(--ease);
}
.signup__field input::placeholder { color: rgba(244, 240, 230, 0.34); }
.signup__field input:focus {
  outline: none;
  border-bottom-color: var(--cream);
}
.signup__field input:focus-visible {
  outline: 1px solid rgba(244, 240, 230, 0.7);
  outline-offset: 4px;
}

.signup__submit {
  padding: 13px clamp(20px, 2.4vw, 38px);
  border: 1px solid var(--cream);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.signup__submit:hover { background: var(--cream); color: var(--navy); }
.signup__submit[disabled] { opacity: 0.5; cursor: progress; }

/* Off-screen rather than display:none — a bot reading the DOM still finds it,
   which is the point, but nobody can tab into it. */
.signup__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.signup__note {
  margin-top: 16px;
  min-height: 1.2em;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.signup__note[data-state='error'] { color: #ffb4a8; }
.signup__note[data-state='done'] { color: #9fe3c0; }
.signup__note[data-state='busy'] { color: rgba(244, 240, 230, 0.6); }

.signup__small {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(244, 240, 230, 0.5);
}
.signup__small .alt { display: block; font-style: italic; margin-top: 3px; }

@media (max-width: 860px) {
  .signup__form { grid-template-columns: 1fr; }
  .signup__submit { width: 100%; }
}
