/* WrappedOps Revenue Calculator - Design System
   Swiss-inspired, high-contrast dark theme, mobile-first */

:root {
  --bg-primary: #0A0A0A;
  --bg-surface: #141414;
  --bg-surface-hover: #1C1C1C;
  --border-subtle: #242424;
  --border-focus: #3A3A3A;
  --text-primary: #FFFFFF;
  --text-secondary: #999999;
  --text-muted: #555555;
  --accent-green: #00E5A0;
  --accent-green-glow: rgba(0, 229, 160, 0.15);
  --accent-red: #FF4444;
  --accent-red-glow: rgba(255, 68, 68, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.calc-app {
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  min-height: 600px;
}

/* Header & Progress Tracker */
.calc-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-logo {
  width: 24px;
  height: 24px;
  background-color: var(--accent-green);
  color: #000;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
}

.step-indicator {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.step-dot {
  flex: 1;
  height: 4px;
  background-color: var(--border-subtle);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.step-dot.active {
  background-color: var(--accent-green);
}

.step-dot.completed {
  background-color: var(--text-secondary);
}

/* Step Container & Slide Transitions */
.steps-viewport {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-panel {
  display: none;
  flex-direction: column;
  animation: fadeIn 0.3s ease forwards;
}

.step-panel.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.step-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Step 1: Vertical Grid */
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.verticals-grid::-webkit-scrollbar {
  width: 4px;
}

.verticals-grid::-webkit-scrollbar-thumb {
  background: var(--border-focus);
  border-radius: 4px;
}

.vertical-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
}

.vertical-card:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-focus);
}

.vertical-card.selected {
  border-color: var(--accent-green);
  background-color: var(--accent-green-glow);
}

.vertical-emoji {
  font-size: 22px;
}

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

/* Sliders & Inputs (Steps 2-4) */
.input-group {
  margin-bottom: 28px;
}

.input-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.input-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-value-badge {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-green);
  font-variant-numeric: tabular-nums;
}

.range-slider {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-green);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-green-glow);
  transition: transform 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.currency-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-prefix {
  position: absolute;
  left: 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

.number-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 14px 14px 32px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-smooth);
}

.number-input:focus {
  border-color: var(--accent-green);
}

/* Response Time Option Cards (Step 4) */
.response-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.response-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.response-card:hover {
  border-color: var(--border-focus);
}

.response-card.selected {
  border-color: var(--accent-green);
  background: var(--accent-green-glow);
}

.response-card-title {
  font-size: 14px;
  font-weight: 600;
}

.response-card-factor {
  font-size: 12px;
  color: var(--text-muted);
}

/* Navigation Buttons */
.nav-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.btn-primary {
  flex: 1;
  background: var(--accent-green);
  color: #000;
  font-weight: 700;
}

.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 4px 16px var(--accent-green-glow);
}

.btn-danger {
  background: var(--accent-red);
  color: #fff;
}

/* Results Step */
.result-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.result-badge {
  align-self: center;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-red);
  background: var(--accent-red-glow);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.result-amount {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin: 6px 0;
  letter-spacing: -0.5px;
}

.result-subline {
  font-size: 14px;
  color: var(--text-secondary);
}

.result-breakdown-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin: 8px 0;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.breakdown-label {
  color: var(--text-secondary);
}

.breakdown-val {
  font-weight: 600;
  color: var(--text-primary);
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

/* Methodology FAQ Accordion */
.faq-section {
  margin-top: 24px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  text-align: left;
}

.faq-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.faq-item {
  margin-bottom: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-trigger:hover {
  color: var(--text-primary);
}

.faq-content {
  display: none;
  padding: 10px 14px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border-subtle);
}

.faq-item.open .faq-content {
  display: block;
}
