/* Sample Report Component Styles */

.sample-report {
  background: linear-gradient(
    135deg,
    var(--portal-light, #f0f9ff) 0%,
    #ffffff 100%
  );
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.sample-report__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.sample-report__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--portal-primary, #2563eb);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sample-report__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.sample-report__subtitle {
  color: #6b7280;
  font-size: 1rem;
}

/* Risk Score Card */
.sample-report__score-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.score-metric {
  background: white;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  min-width: 140px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.score-metric--risk {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fecaca;
}

.score-metric--extreme {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  color: white;
}

.score-metric--high {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: white;
}

.score-metric--medium {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: white;
}

.score-metric--low {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: white;
}

.score-metric__value {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.score-metric--extreme .score-metric__value,
.score-metric--high .score-metric__value,
.score-metric--medium .score-metric__value,
.score-metric--low .score-metric__value {
  color: white;
}

.score-metric__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* Findings Grid */
.sample-report__findings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.finding-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.finding-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.finding-card--critical {
  border-left-color: #7f1d1d;
}

.finding-card--high {
  border-left-color: #dc2626;
}

.finding-card--medium {
  border-left-color: #f97316;
}

.finding-card--low {
  border-left-color: #22c55e;
}

.finding-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.finding-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  flex: 1;
}

.finding-card__severity {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.finding-card__severity--critical {
  background: #7f1d1d;
  color: white;
}

.finding-card__severity--high {
  background: #dc2626;
  color: white;
}

.finding-card__severity--medium {
  background: #f97316;
  color: white;
}

.finding-card__severity--low {
  background: #22c55e;
  color: white;
}

.finding-card__dollar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #dc2626;
  margin-bottom: 0.75rem;
}

.finding-card__dollar svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.finding-card__explanation {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

/* Action Items */
.sample-report__actions {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
}

.sample-report__actions-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sample-report__actions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sample-report__actions-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9375rem;
  color: #374151;
}

.sample-report__actions-list li:last-child {
  border-bottom: none;
}

.sample-report__actions-list li::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--portal-primary, #2563eb);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

/* CTA Section */
.sample-report__cta {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 2px dashed #e5e7eb;
}

.sample-report__cta-text {
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 1rem;
}

.sample-report__cta-text strong {
  color: #1f2937;
}

.sample-report__cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}

.sample-report__cta .btn--primary {
  background: var(--portal-primary, #2563eb);
  color: white;
}

.sample-report__cta .btn--primary:hover {
  background: var(--portal-primary-dark, #1d4ed8);
  transform: translateY(-1px);
}

/* AI Badge Animation */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.ai-badge__dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

/* Analysis Time */
.sample-report__analysis-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .sample-report {
    padding: 2rem 1.25rem;
    margin: 1rem;
    border-radius: 12px;
  }

  .sample-report__title {
    font-size: 1.375rem;
  }

  .sample-report__score-card {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .score-metric {
    min-width: 100px;
    padding: 1rem;
    flex: 1 1 calc(50% - 0.5rem);
  }

  .score-metric__value {
    font-size: 1.5rem;
  }

  .sample-report__findings {
    grid-template-columns: 1fr;
  }

  .finding-card {
    padding: 1.25rem;
  }

  .sample-report__cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .sample-report__cta-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .sample-report {
    padding: 1.5rem 1rem;
    margin: 0.75rem;
  }

  .sample-report__title {
    font-size: 1.25rem;
  }

  .sample-report__subtitle {
    font-size: 0.9375rem;
  }

  .sample-report__score-card {
    gap: 0.5rem;
  }

  .score-metric {
    min-width: 80px;
    padding: 0.75rem;
    flex: 1 1 calc(50% - 0.375rem);
  }

  .score-metric__value {
    font-size: 1.25rem;
  }

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

  .finding-card {
    padding: 1rem;
  }

  .finding-card__title {
    font-size: 1rem;
  }

  .finding-card__text {
    font-size: 0.875rem;
  }

  .sample-report__actions-title {
    font-size: 1.125rem;
  }

  .sample-report__actions-list li {
    font-size: 0.875rem;
  }
}

/* Industry-specific color overrides */
.portal-healthcare .sample-report__badge,
.portal-healthcare .sample-report__cta .btn--primary {
  background: #10b981;
}

.portal-healthcare .sample-report__actions-list li::before {
  background: #10b981;
}

.portal-realty .sample-report__badge,
.portal-realty .sample-report__cta .btn--primary {
  background: #3b82f6;
}

.portal-realty .sample-report__actions-list li::before {
  background: #3b82f6;
}

.portal-auto .sample-report__badge,
.portal-auto .sample-report__cta .btn--primary {
  background: #6366f1;
}

.portal-auto .sample-report__actions-list li::before {
  background: #6366f1;
}

.portal-gig-workers .sample-report__badge,
.portal-gig-workers .sample-report__cta .btn--primary {
  background: #f59e0b;
}

.portal-gig-workers .sample-report__actions-list li::before {
  background: #f59e0b;
}

.portal-seniors .sample-report__badge,
.portal-seniors .sample-report__cta .btn--primary {
  background: #8b5cf6;
}

.portal-seniors .sample-report__actions-list li::before {
  background: #8b5cf6;
}

.portal-entertainment .sample-report__badge,
.portal-entertainment .sample-report__cta .btn--primary {
  background: #ec4899;
}

.portal-entertainment .sample-report__actions-list li::before {
  background: #ec4899;
}

.portal-creator .sample-report__badge,
.portal-creator .sample-report__cta .btn--primary {
  background: #14b8a6;
}

.portal-creator .sample-report__actions-list li::before {
  background: #14b8a6;
}

.portal-franchise .sample-report__badge,
.portal-franchise .sample-report__cta .btn--primary {
  background: #f97316;
}

.portal-franchise .sample-report__actions-list li::before {
  background: #f97316;
}

.portal-sports .sample-report__badge,
.portal-sports .sample-report__cta .btn--primary {
  background: #ef4444;
}

.portal-sports .sample-report__actions-list li::before {
  background: #ef4444;
}

.portal-small-business .sample-report__badge,
.portal-small-business .sample-report__cta .btn--primary {
  background: #0ea5e9;
}

.portal-small-business .sample-report__actions-list li::before {
  background: #0ea5e9;
}

/* ============================================================
   Enhanced Sample Report - Interactive Elements (2026)
   ============================================================ */

/* Score Ring Animation */
.score-metric__ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 0.75rem;
}

.score-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring__bg {
  stroke: #e5e7eb;
}

.score-ring__fill {
  stroke: var(--portal-primary, #2563eb);
  transition: stroke-dashoffset 1.5s ease-out;
}

.score-metric--high .score-ring__fill {
  stroke: #dc2626;
}

.score-metric--medium .score-ring__fill {
  stroke: #f97316;
}

.score-metric__ring .score-metric__value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.75rem;
}

.score-metric__level {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.level--high {
  color: #dc2626;
}

.level--medium {
  color: #f97316;
}

/* Score Card Layout */
.score-card__main {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.score-card__stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.score-metric--compact {
  min-width: 100px;
  padding: 1rem;
}

.score-metric--primary {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Interactive Finding Cards */
.finding-card[data-expandable] {
  cursor: pointer;
}

.finding-card__header {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.finding-card__severity-indicator {
  width: 4px;
  height: 40px;
  border-radius: 2px;
  flex-shrink: 0;
}

.severity--critical {
  background: #7f1d1d;
}

.severity--high {
  background: #dc2626;
}

.severity--medium {
  background: #f97316;
}

.severity--low {
  background: #22c55e;
}

.finding-card__title-group {
  flex: 1;
}

.finding-card__title-group h4 {
  margin: 0 0 0.25rem;
}

.finding-card__expand-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.finding-card__expand-icon::before {
  content: "+";
  display: block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-size: 1.25rem;
  color: #6b7280;
}

.finding-card__header[aria-expanded="true"] .finding-card__expand-icon {
  transform: rotate(45deg);
}

.finding-card__content {
  padding-top: 1rem;
  padding-left: 1.5rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
}

.finding-card__clause {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}

.finding-card__clause blockquote {
  margin: 0.5rem 0 0;
  font-style: italic;
  font-size: 0.875rem;
  color: #78350f;
}

.finding-card__recommendation {
  background: #ecfdf5;
  border-left: 3px solid #10b981;
  padding: 1rem;
  border-radius: 0 8px 8px 0;
}

.clause-label,
.recommendation-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

/* Interactive Action Items */
.action-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.action-item__checkbox {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.action-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 24px;
  height: 24px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.checkbox-custom::after {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='white' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s;
}

.action-checkbox:checked + .checkbox-custom {
  background: var(--portal-primary, #2563eb);
  border-color: var(--portal-primary, #2563eb);
}

.action-checkbox:checked + .checkbox-custom::after {
  opacity: 1;
  transform: scale(1);
}

.action-checkbox:focus-visible + .checkbox-custom {
  outline: 3px solid var(--portal-primary, #2563eb);
  outline-offset: 2px;
}

.action-text {
  flex: 1;
  transition: all 0.2s;
}

.action-checkbox:checked ~ .action-text {
  text-decoration: line-through;
  opacity: 0.6;
}

.action-priority {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.action-priority--0 {
  background: #dc2626;
}
.action-priority--1 {
  background: #f97316;
}
.action-priority--2 {
  background: #eab308;
}
.action-priority--3 {
  background: #22c55e;
}

/* Progress Bar */
.actions-progress {
  margin-top: 1rem;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.actions-progress__bar {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.actions-progress__bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--portal-primary, #2563eb), #22c55e);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.actions-progress__text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

/* State-Specific Insights */
.sample-report__state-insights {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #bfdbfe;
}

.state-insights__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.state-insights__header h4 {
  margin: 0;
  font-size: 1.125rem;
  color: #1e40af;
}

.state-icon {
  font-size: 1.5rem;
}

.state-insights__content {
  display: grid;
  gap: 1rem;
}

.state-insight {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.state-insight__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

.state-insight__badge.protection {
  background: #dcfce7;
  color: #166534;
}

.state-insight__badge.warning {
  background: #fef3c7;
  color: #92400e;
}

.state-insight__badge.info {
  background: #dbeafe;
  color: #1e40af;
}

/* CTA Buttons Group */
.sample-report__cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Meta Info */
.sample-report__meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.sample-report__contract-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Findings Title */
.sample-report__findings-title {
  grid-column: 1 / -1;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

/* ============================================================
   Toxicity Meter (v13.0+)
   Shows WTF/NOPE/RUDE counts for contract language
   ============================================================ */
.sample-report__toxicity {
  background: linear-gradient(135deg, #1e1e2e 0%, #0f0f1a 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #334155;
}

.toxicity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.toxicity-header h4 {
  margin: 0;
  color: white;
  font-size: 1rem;
  font-weight: 600;
}

.toxicity-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.toxicity-score--high {
  color: #ef4444;
}
.toxicity-score--medium {
  color: #f97316;
}
.toxicity-score--low {
  color: #22c55e;
}

.toxicity-meters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.toxicity-meter {
  flex: 1;
  min-width: 100px;
  background: #0f172a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  text-align: center;
}

.toxicity-meter__icon {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.toxicity-meter__count {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.toxicity-meter__label {
  font-size: 0.75rem; /* WCAG: Min readable (was 0.6875rem/11px) */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

/* ============================================================
   Fairness Signal (Traffic Light Indicator)
   ============================================================ */
.sample-report__fairness {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}

.fairness-signal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.fairness-signal--green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.fairness-signal--yellow {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
}

.fairness-signal--red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.fairness-content h4 {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
}

.fairness-content p {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
}

/* ============================================================
   Money Timeline (Payment & Deadlines)
   ============================================================ */
.sample-report__money-timeline {
  background: #fffbeb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #fcd34d;
}

.money-timeline__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.money-timeline__header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #92400e;
}

.money-timeline__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.money-item {
  background: white;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid #fde68a;
}

.money-item__label {
  font-size: 0.75rem; /* WCAG: Min readable (was 0.6875rem/11px) */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #92400e;
  margin-bottom: 0.25rem;
}

.money-item__value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
}

.money-item--warning .money-item__value {
  color: #dc2626;
}

/* ============================================================
   State Protections Section Styles
   ============================================================ */

.portal-state-protections,
.portal-california-protections {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  padding: 4rem 0;
}

.state-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.state-badge__icon {
  font-size: 1.25rem;
}

.state-badge__new {
  background: #22c55e;
  color: white;
  font-size: 0.75rem; /* WCAG: Min readable (was 0.625rem/10px) */
  font-weight: 800;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  margin-left: 0.5rem;
}

/* California Bear Icon */
.ca-bear-icon::before {
  content: "🐻";
  font-size: 1.25rem;
}

.california-header {
  text-align: center;
  margin-bottom: 2rem;
}

.california-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: #fbbf24;
  padding: 0.5rem 1rem;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Protection Cards Grid */
.state-protections__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.protection-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.protection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.protection-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.protection-card__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.protection-card__title-group {
  flex: 1;
}

/* WCAG 2.2 AA: Explicit dark color to override h3 inheritance */
h3.protection-card__title,
.protection-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937 !important; /* Dark gray - 12.6:1 contrast on white */
  margin: 0 0 0.25rem;
}

.protection-card__statute {
  font-size: 0.75rem;
  color: #6b7280;
  font-family: monospace;
}

.protection-card__description {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.protection-card__points {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.protection-card__points li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
}

.protection-card__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: bold;
}

.protection-card__damages {
  background: #dcfce7;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #166534;
  margin-top: 1rem;
}

.effective-date-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

/* California Tabs */
.california-protections__tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.ca-tab {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 24px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.ca-tab:hover {
  border-color: #1e40af;
  color: #1e40af;
}

.ca-tab--active,
.ca-tab[aria-selected="true"] {
  background: #1e40af;
  border-color: #1e40af;
  color: white;
}

.ca-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.ca-panel--active,
.ca-panel:not([hidden]) {
  display: block;
}

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

/* Protection List */
.ca-protection-list {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.ca-protection-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
}

.ca-protection-item--new {
  border: 2px solid #22c55e;
}

.ca-protection-item__badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  font-size: 0.75rem; /* WCAG: Min readable (was 0.625rem/10px) */
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
}

.ca-protection-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem;
}

.ca-protection-item p {
  font-size: 0.9375rem;
  color: #4b5563;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.ca-protection-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ca-protection-item li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  color: #374151;
}

.ca-protection-item li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1e40af;
  font-weight: bold;
}

/* Footer and CTA */
.california-protections__footer,
.state-protections__cta {
  text-align: center;
  margin-top: 2.5rem;
}

.ca-disclaimer,
.state-protections__disclaimer {
  font-size: 0.8125rem;
  color: #6b7280;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .state-protections__grid {
    grid-template-columns: 1fr;
  }

  .california-protections__tabs {
    flex-direction: column;
    align-items: center;
  }

  .ca-tab {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* ============================================================
   Live Demo Section
   ============================================================ */
.portal-live-demo {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 4rem 0;
}

.portal-live-demo h2 {
  color: white;
}

.portal-live-demo p {
  color: #94a3b8;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  padding: 0.5rem 1rem;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.demo-badge__pulse {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

.live-demo__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 968px) {
  .live-demo__container {
    grid-template-columns: 1fr;
  }
}

.live-demo__input-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-textarea-wrapper {
  position: relative;
}

.demo-textarea {
  width: 100%;
  min-height: 180px;
  padding: 1rem;
  border: 2px solid #334155;
  border-radius: 12px;
  background: #1e293b;
  color: white;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s;
}

.demo-textarea:focus {
  outline: none;
  border-color: var(--portal-primary, #3b82f6);
}

.demo-textarea::placeholder {
  color: #94a3b8; /* WCAG 2.2 AA: 5.4:1 on dark bg - improved for readability */
}

.demo-textarea-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.demo-example-btn {
  background: #334155;
  border: 1px solid #475569;
  color: #94a3b8;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-example-btn:hover {
  background: #475569;
  color: white;
}

.demo-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.demo-hint::before {
  content: "🔒";
  font-size: 0.875rem;
}

.demo-analyze-btn {
  width: 100%;
}

/* Demo Result Panel */
.live-demo__result-panel {
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 16px;
  min-height: 300px;
  overflow: hidden;
}

.demo-result {
  padding: 1.5rem;
  height: 100%;
}

.demo-result--empty .demo-result__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 250px;
  color: #64748b;
  text-align: center;
}

.placeholder-icon::before {
  content: "📄";
  font-size: 3rem;
  opacity: 0.5;
  display: block;
  margin-bottom: 1rem;
}

.demo-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 250px;
}

.demo-loading__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #334155;
  border-top-color: var(--portal-primary, #3b82f6);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.demo-result__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #334155;
  margin-bottom: 1rem;
}

.demo-risk-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  min-width: 100px;
}

.demo-risk-badge--medium {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.demo-risk-badge--low {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.demo-risk-score {
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

.demo-risk-label {
  font-size: 0.75rem; /* WCAG: Min readable (was 0.625rem/10px) */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
}

.demo-quick-stats {
  display: flex;
  gap: 1.5rem;
}

.demo-stat {
  display: flex;
  flex-direction: column;
}

.demo-stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.demo-stat__label {
  font-size: 0.75rem;
  color: #94a3b8;
}

.demo-findings {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.demo-finding {
  background: #0f172a;
  border-left: 3px solid #dc2626;
  padding: 1rem;
  border-radius: 0 8px 8px 0;
}

.demo-finding--medium {
  border-left-color: #f97316;
}

.demo-finding__title {
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.demo-finding__desc {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.4;
}

.demo-result__footer {
  background: #0f172a;
  margin: -1.5rem;
  margin-top: 0;
  padding: 1.5rem;
  border-radius: 0 0 14px 14px;
}

.demo-result__teaser {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.demo-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem;
}

.demo-features-list li {
  font-size: 0.75rem;
  color: #64748b;
  padding-left: 1.25rem;
  position: relative;
}

.demo-features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
}

/* ============================================================
   Floating Mobile CTA
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    var(--portal-primary, #2563eb),
    var(--portal-primary-dark, #1d4ed8)
  );
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.floating-cta.visible {
  transform: translateY(0);
}

.floating-cta__content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.floating-cta__text {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.floating-cta__btn {
  background: white;
  color: var(--portal-primary, #2563eb);
  white-space: nowrap;
}

.floating-cta__dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.5rem;
}

@media (min-width: 769px) {
  .floating-cta {
    display: none;
  }
}

/* ============================================================
   Social Proof Toast
   ============================================================ */
.social-proof-toast {
  position: fixed;
  bottom: 80px;
  left: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 320px;
  z-index: 999;
  transform: translateX(-120%);
  transition: transform 0.4s ease;
}

.social-proof-toast.visible {
  transform: translateX(0);
}

.social-proof-toast__icon::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  font-weight: bold;
}

.social-proof-toast__message {
  font-size: 0.875rem;
  color: #1f2937;
  margin: 0;
  font-weight: 500;
}

.social-proof-toast__time {
  font-size: 0.75rem;
  color: #6b7280;
}

@media (max-width: 480px) {
  .social-proof-toast {
    left: 0.5rem;
    right: 0.5rem;
    max-width: none;
    bottom: 100px;
  }
}

/* ============================================================
   Animated Statistics Counters
   ============================================================ */
.stat-counter[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.stat-counter[data-animate].counted {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   State Selector
   ============================================================ */
.state-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.state-selector__label {
  font-weight: 600;
  color: #374151;
}

.state-selector__dropdown {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E")
    right 0.75rem center / 1.25rem no-repeat;
  appearance: none;
  cursor: pointer;
  min-width: 200px;
  transition: border-color 0.2s;
}

.state-selector__dropdown:focus {
  outline: none;
  border-color: var(--portal-primary, #2563eb);
}

.state-selector__note {
  font-size: 0.75rem;
  color: #6b7280;
}

/* State-specific content visibility */
[data-state-content] {
  display: none;
}

[data-state-content].active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ============================================================
   SAVINGS CALCULATOR
   ============================================================ */
.savings-calculator {
  background: linear-gradient(
    135deg,
    var(--portal-light, #f0f9ff) 0%,
    #ffffff 100%
  );
  padding: 4rem 1.5rem;
}

.calculator-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--portal-primary, #2563eb);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.calculator-badge__icon::before {
  content: "\1F4B0";
}

.calculator__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 768px) {
  .calculator__wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.calculator__input-section {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.calculator__label {
  display: block;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.calculator__label-hint {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.calculator__input-group {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  margin-top: 0.5rem;
}

.calculator__input-group:focus-within {
  border-color: var(--portal-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.calculator__currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: #6b7280;
  margin-right: 0.5rem;
}

.calculator__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  outline: none;
}

.calculator__input::placeholder {
  color: #9ca3af; /* WCAG 2.2 AA: 4.6:1 on white - improved from #d1d5db */
}

.calculator__hint {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.75rem;
}

.calculator__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  align-items: center;
}

.calculator__presets-label {
  font-size: 0.875rem;
  color: #6b7280;
  width: 100%;
  margin-bottom: 0.25rem;
}

.calculator__preset {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s;
}

.calculator__preset:hover {
  background: var(--portal-primary, #2563eb);
  color: white;
  border-color: var(--portal-primary, #2563eb);
}

.calculator__preset.active {
  background: var(--portal-primary, #2563eb);
  color: white;
  border-color: var(--portal-primary, #2563eb);
}

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

.calculator__result-header {
  margin-bottom: 1.5rem;
}

.calculator__result-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.calculator__result-header p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.calculator__risks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.calculator__risk-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 12px;
  border-left: 4px solid var(--portal-danger, #dc2626);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.calculator__risk-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.risk-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.risk-item__icon::before {
  font-size: 1.25rem;
}

[data-risk="trap"] .risk-item__icon::before {
  content: "\1F4B8";
}
[data-risk="noncompete"] .risk-item__icon::before {
  content: "\1F6AB";
}
[data-risk="arbitration"] .risk-item__icon::before {
  content: "\2696\FE0F";
}
[data-risk="termination"] .risk-item__icon::before {
  content: "\1F4C9";
}

.risk-item__content {
  flex: 1;
  min-width: 0;
}

.risk-item__label {
  display: block;
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.risk-item__value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--portal-danger, #dc2626);
  transition: transform 0.3s;
}

.risk-item__value.counting {
  transform: scale(1.1);
}

.risk-item__percent {
  font-size: 0.75rem;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.calculator__total {
  border-top: 2px solid #e5e7eb;
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.calculator__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.calculator__total-row:last-child {
  margin-bottom: 0;
}

.calculator__total-label {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.calculator__total-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--portal-danger, #dc2626);
}

.calculator__total-row--savings .calculator__total-label {
  color: #6b7280;
}

.calculator__total-value--free {
  color: #10b981;
  font-size: 1.25rem;
}

.calculator__cta {
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.calculator__disclaimer {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  line-height: 1.5;
}

/* Calculator - Extra small screens */
@media (max-width: 480px) {
  .calculator__input-section,
  .calculator__results {
    padding: 1.25rem;
  }

  .calculator__input {
    font-size: 1.375rem;
  }

  .calculator__currency {
    font-size: 1.25rem;
  }

  .calculator__total-value {
    font-size: 1.375rem;
  }

  .calculator__risk-item {
    gap: 0.75rem;
    padding: 0.875rem;
  }

  .risk-item__icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .risk-item__text h4 {
    font-size: 0.9375rem;
  }

  .risk-item__amount {
    font-size: 0.9375rem;
  }
}

/* ============================================================
   STATE SELECTOR
   ============================================================ */
.state-selector {
  background: linear-gradient(
    135deg,
    var(--portal-primary, #2563eb) 0%,
    var(--portal-primary-dark, #1d4ed8) 100%
  );
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  color: white;
  text-align: center;
}

.state-selector__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .state-selector__wrapper {
    flex-direction: row;
    justify-content: center;
  }
}

.state-selector__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}

.state-selector__icon::before {
  content: "\1F4CD";
  font-size: 1.25rem;
}

.state-selector__dropdown {
  position: relative;
  display: inline-block;
}

.state-selector__select {
  appearance: none;
  background: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  min-width: 200px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.state-selector__select:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.state-selector__select:focus {
  outline: none;
  border-color: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.state-selector__arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7280;
}

.state-selector__arrow::before {
  content: "\25BC";
  font-size: 0.75rem;
}

.state-selector__hint {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0.75rem 0 0 0;
  padding: 0;
}

/* State-specific content visibility */
.state-content {
  display: none;
}

.state-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Non-California state message */
.other-state-message {
  background: #f9fafb;
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 1.5rem;
}

.other-state-message h4 {
  font-size: 1.25rem;
  color: #1f2937;
  margin: 0 0 0.75rem 0;
}

.other-state-message p {
  color: #6b7280;
  margin: 0 0 1rem 0;
}

.other-state-message .btn {
  margin-top: 0.5rem;
}

/* State comparison badge */
.state-comparison-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.state-comparison-badge::before {
  content: "\2713";
}

/* ===========================================
   DARK THEME OVERRIDES
   =========================================== */
.dark-theme .score-metric,
.dark-theme .score-metric--primary,
.dark-theme .finding-card,
.dark-theme .sample-report__actions,
.dark-theme .state-insight,
.dark-theme .money-item,
.dark-theme .protection-card,
.dark-theme .ca-tab,
.dark-theme .ca-protection-item,
.dark-theme .report-section,
.dark-theme .report-card,
.dark-theme .sample-report,
.dark-theme .sample-report__container,
.dark-theme .bill-summary-card,
.dark-theme .verdict-card {
  background: var(--surface-card, #161b22);
  border-color: var(--border, #30363d);
}

/* Tab active states */
.dark-theme .ca-tab.active,
.dark-theme .report-tab.active {
  background: var(--surface-elevated, #21262d);
}

/* Warning/info backgrounds */
.dark-theme .warning-highlight,
.dark-theme [style*="background: #fffbeb"] {
  background: rgba(245, 158, 11, 0.15) !important;
}

/* Floating CTA - keep contrasting */
.dark-theme .floating-cta__btn {
  background: var(--portal-primary, #0066ff);
  color: white;
}

/* Text colors */
.dark-theme .score-label,
.dark-theme .finding-card h4,
.dark-theme .report-section h3 {
  color: var(--text-primary, #f0f6fc);
}

.dark-theme .finding-card p,
.dark-theme .report-section p,
.dark-theme .protection-card p {
  color: var(--text-secondary, #c9d1d9);
}
