/* ===== BLUEPRINT PAGE STYLES ===== */

.bp-page {
  min-height: 100vh;
  background: var(--bg);
}

/* Back nav */
.bp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.bp-back:hover { color: var(--navy); }

/* Page header */
.bp-header {
  padding: 3rem 3rem 0;
  max-width: 900px;
  margin: 0 auto;
}
.bp-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.bp-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.bp-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
}

/* ===== PROGRESS BAR ===== */
.bp-progress-wrap {
  padding: 2rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}
.bp-progress-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0.75rem;
}
.bp-step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}
.bp-step-dot.active { background: var(--amber); transform: scale(1.3); }
.bp-step-dot.done { background: var(--navy); }
.bp-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background 0.3s;
}
.bp-step-line.done { background: var(--navy); }
.bp-progress-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}
.bp-progress-label span { font-weight: 500; color: var(--navy); }

/* ===== STEP CONTAINER ===== */
.bp-step-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 3rem 4rem;
}
.bp-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 1rem;
}
.bp-step-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.bp-step-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ===== FORM ELEMENTS ===== */
.bp-field { margin-bottom: 1.5rem; }
.bp-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.bp-input,
.bp-textarea,
.bp-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.bp-input:focus,
.bp-textarea:focus,
.bp-select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-dim);
}
.bp-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.bp-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a7e6d' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.bp-char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.35rem;
}

/* ===== OPTION CARDS (single-select) ===== */
.bp-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.bp-option {
  position: relative;
}
.bp-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.bp-option-card {
  display: block;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.5;
}
.bp-option-card:hover { border-color: var(--amber); }
.bp-option-card strong { display: block; margin-bottom: 0.25rem; font-size: 0.95rem; }
.bp-option input:checked + .bp-option-card {
  border-color: var(--amber);
  background: var(--amber-dim);
  box-shadow: 0 0 0 3px var(--amber-dim);
}

/* ===== RADIO PILLS ===== */
.bp-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.bp-pill-label {
  position: relative;
}
.bp-pill-label input[type="radio"] {
  position: absolute;
  opacity: 0; width: 0; height: 0;
}
.bp-pill {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.bp-pill-label input:checked + .bp-pill {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ===== NAV BUTTONS ===== */
.bp-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.bp-nav-left { display: flex; gap: 1rem; }
.bp-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.bp-btn-back:hover { border-color: var(--navy); color: var(--navy); }
.bp-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--navy);
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.bp-btn-next:hover { background: var(--navy-light); transform: translateY(-1px); }
.bp-btn-next:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; transform: none; }
.bp-btn-next.loading { opacity: 0.7; cursor: wait; }
.bp-btn-next svg { transition: transform 0.2s; }
.bp-btn-next:hover svg { transform: translateX(3px); }

/* ===== GENERATING STATE ===== */
.bp-generating {
  text-align: center;
  padding: 3rem 0;
}
.bp-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.bp-gen-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.bp-gen-sub { font-size: 0.9rem; color: var(--text-muted); }

/* ===== OUTLINE RESULT ===== */
.bp-outline {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 2rem;
}
.bp-outline-header {
  background: var(--navy);
  color: #fff;
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bp-outline-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}
.bp-outline-badge {
  background: var(--amber);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.bp-outline-meta {
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.bp-outline-meta strong { color: var(--navy); }
.bp-outline-body { padding: 1.75rem; }
.bp-scene {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--amber-dim);
}
.bp-scene:last-child { margin-bottom: 0; }
.bp-scene-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 0.5rem;
}
.bp-scene-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.bp-scene-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.75rem; }
.bp-scene-elem { display: flex; gap: 0.75rem; padding: 0.5rem 0; font-size: 0.88rem; }
.bp-elem-tag {
  color: var(--amber);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  min-width: 60px;
  padding-top: 0.1rem;
}
.bp-elem-text { color: var(--navy); line-height: 1.5; }

/* ===== OUTLINE ACTIONS ===== */
.bp-outline-actions {
  padding: 1.5rem 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
}
.bp-outline-actions p {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
}
.bp-btn-signup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--navy);
  color: #fff;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.bp-btn-signup:hover { background: var(--navy-light); }

/* ===== SIGNUP GATE ===== */
.bp-gate {
  text-align: center;
  padding: 3rem 0;
}
.bp-gate-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.bp-gate-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.bp-gate-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.bp-gate-email {
  max-width: 400px;
  margin: 0 auto 1rem;
}
.bp-gate-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.bp-gate-features span { display: flex; align-items: center; gap: 0.35rem; }

/* ===== ERROR STATE ===== */
.bp-error {
  text-align: center;
  padding: 3rem;
  background: #fff;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 12px;
  margin-top: 1.5rem;
}
.bp-error-title { font-family: var(--font-serif); font-weight: 600; color: #dc2626; margin-bottom: 0.5rem; }
.bp-error-msg { font-size: 0.9rem; color: var(--text-muted); }
.bp-error-msg button {
  background: none; border: none;
  color: var(--amber); font-weight: 500;
  cursor: pointer; text-decoration: underline;
  font-family: var(--font-sans); font-size: 0.9rem;
}

/* ===== PRIVACY NOTE ===== */
.bp-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .bp-back { padding: 1rem 1.5rem; }
  .bp-header { padding: 2rem 1.5rem 0; }
  .bp-progress-wrap { padding: 1.5rem 1.5rem; }
  .bp-step-container { padding: 1.5rem; }
  .bp-options { grid-template-columns: 1fr; }
  .bp-outline-meta { flex-direction: column; gap: 0.5rem; }
  .bp-outline-actions { flex-direction: column; align-items: flex-start; }
  .bp-gate-features { flex-direction: column; align-items: center; }
}