/* beta.css — Beta signup page styles */

:root {
  --teal:      #339e9f;
  --teal-dark: #2a8384;
  --teal-light:#e7f5f5;
  --ink:       #1a1d1f;
  --ink-2:     #454b4f;
  --ink-3:     #6b7378;
  --ink-4:     #9aa2a7;
  --line:      #e6e8eb;
  --line-2:    #d0d4d8;
  --bg:        #f6f8f9;
  --white:     #ffffff;
  --red:       #e03131;
  --radius:    8px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow:    0 2px 8px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.04);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav / menubar (matches main site) ── */
.menubar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 10px;
  flex-shrink: 0;
}
.menubar-logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menubar-logo svg { width: 100%; height: 100%; display: block; }
.menubar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ── Page layout ── */
.page-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 80px;
}

/* ── Card ── */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 52px;
  width: 100%;
  max-width: 560px;
}

.card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.card-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.card-body {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.65;
  margin-bottom: 36px;
}

/* ── Form fields ── */
.field-group {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.req { color: var(--red); }
.opt { font-size: 11px; font-weight: 400; color: var(--ink-4); margin-left: 4px; }

.field-input,
.field-textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field-input:focus,
.field-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(51,158,159,.14);
}
.field-input.invalid,
.field-textarea.invalid {
  border-color: var(--red);
  background: #fff5f5;
}
.field-input.invalid:focus,
.field-textarea.invalid:focus {
  box-shadow: 0 0 0 3px rgba(224,49,49,.12);
}
.field-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

/* ── Radio list ── */
.radio-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.radio-item:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}
.radio-item input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: var(--teal-dark);
  flex-shrink: 0;
  cursor: pointer;
}
.radio-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.radio-list.invalid .radio-item {
  border-color: var(--red);
  background: #fff5f5;
}

/* ── Error message ── */
.form-error {
  font-size: 13px;
  color: var(--red);
  margin-bottom: 10px;
  min-height: 18px;
}

/* ── Submit button ── */
.submit-btn {
  width: 100%;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--white);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, border-color .15s;
  margin-top: 8px;
}
.submit-btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Spinner ── */
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Success panel ── */
.success-panel {
  text-align: center;
  padding: 16px 0 8px;
}
.success-icon {
  width: 52px;
  height: 52px;
  background: #d3f9d8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: #2f9e44;
}
.success-icon svg { width: 26px; height: 26px; }
.success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.success-body {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.65;
}

/* ── Footer / build badge ── */
.page-footer {
  padding: 12px 24px;
  display: flex;
  justify-content: flex-end;
}
.build-badge {
  font-size: 10px;
  color: var(--ink-4);
  font-family: 'SF Mono', Monaco, Consolas, monospace;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .form-card { padding: 32px 24px; }
  .card-title { font-size: 20px; }
}
