/* Voice Intake UI — matches theme.css tokens */

.intake-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.intake-header { text-align: center; margin-bottom: 3rem; }

.intake-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.intake-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.intake-title em { font-style: italic; color: var(--accent); }

.intake-subtitle {
  font-size: 1rem;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* Stage Tracker */
.stage-tracker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.stage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.35;
  transition: opacity 0.4s;
}

.stage-item.active { opacity: 1; }

.stage-item .stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.stage-item span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 400;
}

.stage-item.active span { color: var(--fg); }

.stage-connector {
  width: 2.5rem;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 0.25rem;
  margin-bottom: 1.5rem;
}

/* Conversation */
.conversation {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 45vh;
  scroll-behavior: smooth;
}

.msg {
  display: flex;
  gap: 0.85rem;
  align-items: flex-end;
  animation: msg-in 0.4s ease;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msg-nova { }
.msg-user { flex-direction: row-reverse; }

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dot-intake);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(123, 191, 138, 0.3);
}

.msg-user .msg-avatar {
  background: var(--accent-dim);
  box-shadow: 0 0 12px rgba(138, 111, 46, 0.3);
  color: var(--fg);
}

.msg-bubble {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px 16px 16px 4px;
  padding: 1rem 1.25rem;
  max-width: 75%;
}

.msg-user .msg-bubble {
  background: var(--bg-mid);
  border-radius: 16px 16px 4px 16px;
  text-align: right;
}

.msg-bubble p {
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.6;
  font-weight: 300;
}

/* Typing indicator */
.msg-typing .msg-bubble {
  padding: 0.75rem 1rem;
}

.typing-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  height: 1.25rem;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-dim);
  animation: dot-bounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Input Area */
.input-area {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  transition: border-color 0.3s;
}

.input-area:focus-within { border-color: rgba(123, 191, 138, 0.3); }

.input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mic Button */
.mic-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-mid);
  border: 1.5px solid rgba(123, 191, 138, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  flex-shrink: 0;
  color: var(--dot-intake);
}

.mic-btn:hover {
  background: var(--bg-card);
  border-color: rgba(123, 191, 138, 0.6);
  box-shadow: 0 0 16px rgba(123, 191, 138, 0.15);
}

.mic-btn.recording {
  background: var(--dot-intake);
  border-color: var(--dot-intake);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(123, 191, 138, 0.4);
}

.mic-btn.recording .mic-ring {
  animation: ring-pulse 1.5s ease-out infinite;
}

.mic-icon { width: 20px; height: 20px; }

.mic-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--dot-intake);
  opacity: 0;
  pointer-events: none;
}

@keyframes ring-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Text Input */
.text-input-wrap { flex: 1; }

#msgInput {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.25rem 0;
  caret-color: var(--accent);
}

#msgInput::placeholder { color: var(--fg-dim); }

/* Send Button */
.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--bg);
  flex-shrink: 0;
}

.send-btn:hover { background: #d4b05a; transform: scale(1.05); }
.send-btn svg { width: 16px; height: 16px; }

.input-hint {
  font-size: 0.72rem;
  color: var(--fg-dim);
  margin-top: 0.6rem;
  text-align: center;
  font-weight: 300;
}

/* Profile Output */
.profile-output { margin-top: 2rem; }

.profile-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
}

.profile-header { margin-bottom: 2rem; }

.profile-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--fg);
  margin-top: 0.75rem;
}

.profile-body { display: flex; flex-direction: column; gap: 1.5rem; }

.profile-section h3 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.profile-section p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 300;
}

.profile-section ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.profile-section ul li {
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.profile-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary:hover { background: #d4b05a; }

.btn-secondary {
  background: transparent;
  color: var(--fg-muted);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
}

.btn-secondary:hover { border-color: rgba(255,255,255,0.2); color: var(--fg); }

.hidden { display: none; }