/* Founders Edition — public recruitment page, deliberately less "control room"
   than the internal tools: warmer type scale, more breathing room, a violet
   accent distinct from every other surface (teal=interview, terracotta=Ask
   Circino, amber=admin) so this reads as its own founding-cohort thing, not
   another internal dashboard. Scrappy-but-credible, not glossy. */

:root {
  --bg:        #14121a;
  --surface:   #1c1926;
  --surface-2: #241f30;
  --surface-3: #2d2739;
  --line:      #3a3348;
  --text:      #ece9f2;
  --muted:     #aca3bd;
  --faint:     #7d7392;
  --accent:    #a687e0;
  --accent-soft: rgba(166, 135, 224, 0.16);

  --pos:       #6fcf97;
  --pos-soft:  rgba(111, 207, 151, 0.14);
  --warn:      #e0a63e;
  --warn-soft: rgba(224, 166, 62, 0.14);

  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

:root[data-theme="light"] {
  --bg:        #faf9fc;
  --surface:   #ffffff;
  --surface-2: #f4f1f9;
  --surface-3: #ece7f4;
  --line:      #ddd5ea;
  --text:      #201c2b;
  --muted:     #635a75;
  --faint:     #948aa8;
  --accent:    #6d3fc4;
  --accent-soft: rgba(109, 63, 196, 0.10);
  --pos:       #1a9c63;
  --pos-soft:  rgba(26, 156, 99, 0.10);
  --warn:      #b8791f;
  --warn-soft: rgba(184, 121, 31, 0.10);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:        #faf9fc;
    --surface:   #ffffff;
    --surface-2: #f4f1f9;
    --surface-3: #ece7f4;
    --line:      #ddd5ea;
    --text:      #201c2b;
    --muted:     #635a75;
    --faint:     #948aa8;
    --accent:    #6d3fc4;
    --accent-soft: rgba(109, 63, 196, 0.10);
    --pos:       #1a9c63;
    --pos-soft:  rgba(26, 156, 99, 0.10);
    --warn:      #b8791f;
    --warn-soft: rgba(184, 121, 31, 0.10);
  }
}

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

body {
  font-family: var(--font);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 40px 20px 80px; }

.header { display: flex; flex-direction: column; gap: 4px; margin-bottom: 36px; }
.brand-word { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.eyebrow {
  font-family: "SF Mono", "Courier New", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}
.live-count {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.live-count::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pos);
  margin-right: 6px;
  vertical-align: middle;
}

.section { margin-bottom: 28px; }
.section-hdr { margin-bottom: 16px; }
.section-title { font-size: 16px; font-weight: 700; }

h1 {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

h2 { font-size: 22px; margin-bottom: 12px; }

.lede { font-size: 15.5px; color: var(--muted); margin-bottom: 24px; max-width: 54ch; }
.lede em { color: var(--text); font-style: italic; }

.circino-intro {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 24px;
}
.circino-avatar {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.circino-avatar-sm { width: 24px; height: 24px; }
.circino-ring { animation: circino-pulse 2.6s ease-in-out infinite; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .circino-ring { animation: none; } }
@keyframes circino-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}
.circino-intro-text p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.circino-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  font-style: italic;
  color: var(--text);
}

.chat-section-hdr { display: flex; align-items: center; gap: 8px; }
.msg-avatar { color: var(--accent); vertical-align: -5px; margin-right: 5px; }

.pitch-grid { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.pitch-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.pitch-num {
  font-family: "SF Mono", "Courier New", monospace;
  font-size: 12px;
  color: var(--accent);
  padding-top: 1px;
}
.pitch-body { font-size: 14px; }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }
.btn-large { padding: 14px 24px; font-size: 15px; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
}
.btn-ghost:hover { color: var(--text); border-color: var(--faint); }

.fine-print { font-size: 12px; color: var(--faint); margin-top: 12px; }

.form-body { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.optional { font-weight: 400; color: var(--faint); }

input[type=text], input[type=email], select, textarea {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; }

.consent-block {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.consent-block summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.consent-text { margin-top: 10px; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.consent-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
}
.consent-check input { margin-top: 3px; }

.form-error { color: #e26666; font-size: 13px; min-height: 18px; }

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.msg { max-width: 85%; padding: 9px 12px; border-radius: var(--radius); font-size: 13.5px; }
.msg-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); margin-bottom: 3px; }
.msg.circino { background: var(--accent-soft); align-self: flex-start; }
.msg.you { background: var(--surface-3); align-self: flex-end; }

.chat-input-row { display: flex; gap: 8px; margin-bottom: 10px; }
.chat-input-row textarea {
  flex: 1;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  resize: none;
}
.chat-actions { display: flex; justify-content: flex-end; }

.credit-choice {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.credit-choice-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.radio-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
}
.radio-row input { margin-top: 3px; }

.chain-block {
  margin-top: 24px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.chain-label {
  font-family: "SF Mono", "Courier New", monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.chain-block p { font-size: 13px; color: var(--muted); margin: 8px 0 12px; }
.chain-link-row { display: flex; gap: 8px; }
.chain-link-row input {
  flex: 1;
  font-family: "SF Mono", "Courier New", monospace;
  font-size: 12.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 10px;
}

.promo-footer {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.promo-kicker {
  font-family: "SF Mono", "Courier New", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
}
.promo-footer p { font-size: 13px; color: var(--muted); margin: 10px 0 12px; max-width: 54ch; }
.promo-footer b { color: var(--text); }
.promo-link { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.promo-link:hover { text-decoration: underline; }
