/* signup.css — Sarah OS public surface
 * Design language: dark, generous typography, calm
 * Mirrors Architect dashboard fonts + theme color
 */

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

:root {
  --bg:           #0a0a0f;
  --bg-elev:     #12121a;
  --bg-card:    #161620;
  --bg-card-hover: #1d1d29;
  --border:     #2a2a38;
  --border-strong: #3a3a4d;
  --text:       #e8e8f0;
  --text-dim:   #8a8aa0;
  --text-faint: #5a5a70;
  --accent:           #0089d1;        /* Sarah blue */
  --accent-hover: #1a9fd9;        /* Sarah blue bright */
  --accent-dim: rgba(0,137,209,0.40);
  --ok:         #6abf8a;
  --warn:       #d4a060;
  --err:        #c87878;
  --radius:     6px;
  --radius-lg:  10px;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.6);
  --maxw:       1100px;
  --maxw-narrow: 720px;
  --maxw-wide:  1280px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

code, .mono { font-family: 'JetBrains Mono', monospace; font-size: 0.92em; }

/* ─── Topbar ─── */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--text); }
.brand-mark { font-size: 24px; color: var(--accent); line-height: 1; }
.brand-text { letter-spacing: -0.01em; }

.topnav { display: flex; gap: 18px; }
.topnav-link { color: var(--text-dim); font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.topnav-link:hover { color: var(--text); }
.topnav-link.active { color: var(--text); border-bottom-color: var(--accent); }

.user-pill {
  display: inline-block; padding: 5px 11px;
  border: 1px solid var(--border); border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-dim);
}

.btn-link { color: var(--text-dim); font-size: 14px; }
.btn-link:hover { color: var(--text); }

/* ─── Buttons ─── */
.btn-primary, .btn-secondary {
  display: inline-block; cursor: pointer;
  padding: 10px 20px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-family: inherit; font-weight: 500; font-size: 14px;
  transition: all 0.15s; text-align: center;
}
.btn-primary {
  background: var(--accent); color: #ffffff; border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #ffffff; }
.btn-secondary {
  background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; }

/* ─── Content ─── */
.content { flex: 1; }

.page-head, .page-title, .page-lede { max-width: var(--maxw-narrow); margin-left: auto; margin-right: auto; }
.page-title { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.page-lede { font-size: 17px; color: var(--text-dim); margin-bottom: 32px; }
.section-title { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 24px; }

/* ─── Hero (landing) ─── */
.hero { padding: 96px 32px 64px; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.hero-title { font-size: 56px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 28px; }
.hero-lede {
  font-size: 20px; color: var(--text-dim); line-height: 1.5; margin-bottom: 24px;
  max-width: 720px;
}
.hero-anchor {
  font-size: 18px; color: var(--text); line-height: 1.5; margin-bottom: 36px;
  max-width: 720px;
  border-left: 3px solid var(--accent); padding-left: 18px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .hero { padding: 56px 20px 40px; }
  .hero-title { font-size: 36px; }
  .hero-lede { font-size: 17px; }
  .hero-anchor { font-size: 16px; }
}

/* ─── Landing cards ─── */
.how, .trust, .cta-bottom { padding: 64px 32px; }
.how { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how, .trust { max-width: var(--maxw); margin: 0 auto; }
.how .section-title, .trust .section-title { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.how-grid, .trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: var(--maxw); margin: 0 auto;
}
.how-card, .trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.how-num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--accent);
  margin-bottom: 12px;
  border: 1px solid var(--accent-dim);
  border-radius: 999px; padding: 3px 9px;
}
.how-card h3, .trust-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.how-card p, .trust-card p { font-size: 15px; color: var(--text-dim); line-height: 1.5; }

.cta-bottom { background: var(--bg-elev); border-top: 1px solid var(--border); text-align: center; }
.cta-bottom-inner { max-width: 600px; margin: 0 auto; }
.cta-bottom h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-bottom p { font-size: 17px; color: var(--text-dim); margin-bottom: 28px; }

/* ─── Agents page ─── */
.agents-section {
  max-width: var(--maxw); margin: 48px auto; padding: 0 32px;
}
.agents-section.honesty {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px;
}
.agents-section.honesty p { color: var(--text-dim); margin-bottom: 12px; max-width: 720px; }
.agents-intro { font-size: 16px; color: var(--text-dim); max-width: 720px; margin-bottom: 24px; }
.cta-inline { display: flex; gap: 12px; }

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.agent-status {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ok); border: 1px solid rgba(106, 191, 138, 0.3);
  border-radius: 999px; padding: 3px 9px;
  margin-bottom: 14px; letter-spacing: 0.04em; text-transform: uppercase;
}
.agent-name { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.agent-what { color: var(--text-dim); font-size: 15px; line-height: 1.5; }

/* ─── Auth (login + signup) ─── */
.auth-wrap {
  display: flex; align-items: flex-start; justify-content: center;
  padding: 64px 24px;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 440px; width: 100%;
}
.auth-title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.auth-lede { font-size: 15px; color: var(--text-dim); margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-alt { margin-top: 24px; font-size: 14px; color: var(--text-dim); text-align: center; }

/* ─── Form fields (shared) ─── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label { font-size: 14px; font-weight: 500; color: var(--text); }
.field-help { font-size: 13px; color: var(--text-faint); margin-top: 2px; }
.req { color: var(--err); }

.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=tel],
.field input[type=url],
.field input[type=number],
.field textarea,
.field select {
  font-family: inherit; font-size: 15px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 10px 12px;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 80px; }

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-line, .check-line {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
  font-size: 15px;
}
.radio-line:hover, .check-line:hover { border-color: var(--accent); }
.radio-line input, .check-line input { margin-top: 3px; accent-color: var(--accent); }

/* ─── Agreement ─── */
.agreement-wrap { padding: 48px 24px; }
.agreement-card {
  max-width: var(--maxw-narrow); margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.agree-block { margin: 28px 0; }
.agree-block h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.agree-block ul { padding-left: 20px; color: var(--text-dim); }
.agree-block li { margin-bottom: 8px; line-height: 1.55; }
.agree-block-warn { border-left: 3px solid var(--warn); padding-left: 16px; }
.agree-form { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }

/* ─── Wizard ─── */
.wizard-wrap { max-width: var(--maxw-narrow); margin: 0 auto; padding: 48px 24px; }
.wizard-head { margin-bottom: 32px; }

.progress { margin-top: 24px; }
.progress-track {
  height: 6px; background: var(--bg-elev);
  border-radius: 999px; overflow: hidden;
  border: 1px solid var(--border);
}
.progress-fill {
  height: 100%; background: var(--accent);
  transition: width 0.3s ease;
}
.progress-meta {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-dim); margin-top: 8px;
}

.wizard-sections { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.wizard-row {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.wizard-row:hover { border-color: var(--accent); background: var(--bg-card-hover); color: var(--text); }
.wizard-row-num {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: 999px;
  color: var(--text-dim); flex-shrink: 0;
}
.wizard-row-done .wizard-row-num { border-color: var(--ok); color: var(--ok); }
.wizard-row-body { flex: 1; min-width: 0; }
.wizard-row-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.wizard-row-intro { font-size: 14px; color: var(--text-dim); line-height: 1.4; }

.badge {
  display: inline-block; padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 999px; border: 1px solid;
}
.badge-ok { color: var(--ok); border-color: rgba(106, 191, 138, 0.4); }
.badge-pending { color: var(--text-faint); border-color: var(--border-strong); }

.wizard-submit, .wizard-submit-locked {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.wizard-submit p, .wizard-submit-locked p { color: var(--text-dim); margin-bottom: 16px; }
.wizard-submit-locked { border-style: dashed; }

/* Wizard section detail */
.wizard-section { max-width: var(--maxw-narrow); margin: 0 auto; padding: 32px 24px 64px; }
.wizard-section-head { margin-bottom: 32px; }
.wizard-section-progress {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-dim); margin-bottom: 8px; letter-spacing: 0.04em;
}
.back-link { display: inline-block; font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.back-link:hover { color: var(--accent); }

.wizard-form { display: flex; flex-direction: column; }
.wizard-actions {
  display: flex; gap: 12px; justify-content: flex-end;
  margin-top: 16px; padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ─── Done page ─── */
.done-wrap { padding: 64px 24px; }
.done-card {
  max-width: var(--maxw-narrow); margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px; text-align: center;
}
.done-mark {
  font-size: 36px; color: var(--ok);
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ok);
  border-radius: 50%;
  margin: 0 auto 20px;
}
.done-meta { text-align: left; margin: 32px 0; padding: 20px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); }
.done-meta ul { padding-left: 20px; color: var(--text-dim); margin-top: 8px; }
.done-meta li { margin-bottom: 6px; }
.done-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

/* ─── Error page ─── */
.error-wrap { padding: 96px 24px; display: flex; justify-content: center; }
.error-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px; text-align: center;
  max-width: 480px;
}
.error-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 56px; font-weight: 500;
  color: var(--accent); margin-bottom: 12px;
}
.error-msg { font-size: 17px; color: var(--text-dim); margin-bottom: 24px; }

/* ─── Toasts ─── */
.toast-stack {
  position: fixed; top: 80px; right: 24px;
  z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 360px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; gap: 10px; align-items: flex-start;
  box-shadow: var(--shadow);
  font-size: 14px;
}
.toast button {
  background: none; border: none; color: var(--text-faint);
  cursor: pointer; font-size: 16px; line-height: 1; padding: 0;
}
.toast button:hover { color: var(--text); }
.toast-ok { border-left: 3px solid var(--ok); }
.toast-error { border-left: 3px solid var(--err); }
.toast-warn { border-left: 3px solid var(--warn); }

/* ─── Footer ─── */
.footer {
  padding: 28px 32px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-faint);
  background: var(--bg);
}
.footer-right { color: var(--text-dim); font-style: italic; max-width: 60%; text-align: right; }

@media (max-width: 720px) {
  .topbar { padding: 14px 18px; }
  .topbar-left, .topbar-right { gap: 14px; }
  .topnav { display: none; }
  .footer { flex-direction: column; gap: 8px; align-items: flex-start; }
  .footer-right { text-align: left; max-width: 100%; }
}

/* ─── Brand images (added v0.1.1) ─── */
.brand-wordmark {
  height: 28px;
  width: auto;
  display: block;
}
.brand-mark-img {
  height: 32px;
  width: 32px;
  display: none;
}
@media (max-width: 720px) {
  .brand-wordmark { display: none; }
  .brand-mark-img { display: block; }
}
