*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header {
  background: #1e293b;
  color: white;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}
.logo { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span.red { color: #dc2626; }
.logo span.blue { color: #60a5fa; }
nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
nav a {
  color: #cbd5e1;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
nav a:hover, nav a.active { background: #334155; color: white; text-decoration: none; }
nav a.nav-landlord { color: #fca5a5; }
nav a.nav-landlord:hover { background: #7f1d1d; color: white; }
nav a.nav-tenant { color: #93c5fd; }
nav a.nav-tenant:hover { background: #1e3a5f; color: white; }

/* Footer */
footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 2rem 1rem;
  margin-top: 4rem;
  font-size: 0.875rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
footer h4 { color: white; margin-bottom: 0.5rem; font-size: 0.875rem; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
footer ul a:hover { color: white; text-decoration: underline; }
.footer-bottom { text-align: center; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #334155; color: #64748b; }

/* Main */
main { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  border-radius: 16px;
  margin-bottom: 3rem;
}
.hero h1 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.125rem; color: #94a3b8; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; border: none; transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); text-decoration: none; }
.btn-landlord { background: #dc2626; color: white; }
.btn-tenant { background: #2563eb; color: white; }
.btn-outline { background: transparent; color: white; border: 2px solid #475569; }
.btn-outline:hover { border-color: white; }

/* Stats bar */
.stats-bar {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.stat-item { background: white; border-radius: 12px; padding: 1.25rem 2rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); flex: 1; min-width: 150px; }
.stat-item .num { font-size: 2rem; font-weight: 800; color: #1e293b; }
.stat-item .label { font-size: 0.875rem; color: #64748b; margin-top: 0.25rem; }

/* Trust bar */
.trust-bar { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; color: #475569; font-size: 0.875rem; font-weight: 500; }
.trust-item::before { content: '✓'; color: #16a34a; font-weight: 800; }

/* Section headers */
.section-header { margin-bottom: 2rem; }
.section-header h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.section-header p { color: #64748b; }

/* State grid */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.state-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  display: block;
}
.state-card:hover { border-color: #e2e8f0; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); text-decoration: none; }
.state-card.landlord:hover { border-color: #dc2626; }
.state-card.tenant:hover { border-color: #2563eb; }
.state-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.state-card .meta { font-size: 0.8rem; color: #64748b; display: flex; flex-direction: column; gap: 0.2rem; }
.state-card .badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.5rem;
}
.badge-weak { background: #fef3c7; color: #92400e; }
.badge-moderate { background: #dbeafe; color: #1e40af; }
.badge-strong { background: #d1fae5; color: #065f46; }
.badge-very-strong { background: #ede9fe; color: #5b21b6; }

/* Audience hub headers */
.hub-hero {
  padding: 3rem 2rem;
  border-radius: 16px;
  color: white;
  margin-bottom: 3rem;
  text-align: center;
}
.hub-hero.landlord { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.hub-hero.tenant { background: linear-gradient(135deg, #1e3a5f, #2563eb); }
.hub-hero h1 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 0.75rem; }
.hub-hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb { font-size: 0.875rem; color: #64748b; margin-bottom: 2rem; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: #3b82f6; }
.breadcrumb span { color: #94a3b8; }

/* Page content */
.page-hero {
  padding: 2rem;
  border-radius: 16px;
  color: white;
  margin-bottom: 2rem;
}
.page-hero.landlord { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.page-hero.tenant { background: linear-gradient(135deg, #1e3a5f, #2563eb); }
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.5rem; }
.page-hero .subtitle { opacity: 0.85; font-size: 0.95rem; }

/* Quick stats */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.quick-stat {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
}
.quick-stat .value { font-size: 1.75rem; font-weight: 800; }
.quick-stat .label { font-size: 0.8rem; color: #64748b; margin-top: 0.25rem; }
.landlord-stat .value { color: #dc2626; }
.tenant-stat .value { color: #2563eb; }

/* Steps */
.steps { margin-bottom: 2.5rem; }
.steps h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.25rem; }
.step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  align-items: flex-start;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  flex-shrink: 0;
  color: white;
}
.landlord .step-num { background: #dc2626; }
.tenant .step-num { background: #2563eb; }
.step-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.step-content p { font-size: 0.9rem; color: #475569; }

/* Notice table */
.notice-table-wrap { margin-bottom: 2.5rem; overflow-x: auto; }
.notice-table-wrap h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
th { background: #1e293b; color: white; padding: 0.875rem 1rem; text-align: left; font-size: 0.875rem; }
td { padding: 0.75rem 1rem; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }

/* Warning / info boxes */
.info-box {
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.info-box h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; }
.info-box ul { padding-left: 1.25rem; }
.info-box li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.info-box.warning { background: #fef9c3; border-left: 4px solid #eab308; }
.info-box.danger { background: #fee2e2; border-left: 4px solid #dc2626; }
.info-box.success { background: #dcfce7; border-left: 4px solid #16a34a; }
.info-box.blue { background: #dbeafe; border-left: 4px solid #2563eb; }

/* Attorney CTA */
.attorney-cta {
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  color: white;
}
.attorney-cta.landlord { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.attorney-cta.tenant { background: linear-gradient(135deg, #1e3a5f, #2563eb); }
.attorney-cta h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.attorney-cta p { margin-bottom: 1.25rem; opacity: 0.9; }
.lead-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; }
.lead-form input {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  width: 100%;
  background: rgba(255,255,255,0.95);
  color: #1e293b;
}
.lead-form input:focus { outline: 2px solid rgba(255,255,255,0.6); }
.lead-form button {
  padding: 0.75rem 1rem;
  background: white;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.15s;
}
.lead-form button:hover { opacity: 0.9; }
.landlord .lead-form button { color: #dc2626; }
.tenant .lead-form button { color: #2563eb; }

/* FAQ */
.faq { margin-bottom: 2.5rem; }
.faq h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.25rem; }
.faq-item { background: white; border-radius: 12px; padding: 1.25rem; margin-bottom: 0.75rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.faq-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.9rem; color: #475569; }

/* Cross link */
.cross-link {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cross-link p { font-size: 0.9rem; color: #475569; margin: 0; }
.cross-link a { font-weight: 700; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.875rem; color: white; }
.cross-link a.landlord-link { background: #dc2626; }
.cross-link a.tenant-link { background: #2563eb; }

/* Defenses */
.defenses { margin-bottom: 2.5rem; }
.defenses h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.25rem; }
.defense-item {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid #2563eb;
}
.defense-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.defense-item p { font-size: 0.9rem; color: #475569; }

/* Thank you page */
.thankyou { text-align: center; padding: 4rem 2rem; }
.thankyou .icon { font-size: 4rem; margin-bottom: 1rem; }
.thankyou h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.thankyou p { color: #64748b; margin-bottom: 2rem; }

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 0.75rem 0; }
  nav { gap: 0.15rem; }
  nav a { padding: 0.3rem 0.5rem; font-size: 0.8rem; }
  .hero { padding: 2.5rem 1rem; }
  .state-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .cross-link { flex-direction: column; }
}
