/* ============================================================
   Mindset-Kompass — Spezial-Features Section
   Gesprächs-Kompass · Formulierungs-Kompass · Führungs-Simulator
   ============================================================ */

/* ── Section wrapper ── */
.features-section {
  padding: 80px 0 100px;
  background: var(--bg-base);
  border-top: 1px solid rgba(59, 130, 246, 0.08);
}

.features-section .container {
  max-width: 820px;
}

/* ── Section header ── */
.features-header {
  text-align: center;
  margin-bottom: 52px;
}

.features-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 10px 0 14px;
  letter-spacing: -0.02em;
}

.features-intro {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto;
}

/* ── Feature grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 1000px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
}

/* ── Feature card ── */
.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08);
}

.feature-card.feature-premium {
  border-color: rgba(34, 211, 238, 0.18);
  background: linear-gradient(
    160deg,
    rgba(34, 211, 238, 0.04) 0%,
    var(--bg-card) 55%
  );
}

.feature-card.feature-premium:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.08);
}

/* ── Plan badge ── */
.feature-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 10px;
  width: fit-content;
}

.feature-badge.badge-pro {
  background: rgba(139, 92, 246, 0.14);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.28);
}

.feature-badge.badge-premium {
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.28);
}

/* ── Card header ── */
.feature-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.feature-card-header p {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.65;
}

/* ── Demo area ── */
.feature-demo {
  background: rgba(9, 14, 28, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.09);
  border-radius: 12px;
  padding: 18px;
  flex: 1;
}

.demo-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

/* Situation buttons (Gesprächs-Kompass) */
.demo-situations {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.demo-situation-btn {
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
  line-height: 1;
}

.demo-situation-btn:hover {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.38);
  color: var(--text-primary);
}

.demo-situation-btn.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: var(--blue-primary);
  color: #93c5fd;
}

/* Demo result (shared) */
.demo-result {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(59, 130, 246, 0.09);
}

.demo-result-text {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.72;
}

.demo-result-text strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.demo-step {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.demo-step-num {
  color: var(--blue-light);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 14px;
}

.demo-result-locked {
  position: relative;
  overflow: hidden;
  max-height: 72px;
  pointer-events: none;
}

.demo-result-locked::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(transparent, rgba(9, 14, 28, 0.95));
  pointer-events: none;
}

.demo-result-locked .demo-step {
  filter: blur(3.5px);
  opacity: 0.5;
  user-select: none;
}

.demo-more-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 10px;
  font-style: italic;
  text-align: center;
}

/* Formulierungs input */
.demo-input-area {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-muted);
  resize: none;
  margin-bottom: 9px;
  transition: border-color 0.2s, color 0.2s;
  line-height: 1.6;
}

.demo-input-area:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.38);
  color: var(--text-primary);
}

.demo-run-btn {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #93c5fd;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  width: 100%;
}

.demo-run-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--blue-primary);
}

.demo-improved-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 7px;
}

.demo-improved-text {
  font-size: 12.5px;
  color: #a5f3fc;
  font-style: italic;
  line-height: 1.7;
}

/* Führungs-Simulator demo */
.sim-exchange {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-msg {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.sim-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.sim-avatar-you {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.sim-avatar-ma {
  background: rgba(100, 116, 139, 0.25);
  color: #94a3b8;
}

.sim-bubble {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.sim-bubble-you {
  background: rgba(59, 130, 246, 0.09);
  color: #93c5fd;
}

.sim-feedback {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 8px;
  padding: 11px 13px;
  margin-top: 12px;
}

.sim-feedback-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
  margin-bottom: 5px;
}

.sim-feedback-text {
  font-size: 12px;
  color: #6ee7b7;
  line-height: 1.65;
}

/* ── Upgrade CTA area ── */
.feature-upgrade-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(59, 130, 246, 0.08);
  padding-top: 18px;
}

.feature-upgrade-hint {
  font-size: 12px;
  color: var(--text-dim);
  flex: 1;
  line-height: 1.4;
}

.feature-upgrade-btn {
  border-radius: 8px;
  padding: 9px 15px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  flex-shrink: 0;
}

.feature-upgrade-btn.btn-pro {
  background: rgba(139, 92, 246, 0.13);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.feature-upgrade-btn.btn-pro:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: #8b5cf6;
  color: #c4b5fd;
}

/* Full access indicator (Pro users on feature 1+2) */
.feature-full-access {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #34d399;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 185, 129, 0.12);
  font-weight: 500;
}

.feature-full-access::before {
  content: '✓';
  font-weight: 800;
  font-size: 12px;
}

/* ── Gast-Eingabe-Gate ── */
.guest-input-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 18px;
  padding: 40px 32px;
  gap: 16px;
}

.guest-gate-icon {
  font-size: 2rem;
  color: var(--blue-light);
  opacity: 0.7;
}

.guest-gate-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.guest-gate-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 420px;
}

.guest-gate-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.guest-gate-btn-primary {
  background: var(--blue-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.guest-gate-btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.45);
}

.guest-gate-btn-secondary {
  background: rgba(59, 130, 246, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.18s;
}

.guest-gate-btn-secondary:hover {
  background: rgba(59, 130, 246, 0.14);
  color: var(--text-primary);
  border-color: rgba(59, 130, 246, 0.35);
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .features-section {
    padding: 60px 0 80px;
  }

  .features-header h2 {
    font-size: 1.4rem;
  }

  .feature-upgrade-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-upgrade-btn {
    text-align: center;
    padding: 11px 16px;
  }

  .guest-input-gate {
    padding: 28px 20px;
  }

  .guest-gate-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .guest-gate-btn-primary,
  .guest-gate-btn-secondary {
    text-align: center;
  }
}
