/* ============================================
   ROI CALCULATOR — Automation AI
   ============================================ */

/* ── Layout ── */
.roi-calculator {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .roi-calculator {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

/* ── Inputs Panel ── */
.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.roi-slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.roi-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.roi-slider-label span:first-child {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
}

.roi-slider-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-brand-300);
  white-space: nowrap;
  min-width: 7rem;
  text-align: right;
}

/* ── Custom Slider ── */
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-bg-border);
  outline: none;
  cursor: pointer;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-brand-400);
  box-shadow: 0 0 12px var(--color-brand-glow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.roi-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--color-brand-400);
  box-shadow: 0 0 12px var(--color-brand-glow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.roi-slider:hover::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--color-brand-glow);
}

.roi-slider:hover::-moz-range-thumb {
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--color-brand-glow);
}

/* ── Results Panel ── */
.roi-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Result Card ── */
.roi-result-card {
  padding: 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.roi-result-card.pulse {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
}

.roi-result-card-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roi-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: var(--weight-bold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .roi-value {
    font-size: 2.5rem;
  }
}

.roi-result-sublabel {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ── After-calculator CTA ── */
.roi-cta {
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(109, 40, 217, 0.06));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-lg);
  text-align: center;
}

.roi-cta-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.roi-cta-text strong {
  color: var(--color-brand-300);
  font-weight: var(--weight-semibold);
}

.roi-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .roi-cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}
