/* signup.html
   Kept out of an inline <style> block so the Content-Security-Policy's
   style-src needs no 'unsafe-inline'. */

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

:root {
  /* Matches the landing page's own dark theme. */
  --bg:        #080810;
  --panel:     #12121e;
  --cream:     #F2EDE6;
  --terra:     #C4826A;
  --terra-dim: rgba(196,130,106,0.15);
  --muted:     rgba(242,237,230,0.45);
  --border:    rgba(242,237,230,0.10);
  --border-hi: rgba(242,237,230,0.18);
  --sage:      #8BAD7E;
  --red-soft:  #E2867A;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ────────────────────────────────────────────────────────────── */
.su-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  background: rgba(8,8,16,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}

.su-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 640; letter-spacing: -0.2px;
}

.su-logo-mark {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}

.su-login-link {
  font-size: 13px; color: var(--muted);
  transition: color 0.15s;
  cursor: pointer; background: none; border: none; font-family: inherit;
}
.su-login-link:hover { color: var(--cream); }

/* ── Main ───────────────────────────────────────────────────────────── */
.su-main {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 16px 40px;
}

/* ── Wizard card ────────────────────────────────────────────────────── */
.wizard {
  width: 100%;
  max-width: 480px;
  background: var(--panel);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  padding: 36px 40px 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.35);
}

/* ── Step dots ──────────────────────────────────────────────────────── */
.step-dots {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 28px;
}

.sdot {
  height: 7px; border-radius: 4px;
  background: var(--border-hi);
  transition: background 0.2s, width 0.2s;
  width: 7px;
}
.sdot.done    { background: rgba(196,130,106,0.55); }
.sdot.current { background: var(--terra); width: 22px; }

/* ── Step visibility ────────────────────────────────────────────────── */
.step { display: none; }
.step.active { display: block; animation: stepIn 0.22s ease; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Step header ────────────────────────────────────────────────────── */
.step h2 {
  font-size: 22px; font-weight: 680; letter-spacing: -0.4px;
  color: var(--cream);
  margin-bottom: 8px;
}

.step-hint {
  font-size: 13px; color: var(--muted);
  margin-bottom: 24px; line-height: 1.55;
}

/* ── Text input ─────────────────────────────────────────────────────── */
.su-input {
  width: 100%;
  background: rgba(242,237,230,0.04);
  border: 1.5px solid var(--border-hi);
  border-radius: 10px;
  color: var(--cream);
  font-size: 16px; font-weight: 400; letter-spacing: normal;
  padding: 12px 16px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
  margin-bottom: 14px;
}
.su-input::placeholder { color: rgba(242,237,230,0.28); }
.su-input:focus  { border-color: rgba(196,130,106,0.6); }
.su-input.err    { border-color: rgba(226,134,122,0.6); }

/* ── Tag-chip fields (interests / values) ─────────────────────────────── */
.tag-field { margin-bottom: 16px; }
.tag-field-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 620; color: var(--cream);
  margin-bottom: 7px;
}
.tag-count {
  font-size: 12px; font-weight: 700;
  color: var(--muted);
  background: rgba(242,237,230,0.05);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  padding: 2px 10px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.tag-count.met {
  color: var(--sage);
  background: rgba(139,173,126,0.12);
  border-color: rgba(139,173,126,0.35);
}
.tag-input-wrap {
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
  width: 100%;
  background: rgba(242,237,230,0.04);
  border: 1.5px solid var(--border-hi);
  border-radius: 10px;
  padding: 9px 10px;
  transition: border-color 0.15s;
}
.tag-input-wrap:focus-within { border-color: rgba(196,130,106,0.6); }
.tag-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--terra-dim);
  color: var(--terra);
  border-radius: 20px;
  padding: 5px 6px 5px 12px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.tag-chip-remove {
  background: none; border: none; padding: 0; margin: 0;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--terra); font-size: 13px; line-height: 1;
  cursor: pointer; font-family: inherit;
}
.tag-chip-remove:hover { background: rgba(196,130,106,0.25); }
.tag-input {
  flex: 1; min-width: 120px;
  background: none; border: none; outline: none;
  color: var(--cream); font-family: inherit;
  font-size: 15px; padding: 5px 4px;
}
.tag-input::placeholder { color: rgba(242,237,230,0.28); }
.tag-field-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.field-error {
  margin-top: 8px;
  font-size: 13px; color: var(--red-soft);
  min-height: 20px;
  display: none;
}
.field-error.show { display: block; }

/* ── Plan cards ─────────────────────────────────────────────────────── */
.plan-grid {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 24px;
}

.plan-card {
  border: 1.5px solid var(--border-hi);
  border-radius: 11px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.plan-card:hover { border-color: rgba(196,130,106,0.4); }
.plan-card.selected {
  border-color: var(--terra);
  background: var(--terra-dim);
}

.plan-badge {
  position: absolute; top: -9px; left: 16px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  background: var(--terra);
  border-radius: 4px; padding: 2px 7px;
}

.plan-name { font-size: 14px; font-weight: 650; color: var(--cream); margin-bottom: 2px; }
.plan-desc { font-size: 12px; color: var(--muted); }
.plan-price { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; white-space: nowrap; }
.plan-price span { font-size: 11px; font-weight: 400; color: var(--muted); }

/* ── Google / finish step ───────────────────────────────────────────── */
.google-icon-wrap {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(139,173,126,0.12);
  border: 1px solid rgba(139,173,126,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage);
  margin: 0 auto 20px;
}

.signup-summary {
  background: rgba(242,237,230,0.03);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 22px;
}
.signup-summary p {
  font-size: 13px; color: var(--muted); line-height: 1.6;
}
.signup-summary strong { color: var(--cream); font-weight: 600; }

.terms-notice {
  font-size: 11px; color: rgba(242,237,230,0.3);
  text-align: center; margin-top: 14px;
}
.terms-notice a { color: rgba(196,130,106,0.65); }
.terms-notice a:hover { color: var(--terra); }

/* ── Actions ────────────────────────────────────────────────────────── */
.step-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 9px; margin-top: 8px;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--terra); color: #fff;
  border: none; border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px; font-weight: 620;
  cursor: pointer; font-family: inherit;
  transition: opacity 0.15s;
}
.btn-primary:hover:not(:disabled) { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.32; cursor: not-allowed; }

.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border-hi); border-radius: 8px;
  padding: 11px 18px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { color: var(--cream); border-color: rgba(242,237,230,0.3); }

.btn-google {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #3c4043;
  border: 1px solid #dadce0; border-radius: 9px;
  padding: 12px 20px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: box-shadow 0.15s;
}
.btn-google:hover:not(:disabled) { box-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.btn-google:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-discord, .btn-linkedin {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff; border: none; border-radius: 9px;
  padding: 12px 20px; margin-top: 10px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: opacity 0.15s;
  text-decoration: none; box-sizing: border-box;
}
.btn-discord:hover:not(:disabled), .btn-linkedin:hover:not(:disabled) { opacity: 0.88; }
.btn-discord:disabled, .btn-linkedin:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-discord  { background: #5865F2; }
.btn-linkedin { background: #0A66C2; }
.sso-hidden   { display: none !important; }

.su-hidden { display: none !important; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--muted); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-hi);
}

.cf-turnstile { display: flex; justify-content: center; margin: 10px 0; }

.btn-block { width: 100%; margin-top: 4px; }

@media (max-width: 520px) {
  .wizard { padding: 28px 20px 32px; border-radius: 0; border-left: none; border-right: none; }
  .su-nav { padding: 0 16px; }
}

/* ── One-off modifiers (were inline style="" attributes) ──────────────────────
   Compound / id selectors, last in the file, so they win over the base rules
   the way the inline styles they replace did. */
[data-initially-hidden] { display: none !important; } /* see js/initially-hidden.js */
.su-input.su-input-spaced { margin-top: 14px; }
.step-actions.step-actions-start { justify-content: flex-start; margin-top: 14px; }
.btn-ghost.btn-spaced-top { margin-top: 10px; }
.btn-ghost.btn-spaced-bottom { margin-bottom: 10px; }
.btn-ghost .btn-icon { vertical-align: -3px; margin-right: 7px; }
.su-login-link.su-login-link-block { display: block; margin-top: 16px; text-align: center; width: 100%; }
#forgot-password-link { margin-top: 12px; }
#back-to-signup-link { margin-top: 8px; }
