/* ============================================================
   blueprint.css — Brave Intangibles
   Styles for: resources.html, blueprint-generator.html, blueprint.html
   ============================================================ */

/* ============================================================
   RESOURCE CARDS (resources.html)
   ============================================================ */

.resource-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.resource-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1.5px solid var(--border-light);
  position: relative;
  transition: box-shadow 0.28s var(--ease), transform 0.28s var(--ease);
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.resource-card--live {
  border-left: 4px solid var(--magenta);
}

.resource-card-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  width: fit-content;
}

.resource-card-badge--live {
  background: rgba(200, 37, 122, 0.1);
  color: var(--magenta);
  border: 1px solid rgba(200, 37, 122, 0.25);
}

.resource-card-badge--soon {
  background: rgba(245, 166, 35, 0.12);
  color: #8a5e00;
  border: 1px solid rgba(245, 166, 35, 0.35);
}

.resource-card-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.25;
}

.resource-card-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  flex-grow: 1;
}

.resource-card-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-card-bullets li {
  font-size: 14px;
  color: var(--text-dark);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.resource-card-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--magenta);
  font-weight: 700;
}

.resource-card-cta {
  margin-top: auto;
}

.resource-card-cta--muted {
  opacity: 0.82;
}

/* ============================================================
   BLUEPRINT STEPS WRAPPER
   ============================================================ */

.bp-steps {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(72px, 9vw, 128px);
}

.bp-step {
  display: none;
}

.bp-step.active {
  display: block;
}

/* ============================================================
   PROGRESS INDICATOR
   ============================================================ */

.bp-progress {
  margin-bottom: 64px;
  text-align: center;
}

.bp-progress-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 12px;
  position: relative;
}

.bp-progress-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 64px);
  height: 2px;
  background: var(--border-light);
  z-index: 0;
}

.bp-progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-light);
  margin: 0 60px;
  position: relative;
  z-index: 1;
  transition: all 0.3s var(--ease);
  cursor: default;
}

.bp-progress-dot.active {
  background: var(--magenta);
  border-color: var(--magenta);
  box-shadow: 0 0 0 4px rgba(200, 37, 122, 0.15);
}

.bp-progress-dot.done {
  background: var(--magenta);
  border-color: var(--magenta);
}

.bp-progress-dot.done::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  padding-top: 8px;
}

.bp-progress-labels {
  display: flex;
  justify-content: center;
  gap: 0;
}

.bp-progress-labels span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 124px;
  text-align: center;
}

/* ============================================================
   STEP HEADER
   ============================================================ */

.bp-step-header {
  margin-bottom: 56px;
  max-width: 680px;
}

.bp-step-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.bp-step-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   QUESTION BLOCKS
   ============================================================ */

.bp-question {
  margin-bottom: 52px;
  position: relative;
}

.bp-question-num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.bp-question-label {
  display: block;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}

.bp-optional-label {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 14px;
}

.bp-question-examples {
  background: rgba(240, 250, 248, 0.85);
  border-left: 3px solid var(--cyan);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

.bp-question-examples p {
  margin: 6px 0 0;
}

.bp-question-examples p:first-of-type {
  margin-top: 8px;
}

.bp-examples-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  font-style: normal;
  display: block;
}

.bp-textarea {
  width: 100%;
  min-height: 100px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-sizing: border-box;
  line-height: 1.6;
}

.bp-textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(200, 37, 122, 0.1);
}

.bp-textarea.has-error {
  border-color: #e0404a;
}

.bp-error {
  display: block;
  color: #c0282f;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  min-height: 18px;
}

/* Color inputs */

.bp-color-inputs {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.bp-color-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-color-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.bp-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1.5px solid var(--border-light);
  flex-shrink: 0;
  transition: background 0.2s;
}

.bp-color-input {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  width: 120px;
  transition: border-color 0.2s var(--ease);
}

.bp-color-input:focus {
  outline: none;
  border-color: var(--magenta);
}

.bp-skip-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.bp-skip-link:hover {
  color: var(--magenta);
}

.bp-subfield {
  margin-bottom: 16px;
}

.bp-subfield-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.bp-text-input {
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-sizing: border-box;
  max-width: 480px;
}

.bp-text-input:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(200, 37, 122, 0.1);
}

.bp-form-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
}

/* ============================================================
   BLUEPRINT TYPE SELECTION (Step 2)
   ============================================================ */

.bp-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 48px;
}

.bp-type-card {
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  cursor: pointer;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
  position: relative;
  user-select: none;
}

.bp-type-card:hover {
  border-color: rgba(200, 37, 122, 0.35);
  box-shadow: var(--shadow-sm);
}

.bp-type-card.selected {
  border-color: var(--magenta);
  background: rgba(200, 37, 122, 0.03);
  box-shadow: 0 0 0 4px rgba(200, 37, 122, 0.1);
}

.bp-type-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.bp-type-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-type-card ul li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.bp-type-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--magenta);
  font-weight: 700;
}

.recommended-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--magenta);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.bp-type-footer {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ============================================================
   GENERATING STATE (Step 3)
   ============================================================ */

.bp-generating {
  padding: 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.bp-spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 5px solid rgba(200, 37, 122, 0.15);
  border-top-color: var(--magenta);
  border-right-color: var(--purple);
  animation: bpSpin 0.9s linear infinite;
  flex-shrink: 0;
}

@keyframes bpSpin {
  to { transform: rotate(360deg); }
}

.bp-generating h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--text-dark);
}

.bp-generating-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 440px;
}

.bp-progress-message {
  font-size: 14px;
  color: var(--magenta);
  font-weight: 600;
  min-height: 22px;
  transition: opacity 0.4s;
}

/* ============================================================
   BLUEPRINT OUTPUT (Step 4)
   ============================================================ */

.bp-output-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.bp-output-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bp-output-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bp-output-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.15;
}

.bp-output-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.bp-type-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bp-type-badge--basic {
  background: rgba(200, 37, 122, 0.1);
  color: var(--magenta);
  border: 1px solid rgba(200, 37, 122, 0.2);
}

.bp-type-badge--comprehensive {
  background: rgba(123, 47, 190, 0.1);
  color: var(--purple);
  border: 1px solid rgba(123, 47, 190, 0.2);
}

.bp-generated-at {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   BLUEPRINT GRID — Horizontal Phase Layout
   ============================================================ */

.bp-grid-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-light);
}

.bp-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  min-width: 680px;
  font-family: 'Montserrat', sans-serif;
}

/* Corner cell */
.bp-grid-corner {
  width: 160px;
  min-width: 140px;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.45);
  padding: 12px 14px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  vertical-align: middle;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* Phase column headers */
.bp-grid-phase {
  background: var(--bg-dark);
  color: #fff;
  padding: 14px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  line-height: 1.3;
  min-width: 96px;
}

.bp-grid-phase:last-child {
  border-right: none;
}

/* Lane label cells */
.bp-grid-label {
  background: var(--bg-dark);
  color: #fff;
  padding: 12px 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  vertical-align: middle;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.45;
  width: 160px;
  min-width: 140px;
}

/* Lane label inner elements */
.bp-grid-label-main {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}

.bp-grid-label-desc {
  display: block;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  line-height: 1.4;
}

/* Data cells */
.bp-grid-cell {
  padding: 11px 9px;
  text-align: center;
  vertical-align: middle;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-dark);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  line-height: 1.4;
  min-width: 96px;
}

.bp-grid-cell:last-child {
  border-right: none;
}

/* Lane type background & text colors */
.bp-grid-lane--customer .bp-grid-cell {
  background: rgba(200, 37, 122, 0.04);
  color: #8a1050;
}

.bp-grid-lane--employee-front .bp-grid-cell {
  background: rgba(123, 47, 190, 0.04);
  color: #4a1580;
}

.bp-grid-lane--employee-back .bp-grid-cell {
  background: rgba(0, 184, 217, 0.04);
  color: #005a70;
}

.bp-grid-lane--pain .bp-grid-cell {
  background: rgba(224, 64, 74, 0.04);
  color: #8b1a1f;
  font-weight: 600;
}

.bp-grid-lane--support .bp-grid-cell {
  background: rgba(245, 166, 35, 0.04);
  color: #7a5500;
}

.bp-grid-lane--neutral .bp-grid-cell {
  background: rgba(13, 27, 75, 0.02);
  color: var(--text-muted);
}

/* Line of visibility row */
.bp-grid-lov .bp-grid-label {
  color: var(--magenta);
  font-size: 8.5px;
  background: rgba(200, 37, 122, 0.1);
  border-right-color: rgba(200, 37, 122, 0.2);
}

.bp-grid-lov-bar {
  background: rgba(200, 37, 122, 0.03);
  color: rgba(200, 37, 122, 0.65);
  font-size: 10.5px;
  font-style: italic;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  border-top: 2px dashed rgba(200, 37, 122, 0.35);
  border-bottom: 2px dashed rgba(200, 37, 122, 0.35);
}

/* Emotional journey — standalone section */
.bp-emotional-journey-section {
  margin-top: 24px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bp-emotional-journey-label {
  background: var(--bg-dark);
  color: #fff;
  padding: 10px 16px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Emotional journey dots row */
.bp-emotional-journey {
  padding: 28px 16px 24px;
  display: flex;
  align-items: flex-start;
  gap: 0;
  background: #fff;
  position: relative;
  overflow-x: auto;
}

/* Connecting arc line through the dots */
.bp-emotional-journey::before {
  content: '';
  position: absolute;
  top: 38px; /* aligns with dot vertical center */
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(200, 37, 122, 0.35) 0%,
    rgba(123, 47, 190, 0.35) 50%,
    rgba(0, 184, 217, 0.35) 100%
  );
  border-radius: 1px;
  z-index: 0;
}

.bp-emotion-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 80px;
  padding: 0 4px;
}

.bp-emotion-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.bp-emotion-dot--positive { background: #34c78a; }
.bp-emotion-dot--neutral  { background: var(--orange); }
.bp-emotion-dot--negative { background: #e0404a; }

.bp-emotion-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.bp-emotion-name {
  font-size: 11px;
  color: var(--text-dark);
  font-weight: 700;
  text-align: center;
}

/* Legend */
.bp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding: 24px 20px;
  background: rgba(240, 250, 248, 0.6);
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.bp-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.bp-legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

.bp-attribution {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 16px;
  line-height: 1.6;
}

.bp-attribution a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Persona summary & recommendations */
.bp-persona,
.bp-recommendations,
.bp-risk-areas {
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-top: 24px;
}

.bp-persona h4,
.bp-recommendations h4,
.bp-risk-areas h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.bp-persona p {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.7;
}

.bp-recommendations ul,
.bp-risk-areas ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-recommendations ul li,
.bp-risk-areas ul li {
  font-size: 14px;
  color: var(--text-dark);
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
}

.bp-recommendations ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}

.bp-risk-areas ul li::before {
  content: '!';
  position: absolute;
  left: 0;
  color: #e0404a;
  font-weight: 900;
}

.bp-suggestions {
  background: rgba(0, 184, 217, 0.05);
  border: 1px solid rgba(0, 184, 217, 0.2);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  margin-top: 16px;
}

.bp-suggestions h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.bp-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-suggestions ul li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.bp-suggestions ul li::before {
  content: '💡';
  position: absolute;
  left: 0;
  font-size: 11px;
}

/* Divider */
.bp-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 40px 0;
}

/* ============================================================
   ACTIONS BAR
   ============================================================ */

.bp-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 32px;
  background: rgba(240, 250, 248, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin: 40px 0;
  align-items: center;
}

/* ============================================================
   INLINE SUBSCRIBE FORM
   ============================================================ */

.bp-subscribe-inline {
  position: relative;
  background: linear-gradient(135deg, rgba(123,47,190,0.06) 0%, rgba(200,37,122,0.06) 60%, rgba(0,184,217,0.04) 100%);
  border-radius: var(--radius-md);
  padding: 28px 28px 22px;
  margin-top: 12px;
  overflow: hidden;
}

/* gradient border via pseudo-element */
.bp-subscribe-inline::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1.5px;
  background: linear-gradient(135deg, #7B2FBE 0%, #C8257A 50%, #00B8D9 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* top accent bar */
.bp-subscribe-inline::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7B2FBE, #C8257A, #00B8D9);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.bp-subscribe-head {
  margin-bottom: 18px;
}

.bp-subscribe-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C8257A;
  margin-bottom: 6px;
}

.bp-subscribe-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
  line-height: 1.25;
}

.bp-subscribe-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.bp-subscribe-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.bp-subscribe-row .bp-email-input {
  flex: 1;
  min-width: 140px;
  font-size: 14px;
  padding: 10px 14px;
}

/* ============================================================
   EMAIL GATE
   ============================================================ */

.bp-email-gate {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-top: 24px;
  border: 1.5px solid var(--border-light);
  animation: gateSlideIn 0.3s var(--ease);
}

.bp-email-gate--soft {
  box-shadow: var(--shadow-sm);
}

@keyframes gateSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bp-email-gate h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.bp-email-gate p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.bp-email-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.bp-email-input {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  flex: 1;
  min-width: 160px;
  transition: border-color 0.2s var(--ease);
}

.bp-email-input:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(200, 37, 122, 0.1);
}

.bp-email-success {
  display: none;
  align-items: center;
  gap: 10px;
  color: #1a7a50;
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(52, 199, 138, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(52, 199, 138, 0.25);
}

.bp-email-success.visible {
  display: flex;
}

.success-icon-sm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #34c78a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 22px;
  text-align: center;
}

/* ============================================================
   NEXT STEPS
   ============================================================ */

.bp-next-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}

.bp-next-card {
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.bp-next-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.bp-next-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.bp-next-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.bp-next-link {
  color: var(--magenta);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.bp-next-link:hover {
  color: var(--purple);
}

/* ============================================================
   VIEWER (blueprint.html)
   ============================================================ */

.page-hero--compact {
  padding-top: 120px;
  padding-bottom: clamp(40px, 5vw, 72px);
}

.bp-viewer-loading {
  text-align: center;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.bp-viewer-loading p {
  color: var(--text-muted);
  font-size: 15px;
}

.bp-viewer-error {
  text-align: center;
  padding: 80px 0;
}

.bp-viewer-error h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.bp-viewer-error p {
  color: var(--text-muted);
  font-size: 15px;
}

.bp-viewer-cta {
  text-align: center;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Error state (step error) */
.bp-error-state {
  text-align: center;
  padding: 80px 0;
}

.bp-error-state h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.bp-error-state p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 32px;
}

/* ============================================================
   DARK MODE
   ============================================================ */

[data-theme="dark"] body {
  background: #0f1117;
  color: #e0e6f0;
}

[data-theme="dark"] .section--light {
  background: #111827;
}

[data-theme="dark"] .resource-card,
[data-theme="dark"] .bp-type-card,
[data-theme="dark"] .bp-next-card,
[data-theme="dark"] .bp-email-gate,
[data-theme="dark"] .bp-persona,
[data-theme="dark"] .bp-recommendations,
[data-theme="dark"] .bp-risk-areas {
  background: #1a2035;
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .bp-step-header h2,
[data-theme="dark"] .bp-question-label,
[data-theme="dark"] .bp-type-card-title,
[data-theme="dark"] .bp-output-title,
[data-theme="dark"] .bp-next-card h3,
[data-theme="dark"] .bp-email-gate h3,
[data-theme="dark"] .resource-card-title {
  color: #e0e6f0;
}

[data-theme="dark"] .bp-step-sub,
[data-theme="dark"] .bp-generating-sub,
[data-theme="dark"] .resource-card-desc,
[data-theme="dark"] .resource-card-bullets li,
[data-theme="dark"] .bp-type-card ul li,
[data-theme="dark"] .bp-next-card p,
[data-theme="dark"] .bp-email-gate p {
  color: #7890b0;
}

[data-theme="dark"] .bp-textarea,
[data-theme="dark"] .bp-color-input,
[data-theme="dark"] .bp-email-input {
  background: #1a2035;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e0e6f0;
}

[data-theme="dark"] .bp-grid-wrapper {
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .bp-grid-cell {
  background: #1a2035;
  color: #c8d4e8;
  border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .bp-grid-lane--customer .bp-grid-cell { color: #f472b6; background: rgba(200, 37, 122, 0.08); }
[data-theme="dark"] .bp-grid-lane--employee-front .bp-grid-cell { color: #a78bfa; background: rgba(123, 47, 190, 0.08); }
[data-theme="dark"] .bp-grid-lane--employee-back .bp-grid-cell { color: #22d3ee; background: rgba(0, 184, 217, 0.06); }
[data-theme="dark"] .bp-grid-lane--pain .bp-grid-cell { color: #fca5a5; background: rgba(224, 64, 74, 0.08); }
[data-theme="dark"] .bp-grid-lane--support .bp-grid-cell { color: #fcd34d; background: rgba(245, 166, 35, 0.06); }

[data-theme="dark"] .bp-emotional-journey-section {
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .bp-emotional-journey {
  background: #1a2035;
}

[data-theme="dark"] .bp-actions-bar {
  background: rgba(26, 32, 53, 0.8);
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .bp-question-examples {
  background: rgba(26, 32, 53, 0.8);
}

[data-theme="dark"] .bp-legend {
  background: rgba(26, 32, 53, 0.5);
  border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .bp-divider {
  border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .bp-progress-dot {
  background: #1a2035;
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .resource-card-bullets li {
  color: #7890b0;
}

[data-theme="dark"] .bp-suggestions {
  background: rgba(0, 184, 217, 0.08);
  border-color: rgba(0, 184, 217, 0.15);
}

[data-theme="dark"] .bp-output-header {
  border-color: rgba(255, 255, 255, 0.07);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .resource-cards-grid {
    grid-template-columns: 1fr;
  }

  .bp-type-grid {
    grid-template-columns: 1fr;
  }

  .bp-next-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .bp-progress-track {
    gap: 0;
  }

  .bp-progress-dot {
    margin: 0 32px;
    width: 24px;
    height: 24px;
  }

  .bp-progress-labels span {
    width: 80px;
    font-size: 9px;
  }

  .bp-grid-label,
  .bp-grid-corner {
    width: 120px;
    min-width: 110px;
    font-size: 8px;
  }

  .bp-grid-phase {
    min-width: 80px;
    font-size: 9px;
    padding: 10px 6px;
  }

  .bp-grid-cell {
    min-width: 80px;
    font-size: 10.5px;
    padding: 9px 6px;
  }

  .bp-email-row {
    flex-direction: column;
  }

  .bp-email-input {
    width: 100%;
  }

  .bp-actions-bar {
    padding: 20px;
    gap: 12px;
  }

  .bp-actions-bar .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
  }

  .resource-card {
    padding: 28px 24px;
  }

  .bp-color-inputs {
    flex-direction: column;
    gap: 20px;
  }
}
