/**
 * SignSafe Landing Page Enhancements CSS
 * Contains styles for all new conversion-focused components
 * WCAG 2.2 AA Compliant
 */

/* ============================================
   EXIT INTENT MODAL
   ============================================ */
/* v15.5: Respect hidden attribute - must come before display:flex rule */
.exit-modal[hidden] {
  display: none !important;
}

.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.exit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
  z-index: 1; /* Behind content */
  cursor: pointer; /* Indicate clickable to close */
}

.exit-modal__content {
  position: relative;
  z-index: 2; /* Above backdrop - ensures buttons are clickable */
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  color: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease;
}

.exit-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: color 0.2s;
}

.exit-modal__close:hover,
.exit-modal__close:focus {
  color: #fff;
}

.exit-modal__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.exit-modal__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff; /* WCAG 2.2 AA: Explicit white - inherits dark from .portal-page otherwise */
}

.exit-modal__message {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.exit-modal__stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.exit-stat {
  text-align: center;
}

.exit-stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--portal-accent, #60a5fa);
}

.exit-stat__label {
  font-size: 0.75rem;
  color: #cbd5e1; /* WCAG 2.2 AA: 8.1:1 contrast on #1a1a2e - was #94a3b8 (5.4:1) */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.exit-modal__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exit-modal__btn {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.exit-modal__dismiss {
  background: none;
  border: none;
  color: #94a3b8; /* WCAG 2.2 AA: 5.4:1 contrast on #1a1a2e - was #64748b (3.8:1 FAIL) */
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.exit-modal__dismiss:hover {
  color: #cbd5e1;
}

.exit-modal__trust {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #94a3b8; /* WCAG 2.2 AA: 5.4:1 contrast on #1a1a2e - was #64748b (3.8:1 FAIL) */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ============================================
   MICRO-COMMITMENT FLOW
   ============================================ */
.micro-commit {
  padding: 3rem 0;
  background: linear-gradient(
    180deg,
    var(--portal-light, #f8fafc) 0%,
    #fff 100%
  );
}

.micro-commit__card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.micro-commit__step {
  display: none;
}

.micro-commit__step--active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.micro-commit__step-badge {
  display: inline-block;
  background: var(--portal-primary, #3b82f6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.micro-commit__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.micro-commit__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.micro-commit__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.micro-commit__option:hover {
  border-color: var(--portal-primary, #3b82f6);
  background: var(--portal-light, #eff6ff);
}

.micro-commit__option[aria-pressed="true"] {
  border-color: var(--portal-primary, #3b82f6);
  background: var(--portal-light, #eff6ff);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.micro-commit__option-icon {
  font-size: 2rem;
}

.micro-commit__option-label {
  font-weight: 600;
  color: #334155;
}

.micro-commit__concerns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.micro-commit__concern {
  cursor: pointer;
}

.micro-commit__concern input {
  position: absolute;
  opacity: 0;
}

.micro-commit__concern-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s;
}

.micro-commit__concern input:checked + .micro-commit__concern-box {
  border-color: var(--portal-primary, #3b82f6);
  background: var(--portal-light, #eff6ff);
}

.micro-commit__concern input:focus + .micro-commit__concern-box {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.micro-commit__concern-icon {
  font-size: 1.25rem;
}

.micro-commit__continue {
  width: 100%;
}

.micro-commit__personalized {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #ecfdf5;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: #065f46;
}

.micro-commit__check {
  font-size: 1.25rem;
  color: #10b981;
}

.micro-commit__upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  font-size: 1.1rem;
  padding: 1rem;
}

.micro-commit__upload-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
}

.micro-commit__progress {
  margin-top: 2rem;
  text-align: center;
}

.micro-commit__progress-track {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.micro-commit__progress-fill {
  height: 100%;
  background: var(--portal-primary, #3b82f6);
  transition: width 0.4s ease;
}

.micro-commit__progress-text {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ============================================
   LIVE ACTIVITY FEED
   ============================================ */
.live-activity-ticker {
  background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
  padding: 0.75rem 0;
  overflow: hidden;
}

.live-activity-ticker__container {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.live-activity-ticker__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #10b981;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

.live-activity-ticker__pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.live-activity-ticker__track {
  display: flex;
  gap: 2.5rem;
  animation: ticker 80s linear infinite; /* Slower for better readability */
  color: #cbd5e1;
  font-size: 0.875rem;
}

/* Pause ticker on hover/focus for readability - WCAG 2.2.2 */
.live-activity-ticker:hover .live-activity-ticker__track,
.live-activity-ticker:focus-within .live-activity-ticker__track {
  animation-play-state: paused;
}

/* Pause button for manual control - WCAG 2.2.2 */
.ticker-pause-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 28px;
}

.ticker-pause-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.ticker-pause-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.ticker-pause-btn[aria-pressed="true"] .pause-icon {
  display: none;
}

.ticker-pause-btn[aria-pressed="false"] .play-icon {
  display: none;
}

.live-activity-ticker--paused .live-activity-ticker__track {
  animation-play-state: paused;
}

.live-activity-ticker--paused .live-activity-ticker__pulse {
  animation-play-state: paused;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Enhanced Ticker Items */
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  white-space: nowrap;
  padding: 0.375rem 0;
}

.ticker-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ticker-item__icon--critical {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.ticker-item__icon--warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.ticker-item__icon--success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.ticker-item__type {
  color: #f1f5f9;
  font-weight: 500;
}

.ticker-item__location {
  color: #94a3b8;
}

.ticker-item__finding {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ticker-item__finding--critical {
  color: #f87171;
  font-weight: 600;
}

.ticker-item__finding--warning {
  color: #fbbf24;
}

.ticker-item__finding--success {
  color: #34d399;
}

.ticker-item__clause {
  color: #94a3b8;
  font-style: italic;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-item__time {
  color: #64748b;
  font-size: 0.8125rem;
}

.ticker-item__dot {
  color: #475569;
}

/* Live Activity Toast */
.live-activity-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  max-width: 320px;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1000;
}

.live-activity-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.live-activity-toast__content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.live-activity-toast__icon {
  width: 32px;
  height: 32px;
  background: #ecfdf5;
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.live-activity-toast__text {
  flex: 1;
}

.live-activity-toast__action {
  display: block;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.live-activity-toast__detail {
  font-size: 0.75rem;
  color: #64748b;
}

.live-activity-toast__close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.live-activity-toast__savings {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.live-activity-toast__savings .savings-label {
  color: #64748b;
}

.live-activity-toast__savings .savings-value {
  font-weight: 700;
  color: var(--portal-danger, #dc2626);
}

/* ============================================
   TRUST & AUTHORITY INDICATORS
   ============================================ */
.trust-authority {
  padding: 1.5rem 0;
}

.trust-authority__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  font-size: 0.875rem;
  color: #475569;
}

.trust-badge__icon {
  font-size: 1rem;
}

.trust-badge__text {
  font-weight: 500;
}

.trust-authority__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.trust-stat {
  text-align: center;
}

.trust-stat__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--portal-primary, #3b82f6);
}

.trust-stat__label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   FREE RESOURCES SECTION
   ============================================ */
.free-resources {
  padding: 3rem 0;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.free-resources__card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.free-resources__badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.free-resources__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.free-resources__description {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.free-resources__items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.free-resource-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.free-resource-item:hover {
  border-color: var(--portal-primary, #3b82f6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.free-resource-item__icon {
  font-size: 1.5rem;
}

.free-resource-item__content {
  flex: 1;
  text-align: left;
}

.free-resource-item__title {
  display: block;
  font-weight: 600;
  color: #1e293b;
}

.free-resource-item__format {
  font-size: 0.75rem;
  color: #64748b;
}

.free-resource-item__download {
  color: var(--portal-primary, #3b82f6);
  font-size: 1.25rem;
}

.free-resources__note {
  font-size: 0.875rem;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ============================================
   FREE RESOURCES - ENHANCED VARIANT
   ============================================ */
.free-resources--enhanced {
  padding: 4rem 0;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 50%, #fde68a 100%);
  position: relative;
  overflow: hidden;
}

.free-resources--enhanced::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.free-resources--enhanced .free-resources__card {
  background: linear-gradient(180deg, #ffffff 0%, #fefefe 100%);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 560px;
  margin: 0 auto;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 20px 50px -12px rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  position: relative;
  z-index: 1;
}

.free-resources__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.free-resources__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--portal-primary, #14b8a6);
}

.free-resources__logo-icon {
  width: 40px;
  height: 40px;
}

.free-resources__logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.025em;
}

.free-resources--enhanced .free-resources__badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.free-resources--enhanced .free-resources__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.75rem;
  text-align: center;
  line-height: 1.2;
}

.free-resources--enhanced .free-resources__description {
  color: #64748b;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
}

.free-resources--enhanced .free-resources__items {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.free-resources--enhanced .free-resource-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.free-resources--enhanced .free-resource-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--portal-light, #f0fdfa) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.free-resources--enhanced .free-resource-item:hover {
  border-color: var(--portal-primary, #14b8a6);
  transform: translateX(4px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    -4px 0 0 var(--portal-primary, #14b8a6);
}

.free-resources--enhanced .free-resource-item:hover::before {
  opacity: 1;
}

.free-resources--enhanced .free-resource-item__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.free-resources--enhanced .free-resource-item__content {
  flex: 1;
  text-align: left;
  position: relative;
  z-index: 1;
}

.free-resources--enhanced .free-resource-item__title {
  display: block;
  font-weight: 700;
  color: #1e293b;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.free-resources--enhanced .free-resource-item__format {
  font-size: 0.8rem;
  color: #64748b;
}

.free-resources--enhanced .free-resource-item__arrow {
  color: var(--portal-primary, #14b8a6);
  font-size: 1.25rem;
  font-weight: 600;
  transition: transform 0.25s ease;
  position: relative;
  z-index: 1;
}

.free-resources--enhanced .free-resource-item:hover .free-resource-item__arrow {
  transform: translateX(4px);
}

.free-resources__emergency {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.free-resources__emergency-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.free-resources__emergency-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.free-resources__emergency-content strong {
  color: #991b1b;
  font-size: 0.95rem;
}

.free-resources__emergency-content span {
  color: #b91c1c;
  font-size: 0.85rem;
}

.free-resources--enhanced .free-resources__note {
  font-size: 0.875rem;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #ecfdf5;
  border-radius: 8px;
  font-weight: 500;
}

/* Free Resources Responsive */
@media (max-width: 600px) {
  .free-resources--enhanced .free-resources__card {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .free-resources__header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .free-resources--enhanced .free-resources__title {
    font-size: 1.5rem;
  }

  .free-resources--enhanced .free-resource-item {
    padding: 1rem;
  }

  .free-resources__emergency {
    flex-direction: column;
    text-align: center;
  }
}

/* Portal-themed Free Resources Variants */
.portal-creator .free-resources--enhanced {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fbcfe8 100%);
}

.portal-creator .free-resources--enhanced .free-resources__card {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 20px 50px -12px rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.portal-gig-workers .free-resources--enhanced {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
}

.portal-gig-workers .free-resources--enhanced .free-resources__card {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 20px 50px -12px rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.portal-healthcare .free-resources--enhanced {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
}

.portal-healthcare .free-resources--enhanced .free-resources__card {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 20px 50px -12px rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.portal-sports .free-resources--enhanced {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
}

.portal-sports .free-resources--enhanced .free-resources__card {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 20px 50px -12px rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.portal-small-business .free-resources--enhanced {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
}

.portal-small-business .free-resources--enhanced .free-resources__card {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 20px 50px -12px rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ============================================
   VISUALIZER SECTIONS
   ============================================ */
.portal-visualizer {
  padding: 4rem 0;
  background: #f8fafc;
}

.visualizer-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.visualizer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 150px;
}

.control-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.control-group input,
.control-group select {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}

.control-group input:focus,
.control-group select:focus {
  outline: none;
  border-color: var(--portal-primary, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.visualizer-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.visualizer-cta p {
  margin-bottom: 1rem;
  color: #64748b;
}

/* Career Timeline */
.timeline-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.timeline-bar {
  position: relative;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-weight: 600;
  color: #fff;
  min-width: 100px;
  transition: width 0.5s ease;
}

.timeline-bar--career {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.timeline-bar--contract {
  background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
}

.timeline-bar__label {
  font-size: 0.875rem;
  white-space: nowrap;
}

.timeline-scale {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-top: 1px solid #e2e8f0;
}

.timeline-tick {
  font-size: 0.75rem;
  color: #94a3b8;
}

.timeline-insight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
}

.timeline-insight--warning {
  background: #fef2f2;
  color: #991b1b;
}

.timeline-insight--ok {
  background: #ecfdf5;
  color: #065f46;
}

.timeline-insight__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Recoupment Flow */
.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.flow-box {
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.flow-box--source {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #3b82f6;
}

.flow-box--platform {
  background: #fef3c7;
  border: 2px solid #f59e0b;
}

.flow-box--label {
  background: #fee2e2;
  border: 2px solid #dc2626;
}

.flow-box--artist {
  background: #ecfdf5;
  border: 2px solid #10b981;
}

.flow-box--warning {
  background: #fef2f2;
  border-color: #dc2626;
}

.flow-box__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.flow-box__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.flow-box__note {
  font-size: 0.75rem;
  color: #64748b;
}

.recoup-counter {
  background: #1e293b;
  color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.recoup-counter__label {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.recoup-counter__value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f97316;
}

.recoup-counter__context {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.flow-insight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.flow-insight--warning {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
}

.flow-insight--info {
  background: #f0f9ff;
  border-left: 4px solid #3b82f6;
}

/* Family Share */
.family-share__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn:hover {
  border-color: var(--portal-primary, #3b82f6);
  background: var(--portal-light, #f0f9ff);
}

.share-btn__icon {
  font-size: 1.25rem;
}

.share-preview {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.share-preview__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
}

.share-preview__content {
  background: #fff;
  border-radius: 6px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
}

.share-preview__text {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.share-preview__summary {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.share-preview__findings {
  font-size: 0.875rem;
  color: #475569;
  padding-left: 1.25rem;
  margin: 0;
}

.share-preview__findings li {
  margin-bottom: 0.25rem;
}

.copy-feedback {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1001;
}

.copy-feedback--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ============================================
   A/B TEST VARIANTS
   ============================================ */
.btn--ab-danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

.btn--ab-gradient {
  background: linear-gradient(
    135deg,
    #8b5cf6 0%,
    #6366f1 50%,
    #3b82f6 100%
  ) !important;
}

/* Micro-commitment variant */
.ab-micro-commitment .portal-hero__ctas {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .exit-modal__content {
    padding: 1.5rem;
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .exit-modal__title {
    font-size: 1.375rem;
  }

  .exit-modal__message {
    font-size: 1rem;
  }

  .exit-modal__stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .exit-stat {
    flex: 1 1 40%;
  }

  .micro-commit__options {
    grid-template-columns: 1fr;
  }

  .micro-commit__concerns {
    grid-template-columns: 1fr;
  }

  .trust-authority__badges {
    gap: 0.5rem;
  }

  .trust-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .visualizer-controls {
    flex-direction: column;
  }

  .control-group {
    width: 100%;
  }

  .live-activity-toast {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
    bottom: 1rem;
  }

  .family-share__buttons {
    flex-direction: column;
  }

  .share-btn {
    justify-content: center;
  }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
  .exit-modal {
    padding: 0.5rem;
  }

  .exit-modal__content {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .exit-modal__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .exit-modal__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .exit-modal__message {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
  }

  .exit-modal__stats {
    padding: 0.75rem;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .exit-stat__value {
    font-size: 1.25rem;
  }

  .exit-stat__label {
    font-size: 0.75rem; /* WCAG: Min readable (was 0.6875rem/11px) */
  }

  .exit-modal__btn {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }

  .exit-modal__trust {
    margin-top: 1rem;
    font-size: 0.75rem; /* WCAG: Min readable (was 0.6875rem/11px) */
  }

  .live-activity-toast {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
  }

  .live-activity-toast__icon {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }

  .live-activity-toast__action {
    font-size: 0.875rem;
  }

  .live-activity-toast__detail {
    font-size: 0.75rem; /* WCAG: Min readable (was 0.6875rem/11px) */
  }

  /* Micro-commit on very small screens */
  .micro-commit__card {
    padding: 1.5rem;
    margin: 0 0.75rem;
    border-radius: 12px;
  }

  .micro-commit__title {
    font-size: 1.25rem;
  }

  .micro-commit__option {
    padding: 1rem;
  }

  .micro-commit__option-icon {
    font-size: 1.5rem;
  }

  .micro-commit__upload-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
  }
}

/* ============================================
   PERSONA/STAGE SELECTOR
   ============================================ */
.persona-selector {
  padding: 3rem 0;
  background: linear-gradient(
    135deg,
    var(--portal-light, #f0fdfa) 0%,
    #fff 100%
  );
}

.persona-selector__card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.persona-selector__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  text-align: center;
  margin-bottom: 0.5rem;
}

.persona-selector__subtitle {
  color: #64748b;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.persona-selector__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.persona-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.persona-option:hover {
  border-color: var(--portal-primary, #14b8a6);
  background: var(--portal-light, #f0fdfa);
  transform: translateY(-2px);
}

.persona-option[aria-pressed="true"],
.persona-option.active {
  border-color: var(--portal-primary, #14b8a6);
  background: var(--portal-light, #f0fdfa);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.persona-option__icon {
  font-size: 2.5rem;
}

.persona-option__label {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}

.persona-option__desc {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

.persona-result {
  display: none;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--portal-light, #f0fdfa) 0%,
    #fff 100%
  );
  border-radius: 12px;
  border: 1px solid var(--portal-primary, #14b8a6);
  margin-top: 1.5rem;
  animation: fadeSlideIn 0.4s ease;
}

.persona-result.visible {
  display: block;
}

.persona-result__title {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.persona-result__content {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.persona-result__risks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.persona-result__risk {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   FINANCIAL IMPACT CALCULATOR
   ============================================ */
.impact-calculator {
  padding: 3rem 0;
  background: #f8fafc;
}

.impact-calculator__card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.impact-calculator__header {
  text-align: center;
  margin-bottom: 2rem;
}

.impact-calculator__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.impact-calculator__subtitle {
  color: #64748b;
  font-size: 1rem;
}

.impact-calculator__inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.impact-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.impact-input__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.impact-input__field {
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.impact-input__field:focus {
  outline: none;
  border-color: var(--portal-primary, #14b8a6);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.impact-result {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 16px;
  padding: 2rem;
  color: #fff;
  text-align: center;
}

.impact-result__label {
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.impact-result__value {
  font-size: 3rem;
  font-weight: 800;
  color: #f87171;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.impact-result__value.positive {
  color: #4ade80;
}

.impact-result__context {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.impact-result__breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-stat {
  text-align: center;
}

.impact-stat__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.impact-stat__label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   URGENCY/DEADLINE TIMER
   ============================================ */
.deadline-timer {
  padding: 2rem 0;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.deadline-timer__card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  border: 2px solid #fecaca;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.1);
}

.deadline-timer__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.deadline-timer__icon {
  font-size: 2.5rem;
}

.deadline-timer__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #991b1b;
}

.deadline-timer__subtitle {
  font-size: 0.9rem;
  color: #b91c1c;
}

.deadline-timer__display {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.deadline-unit {
  text-align: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-radius: 12px;
  min-width: 80px;
}

.deadline-unit__value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.deadline-unit__label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.deadline-timer__input {
  margin-bottom: 1.5rem;
}

.deadline-timer__input label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.deadline-timer__input input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
}

.deadline-timer__cta {
  text-align: center;
}

.deadline-timer__cta .btn {
  width: 100%;
}

/* ============================================
   TESTIMONIAL WITH IMPACT
   ============================================ */
.testimonial-impact {
  padding: 3rem 0;
  background: #fff;
}

.testimonial-impact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 6rem;
  color: var(--portal-primary, #14b8a6);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card__impact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.testimonial-card__impact--warning {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #991b1b;
}

.testimonial-card__quote {
  color: #334155;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--portal-primary, #14b8a6) 0%,
    #0d9488 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-card__info {
  flex: 1;
}

.testimonial-card__name {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: #64748b;
}

.testimonial-card__verified {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: #059669;
  margin-top: 0.25rem;
}

/* ============================================
   FAMILY/SUPPORT CTA
   ============================================ */
.family-cta {
  padding: 3rem 0;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.family-cta__card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.family-cta__visual {
  text-align: center;
}

.family-cta__icon {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.family-cta__visual-text {
  font-size: 0.9rem;
  color: #7c3aed;
  font-weight: 600;
}

.family-cta__content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.family-cta__content p {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.family-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.family-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.family-cta__btn--primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
}

.family-cta__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.family-cta__btn--secondary {
  background: #f3e8ff;
  color: #7c3aed;
}

.family-cta__btn--secondary:hover {
  background: #ede9fe;
}

@media (max-width: 640px) {
  .family-cta__card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .family-cta__content {
    order: -1;
  }
}

/* ============================================
   PLATFORM/SPECIALTY SELECTOR
   ============================================ */
.platform-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.platform-btn:hover {
  border-color: var(--portal-primary, #14b8a6);
  color: var(--portal-primary, #14b8a6);
}

.platform-btn[aria-pressed="true"],
.platform-btn.active {
  background: var(--portal-primary, #14b8a6);
  border-color: var(--portal-primary, #14b8a6);
  color: #fff;
}

.platform-btn__icon {
  font-size: 1.25rem;
}

/* ============================================
   STAT HIGHLIGHT CARDS
   ============================================ */
.stat-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-highlight {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.stat-highlight__value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--portal-primary, #14b8a6);
  line-height: 1;
}

.stat-highlight__value--danger {
  color: #dc2626;
}

.stat-highlight__value--warning {
  color: #f59e0b;
}

.stat-highlight__label {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.stat-highlight__context {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* ============================================
   INDUSTRY BENCHMARK BAR
   ============================================ */
.benchmark-bar {
  margin: 1.5rem 0;
}

.benchmark-bar__label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

.benchmark-bar__track {
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.benchmark-bar__fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
}

.benchmark-bar__fill--good {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.benchmark-bar__fill--warning {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.benchmark-bar__fill--danger {
  background: linear-gradient(90deg, #dc2626 0%, #f87171 100%);
}

.benchmark-bar__marker {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 20px;
  background: #1e293b;
  border-radius: 2px;
  transform: translateX(-50%);
}

.benchmark-bar__marker::after {
  content: attr(data-label);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #1e293b;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================
   CHECKLIST DOWNLOAD
   ============================================ */
.checklist-download {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px dashed #10b981;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.checklist-download__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.checklist-download__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 0.5rem;
}

.checklist-download__desc {
  color: #047857;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.checklist-download__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #10b981;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.checklist-download__btn:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* ============================================
   SPEED COMPARISON BADGE
   Shows "60 seconds vs 3-5 days" differentiator
   ============================================ */
.speed-compare {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  margin: 1.5rem 0;
}

.speed-compare__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.speed-compare__value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.speed-compare__value--highlight {
  color: #22c55e;
}

.speed-compare__value--muted {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
  font-size: 1rem;
}

.speed-compare__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

.speed-compare__vs {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  padding: 0 0.5rem;
}

/* ============================================
   CLAUSE TRANSLATOR (Hover to reveal)
   ============================================ */
.clause-translator {
  position: relative;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  margin: 1rem 0;
  cursor: help;
}

.clause-translator__legal {
  font-family: "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.clause-translator__plain {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.clause-translator__plain-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.5;
}

.clause-translator__hint {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.7rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.clause-translator:hover .clause-translator__legal,
.clause-translator:focus-within .clause-translator__legal {
  opacity: 0.1;
}

.clause-translator:hover .clause-translator__plain,
.clause-translator:focus-within .clause-translator__plain {
  opacity: 1;
}

/* ============================================
   BEFORE/AFTER NEGOTIATION COMPARISON
   ============================================ */
.negotiation-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  margin: 2rem 0;
}

.negotiation-compare__card {
  padding: 1.5rem;
  border-radius: 12px;
  position: relative;
}

.negotiation-compare__card--before {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #fecaca;
}

.negotiation-compare__card--after {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #bbf7d0;
}

.negotiation-compare__badge {
  position: absolute;
  top: -0.75rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.negotiation-compare__card--before .negotiation-compare__badge {
  background: #dc2626;
  color: #fff;
}

.negotiation-compare__card--after .negotiation-compare__badge {
  background: #16a34a;
  color: #fff;
}

.negotiation-compare__title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.negotiation-compare__clause {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
}

.negotiation-compare__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #94a3b8;
}

.negotiation-compare__tip {
  grid-column: 1 / -1;
  padding: 1rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #92400e;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.negotiation-compare__tip-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .negotiation-compare {
    grid-template-columns: 1fr;
  }

  .negotiation-compare__arrow {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }
}

/* ============================================
   CONTRACT RISK SCORECARD (Pre-Quiz)
   ============================================ */
.risk-scorecard {
  padding: 2.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  margin: 2rem 0;
}

.risk-scorecard__header {
  text-align: center;
  margin-bottom: 2rem;
}

.risk-scorecard__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.risk-scorecard__subtitle {
  font-size: 1rem;
  color: #64748b;
}

.risk-scorecard__questions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.risk-scorecard__question {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.risk-scorecard__question:hover {
  border-color: var(--portal-primary, #6366f1);
  transform: translateX(4px);
}

.risk-scorecard__question[aria-checked="true"] {
  border-color: var(--portal-primary, #6366f1);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(99, 102, 241, 0.1) 100%
  );
}

.risk-scorecard__checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.risk-scorecard__question[aria-checked="true"] .risk-scorecard__checkbox {
  background: var(--portal-primary, #6366f1);
  border-color: var(--portal-primary, #6366f1);
  color: #fff;
}

.risk-scorecard__question-text {
  font-size: 0.95rem;
  color: #334155;
  flex: 1;
}

.risk-scorecard__result {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 12px;
  color: #fff;
}

.risk-scorecard__score {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.risk-scorecard__score--low {
  color: #22c55e;
}
.risk-scorecard__score--medium {
  color: #f59e0b;
}
.risk-scorecard__score--high {
  color: #ef4444;
}

.risk-scorecard__verdict {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.risk-scorecard__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: #1e293b;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.risk-scorecard__cta:hover {
  transform: translateY(-2px);
}

/* ============================================
   PERSONA-SPECIFIC EXIT MODALS
   ============================================ */
.exit-modal--seniors .exit-modal__content {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
}

.exit-modal--healthcare .exit-modal__content {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}

.exit-modal--creator .exit-modal__content {
  background: linear-gradient(135deg, #be185d 0%, #9d174d 100%);
}

.exit-modal--sports .exit-modal__content {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
}

.exit-modal--entertainment .exit-modal__content {
  background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
}

.exit-modal--franchise .exit-modal__content {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.exit-modal--realty .exit-modal__content {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
}

.exit-modal--gig .exit-modal__content {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}

.exit-modal--auto .exit-modal__content {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* ============================================
   FORENSIC INTERACTIVITY ENGINE
   ============================================ */

/* Forensic Terminal Styling */
.forensic-terminal {
  background: linear-gradient(180deg, #0a0a0f 0%, #111118 100%);
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  overflow: hidden;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.1),
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.forensic-terminal__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #1a1a24 0%, #12121a 100%);
  border-bottom: 1px solid #2a2a3a;
}

.forensic-terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.forensic-terminal__dot--red {
  background: #ff5f56;
}
.forensic-terminal__dot--yellow {
  background: #ffbd2e;
}
.forensic-terminal__dot--green {
  background: #27ca40;
}

.forensic-terminal__title {
  margin-left: auto;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.forensic-terminal__body {
  padding: 1.25rem;
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a3a4a #1a1a24;
}

.forensic-terminal__body::-webkit-scrollbar {
  width: 6px;
}

.forensic-terminal__body::-webkit-scrollbar-track {
  background: #1a1a24;
}

.forensic-terminal__body::-webkit-scrollbar-thumb {
  background: #3a3a4a;
  border-radius: 3px;
}

.forensic-terminal__line {
  font-size: 0.8125rem;
  line-height: 1.8;
  white-space: nowrap;
  animation: terminalLineIn 0.3s ease;
}

.forensic-terminal__line--system {
  color: #8b8b9e;
}

.forensic-terminal__line--info {
  color: #60a5fa;
}

.forensic-terminal__line--warning {
  color: #fbbf24;
}

.forensic-terminal__line--critical {
  color: #f87171;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.3);
}

.forensic-terminal__line--success {
  color: #34d399;
  font-weight: 600;
}

@keyframes terminalLineIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Typing cursor blink */
.forensic-terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: #60a5fa;
  animation: cursorBlink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes cursorBlink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Clause X-Ray Hover Effect */
.clause-xray,
[data-clause-xray] {
  position: relative;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  margin: 1rem 0;
  cursor: help;
  transition: all 0.3s ease;
}

.clause-xray:hover,
.clause-xray:focus-within {
  box-shadow: 0 0 0 2px var(--portal-primary, #6366f1);
}

.clause-xray__legal {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.clause-xray__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  text-align: center;
}

.clause-xray__overlay--critical {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.95) 0%,
    rgba(153, 27, 27, 0.95) 100%
  );
}

.clause-xray__overlay--warning {
  background: linear-gradient(
    135deg,
    rgba(217, 119, 6, 0.95) 0%,
    rgba(146, 64, 14, 0.95) 100%
  );
}

.clause-xray__overlay--info {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.95) 0%,
    rgba(29, 78, 216, 0.95) 100%
  );
}

.clause-xray:hover .clause-xray__legal,
.clause-xray:focus-within .clause-xray__legal {
  opacity: 0.1;
}

.clause-xray:hover .clause-xray__overlay,
.clause-xray:focus-within .clause-xray__overlay {
  opacity: 1;
}

.clause-xray__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.clause-xray__translation {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0;
}

.clause-xray__hint {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.7rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: opacity 0.3s ease;
}

.clause-xray:hover .clause-xray__hint,
.clause-xray:focus-within .clause-xray__hint {
  opacity: 0;
}

/* Dynamic Risk Score Piling */
[data-risk-pile] {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

[data-risk-value] {
  font-size: 3.5rem;
  font-weight: 800;
  color: #f87171;
  line-height: 1;
  transition: all 0.1s ease;
}

[data-risk-value].risk-piling {
  animation: riskPulse 0.3s ease infinite;
}

[data-risk-value].risk-piled {
  text-shadow: 0 0 40px rgba(248, 113, 113, 0.5);
}

@keyframes riskPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

[data-risk-breakdown] {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.risk-pile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.risk-pile-item--visible {
  opacity: 1;
  transform: translateY(0);
}

.risk-pile-item--critical {
  background: rgba(248, 113, 113, 0.15);
  border-left: 3px solid #f87171;
}

.risk-pile-item--warning {
  background: rgba(251, 191, 36, 0.15);
  border-left: 3px solid #fbbf24;
}

.risk-pile-item--info {
  background: rgba(96, 165, 250, 0.15);
  border-left: 3px solid #60a5fa;
}

.risk-pile-item__label {
  color: #cbd5e1;
  font-size: 0.875rem;
}

.risk-pile-item__value {
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Security Heartbeat */
.security-heartbeat,
[data-security-heartbeat] {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 100px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.75rem;
  color: #34d399;
  letter-spacing: 0.05em;
}

.security-heartbeat__pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: securityPulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
}

@keyframes securityPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.security-heartbeat__text {
  font-weight: 600;
}

.security-heartbeat__encryption {
  color: #6ee7b7;
  opacity: 0.8;
}

/* Forensic Results */
.forensic-reveal {
  animation: forensicReveal 0.5s ease;
}

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

.forensic-results__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 1rem;
}

.forensic-results__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #dc2626;
  color: #fff;
  border-radius: 50%;
  font-size: 0.875rem;
}

.forensic-result {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  animation: forensicItemIn 0.4s ease backwards;
}

@keyframes forensicItemIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.forensic-result--critical {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left: 4px solid #dc2626;
}

.forensic-result--warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left: 4px solid #f59e0b;
}

.forensic-result--info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #3b82f6;
}

.forensic-result--clear {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-left: 4px solid #10b981;
}

.forensic-result__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.forensic-result__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #334155;
}

.forensic-results__cta {
  margin-top: 1.5rem;
  width: 100%;
  text-align: center;
}

/* Shake animation for input validation */
.shake {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

/* Red Flag Pulse Effect */
.red-flag-pulse {
  animation: redFlagPulse 2s ease-in-out infinite;
}

@keyframes redFlagPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(220, 38, 38, 0);
  }
}

/* Forensic Engine Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .clause-xray,
  [data-clause-xray] {
    background: #1e293b;
  }

  .clause-xray__legal {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
  }

  .forensic-result--critical {
    background: linear-gradient(
      135deg,
      rgba(220, 38, 38, 0.2) 0%,
      rgba(153, 27, 27, 0.2) 100%
    );
  }

  .forensic-result--warning {
    background: linear-gradient(
      135deg,
      rgba(245, 158, 11, 0.2) 0%,
      rgba(217, 119, 6, 0.2) 100%
    );
  }

  .forensic-result--info {
    background: linear-gradient(
      135deg,
      rgba(59, 130, 246, 0.2) 0%,
      rgba(29, 78, 216, 0.2) 100%
    );
  }

  .forensic-result--clear {
    background: linear-gradient(
      135deg,
      rgba(16, 185, 129, 0.2) 0%,
      rgba(5, 150, 105, 0.2) 100%
    );
  }

  .forensic-result__text {
    color: #e2e8f0;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .exit-modal__backdrop,
  .exit-modal__content,
  .micro-commit__step--active,
  .live-activity-toast,
  .timeline-bar,
  .copy-feedback,
  .persona-result,
  .impact-result,
  .clause-translator__legal,
  .clause-translator__plain,
  .risk-scorecard__question {
    animation: none;
    transition: none;
  }

  .live-activity-ticker__track {
    animation: none;
  }

  .live-activity-ticker__pulse {
    animation: none;
  }

  /* Forensic Engine - Reduced Motion */
  .forensic-terminal__line,
  .forensic-reveal,
  .forensic-result,
  .risk-pile-item,
  .clause-xray__overlay,
  .clause-xray__legal,
  .security-heartbeat__pulse,
  .shake,
  .red-flag-pulse,
  [data-risk-value].risk-piling {
    animation: none;
    transition: none;
  }

  .clause-xray__overlay {
    transition: opacity 0s;
  }

  .clause-xray__legal {
    transition: opacity 0s;
  }
}

/* ===========================================
   DARK THEME OVERRIDES
   =========================================== */
.dark-theme .micro-commit__card,
.dark-theme .free-resources__card,
.dark-theme .visualizer-card,
.dark-theme .share-preview__content,
.dark-theme .persona-selector__card,
.dark-theme .impact-calculator__card,
.dark-theme .deadline-timer__card,
.dark-theme .trust-indicator__card,
.dark-theme .integration-card,
.dark-theme .testimonial-slider__card,
.dark-theme .live-demo__output,
.dark-theme .pricing-comparison__card,
.dark-theme .security-feature__card,
.dark-theme .newsletter-signup__card,
.dark-theme .quick-analysis__card,
.dark-theme .faq-accordion__item,
.dark-theme .social-proof__card {
  background: var(--surface-card, #161b22);
  border-color: var(--border, #30363d);
}

/* Inputs in dark theme */
.dark-theme .newsletter-signup input,
.dark-theme .quick-analysis textarea,
.dark-theme .impact-calculator input,
.dark-theme .deadline-timer input {
  background: var(--surface-elevated, #21262d);
  border-color: var(--border, #30363d);
  color: var(--text, #f0f6fc);
}

/* Dropdown/select backgrounds */
.dark-theme select,
.dark-theme .filter-dropdown {
  background: var(--surface-card, #161b22);
  border-color: var(--border, #30363d);
  color: var(--text, #f0f6fc);
}

/* Text colors */
.dark-theme .micro-commit__card h4,
.dark-theme .free-resources__card h3,
.dark-theme .visualizer-card h3,
.dark-theme .persona-selector__card h4 {
  color: var(--text-primary, #f0f6fc);
}

.dark-theme .micro-commit__card p,
.dark-theme .free-resources__card p,
.dark-theme .visualizer-card p,
.dark-theme .persona-selector__card p {
  color: var(--text-secondary, #c9d1d9);
}
