/* ════════════════════════════════════════════════════════════
   VULCAN DEVX — proposal page
   Additive styles on top of style.css
   ════════════════════════════════════════════════════════════ */

.proposal-main {
  padding: 80px 0 120px;
  min-height: 60vh;
}

/* Stage machine — only one visible at a time */
.stage { display: none; }
.stage.stage-active { display: block; }

.stage-heading {
  font-family: var(--font-slab);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--parchment);
}
.stage-heading .ember { color: var(--ember); font-style: italic; }

.stage-sub {
  font-size: 1.1rem;
  color: var(--dust);
  margin-bottom: 40px;
  max-width: 640px;
}

/* Prompt input ─────────────────────────────────────────── */
.prompt-form { max-width: 720px; }

.prompt-input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  padding: 20px 22px;
  resize: vertical;
  min-height: 160px;
  transition: border-color 0.18s ease;
}
.prompt-input:focus {
  outline: none;
  border-color: var(--ember);
}

.prompt-actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Thinking indicator ───────────────────────────────────── */
.dots::after {
  content: '';
  display: inline-block;
  animation: dot-cycle 1.5s steps(4, end) infinite;
  width: 1.5em;
  text-align: left;
}
@keyframes dot-cycle {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

.anvil-pulse {
  margin-top: 60px;
  width: 60px;
  height: 60px;
  border: 2px solid var(--ember);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1.1s linear infinite;
  opacity: 0.85;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Question cards ───────────────────────────────────────── */
.answers-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.question-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px 26px;
}
.question-card .q-text {
  font-family: var(--font-slab);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: 6px;
}
.question-card .q-why {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.question-card .q-input {
  width: 100%;
  background: var(--void-2);
  border: 1px solid var(--line);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  min-height: 60px;
  resize: vertical;
}
.question-card .q-input:focus { outline: none; border-color: var(--ember); }

.q-options { display: flex; flex-direction: column; gap: 8px; }
.q-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--void-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.q-option-label:hover { border-color: var(--brass); }
.q-option-label input[type="radio"] { accent-color: var(--ember); }
.q-option-label input[type="radio"]:checked + span { color: var(--ember); }
.q-option-label span { flex: 1; }

/* Proposal display ─────────────────────────────────────── */
#proposal-render {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 40px 42px;
  margin-bottom: 30px;
}
#proposal-render h1 {
  font-family: var(--font-slab);
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--ember);
  margin-bottom: 18px;
  line-height: 1.1;
}
#proposal-render h2 {
  font-family: var(--font-slab);
  font-size: 1.35rem;
  color: var(--parchment);
  margin-top: 36px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
#proposal-render p, #proposal-render li {
  color: var(--parchment);
  line-height: 1.65;
  margin-bottom: 8px;
}
#proposal-render ul { padding-left: 22px; margin-bottom: 14px; }
#proposal-render .summary { font-size: 1.05rem; color: var(--dust); margin-bottom: 8px; }

.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.metric-box {
  background: var(--void-2);
  border: 1px solid var(--line);
  padding: 18px 22px;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.metric-value {
  font-family: var(--font-slab);
  font-size: 1.6rem;
  color: var(--parchment);
}
.metric-hint { font-size: 0.85rem; color: var(--dust); margin-top: 4px; }

.error-box {
  background: var(--panel);
  border: 1px solid var(--ember);
  padding: 18px 22px;
  color: var(--parchment);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}
