/* ============================================
   Lead to Deliver — Tool Styles
   Shared styles for interactive tool pages
   ============================================ */

/* --- Tool Page Layout --- */
.tool-page {
  max-width: 820px;
  margin: 0 auto;
}

.tool-intro {
  margin-bottom: 36px;
}

.tool-intro p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* --- Mode Toggle --- */
.mode-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mode-toggle button {
  flex: 1;
  padding: 12px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-toggle button:not(:last-child) {
  border-right: 1px solid var(--border);
}

.mode-toggle button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.mode-toggle button.active {
  background: rgba(212, 160, 74, 0.1);
  color: var(--gold);
  font-weight: 600;
}

/* --- Tool Card --- */
.tool-card {
  background: linear-gradient(135deg, var(--surface), rgba(36, 42, 58, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.tool-card h2 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 20px;
}

/* --- Form Controls --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group .form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  min-height: 42px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(13, 13, 20, 0.6);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(154, 154, 171, 0.5);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9aab' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option {
  background: var(--surface);
  color: var(--text);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  font-family: 'Inter', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* --- Salary Prefix --- */
.input-prefix {
  position: relative;
}

.input-prefix .form-input {
  padding-left: 28px;
}

.input-prefix::before {
  content: '$';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}

/* --- Calculate Button --- */
.tool-actions {
  margin-top: 8px;
}

.btn-calculate {
  width: 100%;
  padding: 14px 24px;
  font-size: 0.95rem;
}

/* --- Results --- */
.tool-results {
  display: none;
}

.tool-results.visible {
  display: block;
}

.result-hero {
  text-align: center;
  padding: 32px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.result-hero .result-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.result-hero .result-amount {
  font-family: 'Cinzel', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 4px;
}

.result-stat {
  background: linear-gradient(135deg, var(--surface), rgba(36, 42, 58, 0.6));
  padding: 20px 16px;
  text-align: center;
}

.result-stat .stat-value {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.result-stat .stat-label {
  font-size: 0.75rem;
  color: var(--muted);
}

/* --- Verdict Badge --- */
.verdict {
  text-align: center;
  padding: 20px 24px;
}

.verdict-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.verdict-badge.verdict-green {
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #81c784;
}

.verdict-badge.verdict-gold {
  background: rgba(212, 160, 74, 0.12);
  border: 1px solid rgba(212, 160, 74, 0.3);
  color: var(--gold);
}

.verdict-badge.verdict-red {
  background: rgba(244, 67, 54, 0.12);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #ef9a9a;
}

.verdict-message {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --- Email Gate --- */
.gated-section {
  position: relative;
}

.gated-content {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.gated-content.unlocked {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

.gate-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(13, 13, 20, 0.4);
  border-radius: var(--radius);
}

.gate-overlay.hidden {
  display: none;
}

.gate-box {
  background: var(--surface);
  border: 1px solid rgba(212, 160, 74, 0.3);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.gate-box h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 8px;
}

.gate-box p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.gate-box .gate-email {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.gate-box .gate-email input {
  flex: 1;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(13, 13, 20, 0.6);
  color: var(--text);
  outline: none;
}

.gate-box .gate-email input:focus {
  border-color: var(--gold);
}

.gate-box .gate-email button {
  white-space: nowrap;
}

.gate-skip {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s ease;
}

.gate-skip:hover {
  color: var(--text);
}

/* --- Scenario Comparisons --- */
.scenarios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.scenario-card {
  background: rgba(13, 13, 20, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.scenario-card .scenario-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.scenario-card .scenario-cost {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.scenario-card .scenario-savings {
  font-size: 0.75rem;
  color: #81c784;
}

/* --- Attendee Breakdown Table --- */
.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.breakdown-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.breakdown-table td {
  padding: 10px 12px;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.breakdown-table tr:last-child td {
  border-bottom: none;
}

/* --- Share Block --- */
.share-block {
  margin-top: 16px;
}

.share-text {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  font-family: 'Inter', monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(13, 13, 20, 0.6);
  color: var(--text);
  resize: none;
}

.btn-copy {
  margin-top: 8px;
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-copy.copied {
  background: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.4);
  color: #81c784;
}

/* --- Paste Preview --- */
.paste-preview {
  display: none;
  margin-top: 12px;
}

.paste-preview.visible {
  display: block;
}

.paste-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.paste-preview-header span {
  font-size: 0.8rem;
  color: var(--muted);
}

.paste-preview-header .preview-count {
  font-size: 0.75rem;
  color: var(--gold);
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.preview-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.preview-table td {
  padding: 8px 12px;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.preview-table tr:last-child td {
  border-bottom: none;
}

.preview-table .salary-col {
  font-family: 'Inter', monospace;
}

.preview-error {
  font-size: 0.8rem;
  color: #ef9a9a;
  padding: 8px 0;
}

/* --- Cross-link --- */
.tool-related {
  text-align: center;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.tool-related p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.tool-related a {
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Question Cards (Burnout Scorecard) --- */
.question-card {
  background: linear-gradient(135deg, var(--surface), rgba(36, 42, 58, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: border-color 0.15s ease;
}

.question-card.answered {
  border-color: rgba(212, 160, 74, 0.25);
}

.question-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.question-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 160, 74, 0.12);
  border: 1px solid rgba(212, 160, 74, 0.3);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.question-card.answered .question-number {
  background: rgba(212, 160, 74, 0.2);
}

.question-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  padding-top: 4px;
}

.option-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.option-pill {
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(13, 13, 20, 0.5);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.option-pill:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.option-pill.selected {
  background: rgba(212, 160, 74, 0.12);
  border-color: rgba(212, 160, 74, 0.4);
  color: var(--gold);
  font-weight: 600;
}

/* --- Progress Bar (Scorecard) --- */
.progress-strip {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 13, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-bottom: 24px;
}

.progress-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-count {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

/* --- Dimension Bars (Scorecard Results) --- */
.dimension-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dimension-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dimension-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.dimension-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.dimension-score {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.dimension-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: hidden;
}

.dimension-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}

/* Dimension bar risk colors */
.dimension-fill.risk-very-low { background: #81c784; }
.dimension-fill.risk-low { background: #4db6ac; }
.dimension-fill.risk-moderate { background: var(--gold); }
.dimension-fill.risk-high { background: #ff8a65; }
.dimension-fill.risk-very-high { background: #ef5350; }

/* --- Insight Card (Scorecard) --- */
.insight-card {
  background: rgba(13, 13, 20, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 20px;
}

.insight-card h3 {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 10px;
}

.insight-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.insight-card p:last-child {
  margin-bottom: 0;
}

.insight-citation {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  opacity: 0.8;
}

/* --- Recommendation List (Scorecard) --- */
.recommendations {
  margin-top: 20px;
}

.recommendations h3 {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 12px;
}

.rec-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rec-item:last-child {
  border-bottom: none;
}

.rec-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(212, 160, 74, 0.12);
  border: 1px solid rgba(212, 160, 74, 0.25);
  color: var(--gold);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.rec-text {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
}

.rec-text strong {
  color: var(--white);
}

/* --- Verdict colors extended --- */
.verdict-badge.verdict-teal {
  background: rgba(77, 182, 172, 0.12);
  border: 1px solid rgba(77, 182, 172, 0.3);
  color: #4db6ac;
}

.verdict-badge.verdict-orange {
  background: rgba(255, 138, 101, 0.12);
  border: 1px solid rgba(255, 138, 101, 0.3);
  color: #ff8a65;
}

/* --- Attribution Block --- */
.tool-attribution {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(13, 13, 20, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
}

.tool-attribution p {
  margin-bottom: 8px;
}

.tool-attribution p:last-child {
  margin-bottom: 0;
}

.tool-attribution strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Archetype Hero (Leadership DNA) --- */
.archetype-hero {
  text-align: center;
  padding: 40px 24px;
  border-bottom: 1px solid var(--border);
}

.archetype-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.archetype-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 8px;
}

.archetype-tagline {
  font-style: italic;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.4;
}

.archetype-secondary {
  color: var(--muted);
  margin-top: 16px;
  font-size: 0.9rem;
}

.archetype-secondary strong {
  color: var(--text);
}

/* --- Dimension strength colors (Leadership DNA) --- */
.dimension-fill.strength-low { background: var(--muted); }
.dimension-fill.strength-moderate { background: #4db6ac; }
.dimension-fill.strength-strong { background: var(--gold); }
.dimension-fill.strength-very-strong { background: #81c784; }

/* --- Team Experience Card (Leadership DNA) --- */
.team-experience {
  background: rgba(212, 160, 74, 0.04);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 20px;
}

.team-experience p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.7;
}

/* --- Profile Section Lists (Leadership DNA) --- */
.profile-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.profile-list li {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.profile-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.profile-list.strengths li::before {
  background: rgba(129, 199, 132, 0.5);
  border: 1px solid #81c784;
}

.profile-list.blindspots li::before {
  background: rgba(255, 138, 101, 0.2);
  border: 1px solid #ff8a65;
}

.profile-description {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.profile-subsection {
  margin-bottom: 20px;
}

.profile-subsection h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.profile-subsection h3.strengths-label {
  color: #81c784;
}

.profile-subsection h3.blindspots-label {
  color: #ff8a65;
}

.profile-subsection h3.growth-label {
  color: var(--gold);
}

.growth-edge {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.7;
  background: rgba(212, 160, 74, 0.06);
  border: 1px solid rgba(212, 160, 74, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 8px;
}

/* --- 1:1 Generator Tips --- */
.generator-tips {
  margin-bottom: 48px;
}

.generator-tips h2 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tip-card {
  background: rgba(13, 13, 20, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tip-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--gold);
  line-height: 1.4;
}

.tip-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.tip-card p strong {
  color: var(--text);
}

@media (max-width: 600px) {
  .tips-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 1:1 Question Generator --- */
.question-display {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.generated-question {
  background: linear-gradient(135deg, var(--surface), rgba(36, 42, 58, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  position: relative;
}

.generated-question .q-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(212, 160, 74, 0.12);
  border: 1px solid rgba(212, 160, 74, 0.3);
  color: var(--gold);
}

.generated-question .q-text {
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.5;
  padding-right: 32px;
}

.generated-question .q-save {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.15s;
  padding: 4px;
}

.generated-question .q-save:hover,
.generated-question .q-save.saved {
  color: var(--gold);
}

.category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.category-pill {
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(13, 13, 20, 0.5);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.category-pill:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.category-pill.active {
  background: rgba(212, 160, 74, 0.12);
  border-color: rgba(212, 160, 74, 0.4);
  color: var(--gold);
  font-weight: 600;
}

.generator-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  align-items: center;
}

.saved-counter {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: auto;
}

.saved-counter strong {
  color: var(--gold);
}

/* --- NPS Stacked Bar --- */
.nps-bar {
  width: 100%;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.nps-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
  transition: width 0.4s ease;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.nps-segment.promoters {
  background: #81c784;
}

.nps-segment.passives {
  background: var(--gold);
}

.nps-segment.detractors {
  background: #ef5350;
  color: rgba(255, 255, 255, 0.9);
}

.nps-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 4px;
}

.nps-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

.nps-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nps-legend-dot.promoters { background: #81c784; }
.nps-legend-dot.passives { background: var(--gold); }
.nps-legend-dot.detractors { background: #ef5350; }

/* --- NPS Guidance Cards --- */
.nps-guidance {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.guidance-card {
  background: rgba(13, 13, 20, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

.guidance-card h3 {
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.guidance-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* --- Input Mode Toggle (sub-toggle within tool) --- */
.input-mode-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.input-mode-btn {
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.input-mode-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.input-mode-btn.active {
  background: rgba(212, 160, 74, 0.12);
  border-color: rgba(212, 160, 74, 0.4);
  color: var(--gold);
  font-weight: 600;
}

/* --- Three-column form row --- */
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* --- Range Slider --- */
.form-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  margin: 8px 0 4px;
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid rgba(13, 13, 20, 0.8);
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.form-range::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 4px rgba(212, 160, 74, 0.2);
}

.form-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid rgba(13, 13, 20, 0.8);
  cursor: pointer;
}

.form-range::-moz-range-thumb:hover {
  box-shadow: 0 0 0 4px rgba(212, 160, 74, 0.2);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.range-value {
  text-align: center;
  margin-top: 6px;
}

.range-value .value-number {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.range-value .value-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* --- Result Sublabel --- */
.result-sublabel {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* --- Timeline Chart --- */
.timeline-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 200px;
  padding: 16px 0 0;
  position: relative;
}

.timeline-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}

.timeline-bar-fill {
  width: 100%;
  border-radius: 2px 2px 0 0;
  transition: height 0.4s ease;
  min-height: 2px;
}

.timeline-bar-fill.above { background: #81c784; }
.timeline-bar-fill.near { background: var(--gold); }
.timeline-bar-fill.below { background: #ef5350; }

.timeline-bar-label {
  font-size: 0.6rem;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
}

.timeline-reference {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.timeline-reference-label {
  position: absolute;
  top: -18px;
  right: 0;
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
}

.timeline-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.timeline-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

.timeline-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.timeline-legend-dot.above { background: #81c784; }
.timeline-legend-dot.near { background: var(--gold); }
.timeline-legend-dot.below { background: #ef5350; }

/* --- Milestone Rows --- */
.milestones {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.milestone-row {
  display: grid;
  grid-template-columns: 50px 1fr 70px;
  align-items: center;
  gap: 12px;
}

.milestone-pct {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  text-align: right;
}

.milestone-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.milestone-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--gold);
  transition: width 0.6s ease;
}

.milestone-label {
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .tool-card {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .result-stats {
    grid-template-columns: 1fr;
  }

  .scenarios {
    grid-template-columns: 1fr;
  }

  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .timeline-chart {
    height: 150px;
  }

  .timeline-bar-label {
    display: none;
  }

  .timeline-bar:nth-child(3n+1) .timeline-bar-label {
    display: block;
  }

  .milestone-row {
    grid-template-columns: 40px 1fr 60px;
    gap: 8px;
  }

  .nps-legend {
    gap: 12px;
    flex-wrap: wrap;
  }

  .question-card {
    padding: 20px;
  }

  .option-pills {
    gap: 6px;
  }

  .option-pill {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .tool-card {
    padding: 20px;
  }

  .gate-box {
    padding: 20px;
  }

  .gate-box .gate-email {
    flex-direction: column;
  }

  .result-hero .result-amount {
    font-size: 32px;
  }

  .question-card {
    padding: 16px;
  }

  .question-header {
    gap: 10px;
  }

  .question-number {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .question-text {
    font-size: 0.9rem;
  }

  .option-pill {
    padding: 6px 10px;
    font-size: 0.72rem;
  }
}
