/* ============================================
   PHASE 2 — INTERACTIVE FEATURES
   BrandBall — Tech-Enabled Omnichannel Agency
   ============================================ */

/* ===========================================
   1. SCROLL PROGRESS BALL
   =========================================== */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 0 3px 3px 0;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.4);
}

.scroll-progress-ball {
  position: fixed;
  top: -12px;
  left: 0%;
  width: 30px;
  height: 30px;
  z-index: 10001;
  transition: left 0.05s linear, transform 0.1s ease;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(255, 69, 0, 0.3));
}

.scroll-progress-ball img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: scrollBallSpin 3s linear infinite;
}

@keyframes scrollBallSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* ===========================================
   2. OMNICHANNEL JOURNEY MAP
   =========================================== */
.journey-map {
  background: var(--bg-primary);
  overflow: hidden;
}

.journey-wrapper {
  position: relative;
  padding: 10px 0 60px;
}

.journey-path {
  display: none;
}

.journey-line-bg,
.journey-line-progress {
  display: none;
}

.journey-ball {
  display: none;
}

.journey-ball img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: journeyBallPulse 2s ease-in-out infinite;
}

@keyframes journeyBallPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.journey-stages {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  z-index: 2;
  gap: 14px;
  padding-top: 30px;
  padding-bottom: 20px;
}

/* Unique border colors per circle — matching logo ball palette */
.journey-stage:nth-child(1) { transform: translateY(60px); border-color: #2196F3; }
.journey-stage:nth-child(2) { transform: translateY(20px); border-color: #FFD700; }
.journey-stage:nth-child(3) { transform: translateY(-20px); border-color: #FF4500; }
.journey-stage:nth-child(4) { transform: translateY(20px); border-color: #4CAF50; }
.journey-stage:nth-child(5) { transform: translateY(60px); border-color: #9C27B0; }

.journey-stage {
  flex: 0 0 160px;
  width: 160px;
  height: 160px;
  text-align: center;
  padding: 20px 12px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  cursor: pointer;
  opacity: 0.65;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.journey-stage:hover {
  opacity: 0.85;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Active states — keep unique colors, lift slightly */
.journey-stage:nth-child(1).active { transform: translateY(52px); border-color: #2196F3; box-shadow: 0 8px 30px rgba(33, 150, 243, 0.25); }
.journey-stage:nth-child(2).active { transform: translateY(12px); border-color: #FFD700; box-shadow: 0 8px 30px rgba(255, 215, 0, 0.25); }
.journey-stage:nth-child(3).active { transform: translateY(-28px); border-color: #FF4500; box-shadow: 0 8px 30px rgba(255, 69, 0, 0.25); }
.journey-stage:nth-child(4).active { transform: translateY(12px); border-color: #4CAF50; box-shadow: 0 8px 30px rgba(76, 175, 80, 0.25); }
.journey-stage:nth-child(5).active { transform: translateY(52px); border-color: #9C27B0; box-shadow: 0 8px 30px rgba(156, 39, 176, 0.25); }

.journey-stage:nth-child(1):hover { transform: translateY(54px); }
.journey-stage:nth-child(2):hover { transform: translateY(14px); }
.journey-stage:nth-child(3):hover { transform: translateY(-24px); }
.journey-stage:nth-child(4):hover { transform: translateY(14px); }
.journey-stage:nth-child(5):hover { transform: translateY(54px); }

.journey-stage.active {
  opacity: 1;
}

.journey-stage .stage-icon {
  font-size: 1.6rem;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
  line-height: 1;
}

.journey-stage.active .stage-icon {
  transform: scale(1.2);
}

.journey-stage h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.2;
}

.journey-stage p {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.3;
}

.stage-detail {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: var(--bg-white);
  border: 2px solid #ccc;
  border-radius: 12px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  pointer-events: none;
}

.journey-stage.active .stage-detail {
  max-height: 200px;
  opacity: 1;
  padding: 12px 14px;
  margin-top: 8px;
  pointer-events: auto;
}

/* Detail tooltip border matches parent circle color */
.journey-stage:nth-child(1) .stage-detail { border-color: #2196F3; }
.journey-stage:nth-child(2) .stage-detail { border-color: #FFD700; }
.journey-stage:nth-child(3) .stage-detail { border-color: #FF4500; }
.journey-stage:nth-child(4) .stage-detail { border-color: #4CAF50; }
.journey-stage:nth-child(5) .stage-detail { border-color: #9C27B0; }

.stage-services {
  display: inline-block;
  background: rgba(255, 69, 0, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.stage-case {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.4;
}


/* ===========================================
   3. ROI CALCULATOR
   =========================================== */
.roi-calculator {
  background: linear-gradient(180deg, #FFF5F0 0%, var(--bg-primary) 100%);
}

.roi-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

/* Step indicators */
.roi-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.roi-step {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ccc;
  border-bottom: 3px solid #eee;
  transition: all 0.3s ease;
}

.roi-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eee;
  color: #999;
  font-size: 0.75rem;
  margin-right: 6px;
  transition: all 0.3s ease;
}

.roi-step.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.roi-step.active span {
  background: var(--primary);
  color: #fff;
}

.roi-step.completed {
  color: var(--accent-mint);
  border-bottom-color: var(--accent-mint);
}

.roi-step.completed span {
  background: #2ecc71;
  color: #fff;
}

.roi-step-ball-track {
  height: 4px;
  background: #eee;
  border-radius: 4px;
  position: relative;
  margin-bottom: 32px;
}

.roi-step-ball {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  transform: translate(-50%, -50%);
  transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(255, 69, 0, 0.4);
}

/* Panels */
.roi-panel {
  display: none;
  animation: roiFadeIn 0.4s ease;
}

.roi-panel.active {
  display: block;
}

@keyframes roiFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.roi-panel h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.roi-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Service grid of checkboxes */
.roi-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.roi-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  color: var(--text-primary);
  user-select: none;
}

.roi-checkbox:hover {
  border-color: var(--primary-light);
  background: #FFF5F0;
}

.roi-checkbox input[type="checkbox"] {
  display: none;
}

.roi-checkbox input[type="checkbox"]:checked + .roi-check-icon {
  transform: scale(1.2);
}

.roi-checkbox:has(input:checked) {
  border-color: var(--primary);
  background: rgba(255, 69, 0, 0.06);
  box-shadow: 0 2px 12px rgba(255, 69, 0, 0.1);
}

.roi-check-icon {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

/* Form */
.roi-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.roi-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.roi-input,
.roi-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease;
  background: #fafafa;
  color: var(--text-primary);
  box-sizing: border-box;
}

.roi-input:focus,
.roi-select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.roi-input::placeholder {
  color: #bbb;
}

.roi-input.error {
  border-color: #e74c3c;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Buttons */
.roi-next-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.roi-next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 69, 0, 0.3);
}

.roi-back-btn {
  display: inline-block;
  padding: 14px 24px;
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.roi-back-btn:hover {
  border-color: var(--text-secondary);
}

.roi-btn-group {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

/* Results Dashboard */
.roi-results {
  text-align: center;
}

.roi-results h3 {
  margin-bottom: 4px;
}

.roi-results-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.roi-dashboard {
  margin-bottom: 32px;
}

.roi-gauge {
  margin-bottom: 28px;
}

.roi-gauge-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0%, #eee 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  position: relative;
  transition: background 1s ease;
}

.roi-gauge-circle::before {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--bg-white);
}

.roi-gauge-value {
  position: relative;
  z-index: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.roi-gauge-value::after {
  content: '/100';
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.roi-gauge p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.roi-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 20px;
}

.roi-metric-card {
  background: #f8f8f8;
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s ease;
}

.roi-metric-card:hover {
  transform: translateY(-3px);
}

.roi-metric-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 6px;
}

.roi-metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.roi-metric-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
}

.roi-channel-mix {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.roi-channel-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 69, 0, 0.08);
  color: var(--primary);
  animation: tagPop 0.4s ease forwards;
}

@keyframes tagPop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.roi-cta-box {
  background: linear-gradient(135deg, #FFF5F0, #f0faf5);
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
}

.roi-cta-box p {
  margin-bottom: 14px;
  font-size: 1rem;
}

.roi-restart-btn {
  padding: 10px 24px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.roi-restart-btn:hover {
  background: var(--primary);
  color: #fff;
}


/* ===========================================
   4. BRAND HEALTH QUIZ
   =========================================== */
.brand-quiz {
  background: var(--bg-white);
}

.quiz-container {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  position: relative;
}

/* Progress Bar */
.quiz-progress {
  position: relative;
  height: 8px;
  background: #eee;
  border-radius: 8px;
  margin-bottom: 36px;
  overflow: visible;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 8px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-progress-ball {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(255, 69, 0, 0.3));
}

.quiz-progress-ball img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quiz-progress-text {
  position: absolute;
  right: 0;
  top: -24px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Questions */
.quiz-question {
  display: none;
  animation: quizSlideIn 0.5s ease;
}

.quiz-question.active {
  display: block;
}

@keyframes quizSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.quiz-question h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.quiz-question > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  background: var(--bg-white);
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.quiz-option:hover {
  border-color: var(--primary-light);
  background: #FFF5F0;
  transform: translateX(4px);
}

.quiz-option.selected {
  border-color: var(--primary);
  background: rgba(255, 69, 0, 0.08);
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(255, 69, 0, 0.12);
}

/* Results */
.quiz-results {
  display: none;
  text-align: center;
  animation: quizSlideIn 0.5s ease;
}

.quiz-results.active {
  display: block;
}

.quiz-score-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0%, #eee 0%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  transition: background 1.5s ease;
}

.quiz-score-circle::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-primary);
}

.quiz-score-number {
  position: relative;
  z-index: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.quiz-score-total {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.quiz-grade {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.quiz-grade-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.quiz-weak-areas {
  text-align: left;
  background: var(--bg-white);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}

.quiz-weak-areas h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.quiz-recommendations {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-rec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #FFF5F0;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
  border-left: 3px solid var(--primary);
}

.quiz-rec-item .rec-icon {
  font-size: 1.1rem;
}

.quiz-lead-capture {
  margin-bottom: 20px;
}

.quiz-lead-capture p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.quiz-lead-form {
  display: flex;
  gap: 10px;
}

.quiz-lead-form .roi-input {
  flex: 1;
}

.quiz-share {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.quiz-share-btn,
.quiz-restart-btn {
  padding: 10px 20px;
  border: 2px solid #eee;
  border-radius: 10px;
  background: transparent;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.quiz-share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.quiz-restart-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}


/* ===========================================
   5. CASE STUDY FLIP CARDS
   =========================================== */

/* Filter bar */
.stories-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.story-filter {
  padding: 8px 20px;
  border: 2px solid #eee;
  border-radius: 25px;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
}

.story-filter:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.story-filter.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.stories-flip-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  opacity: 0.8;
}

/* Flip card mechanics */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
}

.story-card.flip-card {
  background: none;
  box-shadow: none;
  padding: 0;
  border: none;
}

.story-card-inner {
  position: relative;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.story-card.flipped .story-card-inner {
  transform: rotateY(180deg);
}

.story-front,
.story-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  padding: 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.story-front {
  position: relative;
  background: var(--bg-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  justify-content: space-between;
}

.story-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.story-back {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #ffffff;
  transform: rotateY(180deg);
  justify-content: center;
  gap: 16px;
  border: 1px solid rgba(255, 69, 0, 0.25);
}

.story-back h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--primary);
}

.story-back p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 1;
  color: #ffffff;
  font-weight: 500;
}

.story-appreciation {
  background: rgba(255, 69, 0, 0.1);
  border: 1px solid rgba(255, 69, 0, 0.2);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}

.appreciation-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.story-appreciation p {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 1;
  margin: 0;
  color: #ffffff;
}

.flip-prompt {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.story-card:hover .flip-prompt {
  opacity: 1;
}

.story-back .flip-prompt {
  color: rgba(255, 69, 0, 0.7);
  text-align: center;
}

/* Card filter animation */
.story-card.hidden-filter {
  display: none;
}

.story-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}


/* ===========================================
   RESPONSIVE ADJUSTMENTS
   =========================================== */

/* Tablet */
@media (max-width: 992px) {
  .journey-stages {
    flex-wrap: wrap;
    gap: 12px;
  }

  .journey-stage {
    flex: 0 0 calc(33.33% - 12px);
  }

  .roi-form-grid {
    grid-template-columns: 1fr;
  }

  .roi-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .journey-stages {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-top: 20px;
  }

  .journey-stage,
  .journey-stage:nth-child(1),
  .journey-stage:nth-child(2),
  .journey-stage:nth-child(3),
  .journey-stage:nth-child(4),
  .journey-stage:nth-child(5),
  .journey-stage:nth-child(1).active,
  .journey-stage:nth-child(2).active,
  .journey-stage:nth-child(3).active,
  .journey-stage:nth-child(4).active,
  .journey-stage:nth-child(5).active {
    transform: translateY(0) !important;
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    padding: 14px 8px;
  }

  .stage-detail {
    width: 180px;
  }

  .journey-path {
    display: none;
  }

  .journey-ball {
    display: none;
  }

  .roi-container {
    padding: 24px 20px;
  }

  .roi-steps {
    font-size: 0.75rem;
  }

  .roi-step span {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }

  .roi-service-grid {
    grid-template-columns: 1fr;
  }

  .roi-form-grid {
    grid-template-columns: 1fr;
  }

  .roi-metrics-grid {
    grid-template-columns: 1fr;
  }

  .roi-btn-group {
    flex-direction: column;
  }

  .quiz-container {
    padding: 24px 20px;
  }

  .quiz-lead-form {
    flex-direction: column;
  }

  .quiz-share {
    flex-direction: column;
  }

  .stories-filter-bar {
    gap: 6px;
  }

  .story-filter {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .story-card-inner {
    min-height: 380px;
  }

  .story-front,
  .story-back {
    padding: 20px;
  }

  .scroll-progress-ball {
    width: 24px;
    height: 24px;
    top: -10px;
  }
}

@media (max-width: 480px) {
  .story-card-inner {
    min-height: 420px;
  }

  .roi-step {
    font-size: 0;
  }

  .roi-step span {
    font-size: 0.75rem;
    margin-right: 0;
  }

  .roi-step.active {
    font-size: 0.7rem;
  }
}
