/* Original signup styles: preserve disclosure mechanics while site tokens supply the theme. */
/* ---------- form ---------- */

/* The conversion card gets a faint blue halo — the one lit object on the page. */
.form {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 32px;
  box-shadow:
    0 0 0 1px var(--halo-ring),
    0 32px 90px -28px var(--halo-glow),
    0 12px 40px -16px var(--halo-shade);
}

/* Moved off-screen instead of hidden — bots skip display:none inputs. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field { display: grid; gap: 8px; }

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.field__input {
  width: 100%;
  padding: 12px 16px;
  background: var(--panel-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-input);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.field__input::placeholder { color: var(--text-faint); }
.field__input:focus { outline: none; border-color: var(--accent); background: var(--input-focus-bg); }

.field__input:-webkit-autofill,
.field__input:-webkit-autofill:hover,
.field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--panel-raised) inset;
  caret-color: var(--text);
}

.form__note {
  margin: 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

/* Sits below the beta opt-in, so it rules off and covers only what follows. */
.form__optional {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- beta opt-in ---------- */

.optin {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--panel-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: border-color 160ms var(--ease);
}
.optin:hover { border-color: var(--hairline-strong); }

.optin__box {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.optin__text { display: grid; gap: 3px; }
.optin__title { font-size: 15px; font-weight: 600; }
.optin__desc { color: var(--text-dim); font-size: 13px; line-height: 1.45; }

/* ---------- staged reveal ----------
   Reveals are open by default: with no JavaScript the whole form is usable.
   The .js class (set in <head>) is what collapses them. The 0fr → 1fr row
   animates to the content's natural height without measuring it in script.
   Class names are shared with assets/notify.js — keep them in sync. */

.reveal { display: grid; }
.reveal__inner { display: grid; gap: 18px; }

.js .reveal {
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 320ms var(--ease), opacity 320ms var(--ease);
}
.js .reveal__inner { overflow: hidden; }
.js .reveal--open { grid-template-rows: 1fr; opacity: 1; }

/* ---------- chips ---------- */

.chipset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.chipset legend { padding: 0; margin-bottom: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--panel-raised);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.chip:hover { color: var(--text); }

/* Chips are real form controls, so the form stays a plain POST. */
.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chip:has(input:checked) {
  background: var(--accent);
  color: #fff;
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.discord-invite { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.discord-invite a { color: var(--accent); text-decoration: none; }
.discord-invite a:hover { color: var(--text); }
