/* ============================================================
   ClassActionLawsuit.money - Design System
   Government-Official Theme
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;600;700&family=Source+Sans+3:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Design Tokens --- */
:root {
  --color-bg:           #F5F5F0;
  --color-bg-card:      #FFFFFF;
  --color-border:       #C8C8C0;
  --color-primary:      #1A3A6B;
  --color-primary-dark: #0F2347;
  --color-secondary:    #B31942;
  --color-accent:       #E8B84B;
  --color-text:         #1A1A1A;
  --color-text-muted:   #4B5563;
  --color-success:      #2D6A4F;
  --color-warning:      #7D2F0C;
  --color-danger:       #991B1B;
  --color-seal-bg:      #F0EDE8;

  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   8px;
  --radius-full: 9999px;

  --shadow-card:  0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-modal: 0 20px 60px rgba(0,0,0,0.3);
  --shadow-seal:  0 2px 8px rgba(26,58,107,0.2);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* --- Typography --- */
h1 { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700; line-height: 1.2; }
h2 { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 600; line-height: 1.3; }
h3 { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
h4 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; }
p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--color-text-muted); }
.text-small { font-size: 0.875rem; }
.text-caption { font-size: 0.75rem; }
.text-mono { font-family: var(--font-mono); }
.text-amount { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--color-accent); }
.text-case-num { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; }
.text-center { text-align: center; }
.text-white { color: white; }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--space-8); }
}

.grid-lawsuits {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .grid-lawsuits { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-lawsuits { grid-template-columns: 1fr 1fr 1fr; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }

/* --- Navigation --- */
.nav {
  background: var(--color-primary);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.nav-logo .site-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}
.nav-logo .site-name span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--color-accent); }
.nav-links a.active { color: var(--color-accent); border-bottom: 2px solid var(--color-accent); }

.nav-cta {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 7px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.15s;
}
.nav-cta:hover { background: white; color: var(--color-primary); text-decoration: none; }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.2s;
}

.nav-mobile-menu {
  display: none;
  background: var(--color-primary-dark);
  padding: var(--space-4) 0;
}
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.9);
  padding: var(--space-3) var(--space-4);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile-menu a:hover { background: rgba(255,255,255,0.1); color: var(--color-accent); }

/* Category dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  min-width: 200px;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: var(--color-seal-bg); }

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--color-primary-dark);
  padding: var(--space-2) 0;
  font-size: 0.8125rem;
}
.breadcrumb ol {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  list-style: none;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: var(--space-2); }

/* --- Section Header --- */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.section-header h2 { white-space: nowrap; }
.ruling-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.section-header a {
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--color-primary);
  color: white;
  padding: var(--space-6) 0;
}
.stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
}
.stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  color: rgba(255,255,255,0.3);
  font-size: 2rem;
}
@media (max-width: 767px) { .stat-divider { display: none; } }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: var(--space-16) 0;
  text-align: center;
}
.hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}
@media (max-width: 767px) { .hero h1 { font-size: 1.75rem; } }
.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}
.hero-search {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 16px 20px;
  padding-right: 140px;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  color: var(--color-text);
}
.hero-search input:focus { outline: 3px solid var(--color-accent); }
.hero-search button {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 20px;
  background: var(--color-secondary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: filter 0.15s;
}
.hero-search button:hover { filter: brightness(0.9); }
.hero-trust {
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

/* Search Autocomplete */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-modal);
  z-index: 300;
  max-height: 300px;
  overflow-y: auto;
}
.autocomplete-item {
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--color-seal-bg); }
.autocomplete-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* --- Alert Strip (Expiring Soon horizontal scroll) --- */
.alert-strip {
  background: var(--color-seal-bg);
  border-top: 3px solid var(--color-warning);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) 0;
}
.alert-strip-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-warning);
}
.alert-strip-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-warning);
  animation: pulse-urgent 1.5s ease-in-out infinite;
}
.alert-strip-scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.alert-strip-scroll::-webkit-scrollbar { height: 6px; }
.alert-strip-scroll::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }

/* --- Lawsuit Card --- */
.lawsuit-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-success);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  animation: slide-up 0.3s ease both;
  transition: box-shadow 0.15s, transform 0.15s;
}
.lawsuit-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); transform: translateY(-1px); }
.lawsuit-card.status-expiring { border-left-color: var(--color-warning); }
.lawsuit-card.status-expired { border-left-color: #9CA3AF; opacity: 0.8; }
.lawsuit-card.status-open { border-left-color: var(--color-success); }
.lawsuit-card.compact { min-width: 260px; max-width: 300px; flex-shrink: 0; }

.lawsuit-card-company { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; }
.lawsuit-card-case { font-size: 0.8125rem; color: var(--color-text-muted); margin-top: -4px; }
.lawsuit-card-amount { font-family: var(--font-mono); font-size: 1.625rem; font-weight: 700; color: var(--color-accent); }
.lawsuit-card-deadline { font-size: 0.875rem; color: var(--color-text-muted); }
.lawsuit-card-eligibility { font-size: 0.8125rem; font-style: italic; color: var(--color-text-muted); }
.lawsuit-card .btn { margin-top: auto; }

/* --- Status Stamp --- */
.status-stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 2px solid var(--color-success);
  color: var(--color-success);
  border-radius: var(--radius-sm);
  transform: rotate(-3deg);
  animation: stamp-in 0.3s ease both;
  width: fit-content;
}
.status-stamp.expiring { border-color: var(--color-warning); color: var(--color-warning); }
.status-stamp.expired { border-color: #9CA3AF; color: #9CA3AF; }
.status-stamp.open { border-color: var(--color-success); color: var(--color-success); }

/* --- Eligibility Badge --- */
.eligibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid;
}
.eligibility-badge.open {
  background: #D1FAE5;
  color: var(--color-success);
  border-color: var(--color-success);
}
.eligibility-badge.expiring {
  background: #FEF3C7;
  color: var(--color-warning);
  border-color: var(--color-warning);
}
.eligibility-badge.expired {
  background: #F3F4F6;
  color: #6B7280;
  border-color: #D1D5DB;
}

/* --- Countdown Timer --- */
.countdown-timer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  border: 2px solid var(--color-danger);
  border-radius: var(--radius-sm);
  background: rgba(153,27,27,0.05);
  padding: var(--space-2) var(--space-4);
}
.countdown-timer.urgent { color: var(--color-danger); }
.countdown-timer.critical {
  background: rgba(153,27,27,0.15);
  font-weight: 700;
  animation: pulse-urgent 1.5s ease-in-out infinite;
}
.countdown-timer.expired {
  border-color: #9CA3AF;
  color: #9CA3AF;
  background: transparent;
}
.countdown-label { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }

/* --- Urgency Banner --- */
.urgency-banner {
  background: var(--color-secondary);
  color: white;
  text-align: center;
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.urgency-banner .pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  margin-right: var(--space-2);
  animation: pulse-urgent 1s ease-in-out infinite;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, filter 0.15s;
  gap: var(--space-2);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-secondary { background: var(--color-secondary); color: white; }
.btn-secondary:hover { filter: brightness(0.9); }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: white; }
.btn-outline-white { background: transparent; border-color: white; color: white; }
.btn-outline-white:hover { background: white; color: var(--color-primary); }
.btn-lg { padding: 14px 28px; font-size: 1.0625rem; }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }

/* --- Forms --- */
.form-group { margin-bottom: var(--space-4); }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.form-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.15);
}
.form-input::placeholder { color: #9CA3AF; }
.form-error { font-size: 0.8125rem; color: var(--color-danger); margin-top: 4px; }
.form-hint { font-size: 0.8125rem; color: var(--color-text-muted); margin-top: 4px; }

/* Toggle Switch */
.toggle-group { display: flex; align-items: center; gap: var(--space-3); }
.toggle-input { display: none; }
.toggle-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-label::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.toggle-input:checked + .toggle-label { background: var(--color-success); }
.toggle-input:checked + .toggle-label::after { transform: translateX(20px); }
.toggle-text { font-size: 0.9375rem; font-weight: 500; }

/* --- TCPA Disclosure --- */
.tcpa-disclosure {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-seal-bg);
  border-left: 3px solid var(--color-border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal-overlay.open { display: flex; }
.modal {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  max-width: 480px;
  width: 100%;
  animation: slide-up 0.25s ease;
}
.modal-header {
  background: var(--color-primary);
  color: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.modal-header h3 { color: white; font-size: 1.125rem; }
.modal-body { padding: var(--space-6); }
.modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  line-height: 1;
  margin-left: auto;
  cursor: pointer;
  transition: color 0.15s;
}
.modal-close:hover { color: white; }

/* --- Quiz Steps --- */
.quiz-container {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.quiz-progress-bar {
  height: 4px;
  background: var(--color-border);
}
.quiz-progress-fill {
  height: 100%;
  background: var(--color-primary);
  transition: width 0.4s ease;
}
.quiz-step { padding: var(--space-8); }
.quiz-step-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.quiz-question { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: var(--space-6); }
.quiz-options { display: flex; flex-direction: column; gap: var(--space-3); }
.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1.5px solid var(--color-border);
  border-left: 4px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-height: 48px;
  font-size: 1rem;
}
.quiz-option:hover { border-left-color: var(--color-primary); background: var(--color-seal-bg); }
.quiz-option.selected { border-color: var(--color-primary); border-left-color: var(--color-primary); background: rgba(26,58,107,0.05); }
.quiz-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.quiz-result { text-align: center; padding: var(--space-8); }
.quiz-result.eligible { background: #D1FAE5; }
.quiz-result.not-eligible { background: #FEF3C7; }
.quiz-result h2 { font-size: 1.75rem; margin-bottom: var(--space-4); }

/* --- Calculator --- */
.calculator-widget {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.calculator-inputs { padding: var(--space-6); }
.calculator-result-wrap { position: relative; }
.calculator-result {
  padding: var(--space-8);
  text-align: center;
  background: var(--color-seal-bg);
  border-top: 1px solid var(--color-border);
}
.calculator-result .estimate-range {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-success);
}
.calculator-gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(245,245,240,0.95);
  padding: var(--space-6);
  text-align: center;
  gap: var(--space-4);
}
.calculator-gate p { font-size: 1rem; }
.calculator-gate.hidden { display: none; }

/* --- Lead Capture Inline --- */
.lead-capture-inline {
  background: var(--color-seal-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.lead-capture-inline h3 { margin-bottom: var(--space-2); }
.lead-capture-inline p { font-size: 0.9375rem; color: var(--color-text-muted); margin-bottom: var(--space-4); }

/* --- Category Cards --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .category-grid { grid-template-columns: repeat(5, 1fr); }
}
.category-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.category-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--color-primary);
  text-decoration: none;
}
.category-card-icon { font-size: 2rem; line-height: 1; }
.category-card-name { font-weight: 600; font-size: 0.9375rem; }
.category-card-count { font-size: 0.75rem; color: var(--color-text-muted); font-family: var(--font-mono); }

/* Watchlist category checkboxes */
.category-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .category-checkbox-grid { grid-template-columns: repeat(5, 1fr); }
}
.category-checkbox-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.category-checkbox-card.selected {
  border-color: var(--color-primary);
  background: rgba(26,58,107,0.05);
}
.category-checkbox-card input { display: none; }
.category-checkbox-card-icon { font-size: 1.5rem; }
.category-checkbox-card-name { font-size: 0.8125rem; font-weight: 600; margin-top: 4px; }

/* --- Government Table --- */
table.gov-table {
  border-collapse: collapse;
  width: 100%;
  border-top: 3px solid var(--color-primary);
  font-size: 0.9rem;
}
.gov-table th {
  background: var(--color-primary);
  color: white;
  text-align: left;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.gov-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
}
.gov-table tr:nth-child(even) td { background: var(--color-seal-bg); }

/* --- Filter Bar --- */
.filter-bar {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-6);
}
.filter-group { display: flex; align-items: center; gap: var(--space-2); }
.filter-label { font-size: 0.8125rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.filter-select {
  padding: 6px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: white;
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--color-primary); }

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}
.pagination button {
  padding: 8px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.pagination button:hover { border-color: var(--color-primary); background: var(--color-seal-bg); }
.pagination button.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- Results Info --- */
.results-info {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* --- SMS example --- */
.sms-example {
  background: #F0F0F0;
  border-radius: 12px;
  padding: var(--space-4) var(--space-6);
  max-width: 320px;
  position: relative;
  font-size: 0.9375rem;
  color: #1A1A1A;
  box-shadow: var(--shadow-card);
}
.sms-example::before {
  content: 'ClassActionLawsuit.money';
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.sms-example::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 20px;
  border: 10px solid transparent;
  border-top-color: #F0F0F0;
  border-bottom: 0;
}

/* --- Trust Signals --- */
.trust-bar {
  background: var(--color-seal-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) 0;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.trust-icon { font-size: 1.25rem; }

/* --- Government Seal --- */
.seal {
  filter: drop-shadow(var(--shadow-seal));
  flex-shrink: 0;
}
.seal-sm { width: 48px; height: 48px; }
.seal-md { width: 80px; height: 80px; }
.seal-lg { width: 120px; height: 120px; }

/* --- Alert Boxes --- */
.alert {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  font-size: 0.9375rem;
}
.alert-success { background: #D1FAE5; border-color: var(--color-success); color: #065F46; }
.alert-warning { background: #FEF3C7; border-color: var(--color-warning); color: #92400E; }
.alert-danger { background: #FEE2E2; border-color: var(--color-danger); color: #7F1D1D; }
.alert-info { background: #EFF6FF; border-color: var(--color-primary); color: #1E3A5F; }

/* --- Toast Notification --- */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.toast {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  color: white;
  font-weight: 500;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-modal);
  animation: slide-up 0.25s ease;
  max-width: 360px;
}
.toast-success { background: var(--color-success); }
.toast-error { background: var(--color-danger); }
.toast-info { background: var(--color-primary); }

/* --- Loading Spinner --- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-dark {
  border-color: rgba(26,58,107,0.2);
  border-top-color: var(--color-primary);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Section Styles --- */
.section { padding: var(--space-12) 0; }
.section-bg-seal { background: var(--color-seal-bg); }
.section-bg-primary { background: var(--color-primary); color: white; }
.section-bg-primary h2, .section-bg-primary h3 { color: white; }

/* --- Value Props --- */
.value-props {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .value-props { grid-template-columns: repeat(3, 1fr); }
}
.value-prop {
  text-align: center;
  padding: var(--space-6);
}
.value-prop-icon { font-size: 2.5rem; margin-bottom: var(--space-3); }
.value-prop h3 { margin-bottom: var(--space-2); }
.value-prop p { font-size: 0.9375rem; color: var(--color-text-muted); }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: var(--space-4); }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  padding: var(--space-4) var(--space-6);
  font-weight: 600;
  background: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.25rem; color: var(--color-primary); }
.faq-item.open .faq-question::after { content: '-'; }
.faq-answer {
  display: none;
  padding: var(--space-4) var(--space-6);
  background: var(--color-seal-bg);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}
.faq-item.open .faq-answer { display: block; }

/* --- How It Works Steps --- */
.steps { display: flex; flex-direction: column; gap: var(--space-6); }
@media (min-width: 768px) { .steps { flex-direction: row; } }
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step h3 { font-size: 1rem; }
.step p { font-size: 0.875rem; color: var(--color-text-muted); }

/* --- Footer --- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.9);
  padding: var(--space-12) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand .site-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
  margin: var(--space-3) 0 var(--space-2);
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.footer-col h4 {
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--color-accent); }
.footer-disclaimer {
  background: var(--color-secondary);
  padding: var(--space-4) 0;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
  margin-top: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-4) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
}

/* --- Animations --- */
@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes stamp-in {
  from { transform: scale(1.5) rotate(-5deg); opacity: 0; }
  to { transform: scale(1) rotate(-3deg); opacity: 1; }
}
@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  color: var(--color-text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: var(--space-4); }
.empty-state h3 { margin-bottom: var(--space-2); }

/* --- Print Styles --- */
@media print {
  .nav, .modal-overlay, .toast-container, .lead-capture-inline, .nav-cta { display: none !important; }
  body { background: white; }
  .lawsuit-card { box-shadow: none; border: 1px solid #ccc; }
}
