/* ==========================================================================
   713FlatFeeMLS — Unified Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:wght@600;700&display=swap');

/* --------------------------------------------------------------------------
   2. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg: #F8F7F5;
  --card: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-muted: #6B7280;
  --rust: #C8522A;
  --rust-hover: #B04523;
  --teal: #0D9488;
  --teal-hover: #0B7A70;
  --blue: #3B7EF8;
  --blue-hover: #2563EB;
  --navy: #0D1A2E;
  --navy-light: #162035;
  --border: #E5E7EB;
  --border-dark: #D1D5DB;

  /* Shadows */
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-chip: 6px;
  --radius-sm: 4px;

  /* Typography */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Container */
  --container-max: 1200px;
  --container-pad: 1.5rem;

  /* Nav */
  --nav-height: 72px;
}

/* --------------------------------------------------------------------------
   3. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-sans);
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   4. Skip to Content (Accessibility)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--rust);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   5. Container Utility
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo .flame {
  font-size: 1.25rem;
  color: var(--rust);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-chip);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg);
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: var(--radius-chip);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.mobile-menu .mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   7. Button System
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-sm {
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
}

.btn-full {
  width: 100%;
  display: flex;
}

/* Rust (primary MLS) */
.btn-rust {
  background: var(--rust);
  color: #fff;
  border-color: var(--rust);
}

.btn-rust:hover {
  background: var(--rust-hover);
  border-color: var(--rust-hover);
  box-shadow: 0 4px 12px rgba(200, 82, 42, 0.3);
}

/* Teal (primary Cash) */
.btn-teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.btn-teal:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Blue (AI) */
.btn-blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn-blue:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  box-shadow: 0 4px 12px rgba(59, 126, 248, 0.3);
}

/* Outline variants */
.btn-outline-rust {
  background: transparent;
  color: var(--rust);
  border-color: var(--rust);
}

.btn-outline-rust:hover {
  background: var(--rust);
  color: #fff;
}

.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline-teal:hover {
  background: var(--teal);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   8. Hero Styles
   -------------------------------------------------------------------------- */
.hero-dark {
  background: var(--navy);
  color: #fff;
  padding: var(--space-4xl) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200,82,42,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(13,148,136,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-dark .hero-content {
  position: relative;
  z-index: 1;
}

.hero-dark h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-dark .hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero-light {
  background: var(--bg);
  padding: var(--space-3xl) 0 var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

.hero-light h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.hero-light .hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 1.75rem;
}

/* Hero breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.55);
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  opacity: 0.4;
}

.breadcrumb-light {
  color: var(--text-muted);
}

.breadcrumb-light a {
  color: var(--text-muted);
}

.breadcrumb-light a:hover {
  color: var(--text-primary);
}

/* Hero quick facts */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-fact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.hero-fact .fact-icon {
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   9. Section Spacing
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-3xl) 0;
}

.section-lg {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.section-dark {
  background: var(--navy);
  color: #fff;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark p {
  color: rgba(255,255,255,0.75);
}

.section-alt {
  background: #F0EFED;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   10. Card System
   -------------------------------------------------------------------------- */
.card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
}

.card-hover {
  transition: box-shadow 0.2s, transform 0.2s;
}

.card-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Path cards with colored top border */
.card-rust {
  border-top: 4px solid var(--rust);
}

.card-teal {
  border-top: 4px solid var(--teal);
}

.card-blue {
  border-top: 4px solid var(--blue);
}

/* Card label */
.card-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}

.card-label.rust { color: var(--rust); }
.card-label.teal { color: var(--teal); }
.card-label.blue { color: var(--blue); }

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* Feature list inside card */
.card-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.card-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.card-features li:last-child {
  border-bottom: none;
}

.card-features .check {
  color: var(--teal);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.card-features .check-rust {
  color: var(--rust);
}

/* Pricing card */
.pricing-card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pricing-card.featured {
  border-color: var(--rust);
  box-shadow: 0 0 0 1px var(--rust), var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rust);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.875rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Testimonial card */
.testimonial-card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.testimonial-quote {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. Grid Utilities
   -------------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

/* --------------------------------------------------------------------------
   12. Badge / Chip / Pill System
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover,
.chip.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.chip-rust {
  background: rgba(200,82,42,0.08);
  color: var(--rust);
  border-color: rgba(200,82,42,0.2);
}

.chip-teal {
  background: rgba(13,148,136,0.08);
  color: var(--teal);
  border-color: rgba(13,148,136,0.2);
}

.chip-blue {
  background: rgba(59,126,248,0.08);
  color: var(--blue);
  border-color: rgba(59,126,248,0.2);
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   13. Tab / Switcher Component
   -------------------------------------------------------------------------- */
.tab-group {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: #eeede9;
}

.tab-btn.active-rust {
  background: var(--card);
  color: var(--rust);
  border-bottom-color: var(--rust);
}

.tab-btn.active-teal {
  background: var(--card);
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.tab-btn.active-blue {
  background: var(--card);
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.tab-panel {
  display: none;
  padding: 1.75rem;
}

.tab-panel.active {
  display: block;
}

/* --------------------------------------------------------------------------
   14. Accordion / FAQ Component
   -------------------------------------------------------------------------- */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.125rem 1.5rem;
  background: var(--card);
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.accordion-trigger:hover {
  background: var(--bg);
}

.accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: transform 0.3s, background 0.2s;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  background: var(--rust);
  color: #fff;
}

.accordion-body {
  display: none;
  padding: 0 1.5rem 1.25rem;
  background: var(--card);
}

.accordion-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.accordion-item.open .accordion-body {
  display: block;
}

/* --------------------------------------------------------------------------
   15. Form Styles
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(200,82,42,0.12);
}

.form-input.teal-focus:focus,
.form-select.teal-focus:focus,
.form-textarea.teal-focus:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   16. Table Styles
   -------------------------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
}

.data-table th {
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th.rust-col {
  color: var(--rust);
}

.data-table th.teal-col {
  color: var(--teal);
}

.data-table td {
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #fafafa;
}

.data-table .row-label {
  font-weight: 600;
  color: var(--text-primary);
}

.data-table .val-good {
  color: var(--teal);
  font-weight: 600;
}

.data-table .val-ok {
  color: var(--rust);
  font-weight: 600;
}

/* Comparison table specific */
.compare-table th:first-child {
  width: 200px;
}

.compare-icon {
  font-size: 1rem;
  margin-right: 0.25rem;
}

/* --------------------------------------------------------------------------
   17. Trust Strip
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-item .trust-icon {
  font-size: 1rem;
  color: var(--teal);
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

/* --------------------------------------------------------------------------
   18. Stats Row
   -------------------------------------------------------------------------- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.stat-value {
  font-size: 1.625rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-serif);
}

.stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: stretch;
}

/* --------------------------------------------------------------------------
   19. CTA Band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--navy);
  padding: var(--space-3xl) 0;
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-band-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cta-band-half {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
}

.cta-band-half h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.cta-band-half p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   20. How It Works Steps
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  gap: 1.25rem;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
}

.step-num.rust-bg { background: var(--rust); }
.step-num.teal-bg { background: var(--teal); }
.step-num.blue-bg { background: var(--blue); }

.step-body h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.step-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   21. Service Area Pills
   -------------------------------------------------------------------------- */
.service-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.area-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s;
}

.area-pill:hover {
  border-color: var(--rust);
  background: rgba(200,82,42,0.05);
  color: var(--rust);
}

/* --------------------------------------------------------------------------
   22. Calculator Styles
   -------------------------------------------------------------------------- */
.calc-wrapper {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

.calc-row {
  margin-bottom: 1.5rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.calc-label-text {
  font-size: 0.875rem;
  font-weight: 600;
}

.calc-value-display {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rust);
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rust);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(200,82,42,0.4);
  transition: transform 0.1s;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-slider.teal::-webkit-slider-thumb {
  background: var(--teal);
  box-shadow: 0 2px 6px rgba(13,148,136,0.4);
}

.calc-results {
  background: var(--bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.calc-result-row:last-child {
  border-bottom: none;
}

.calc-result-key {
  color: var(--text-muted);
}

.calc-result-val {
  font-weight: 700;
  color: var(--text-primary);
}

.calc-result-val.positive {
  color: var(--teal);
}

.calc-result-val.negative {
  color: var(--rust);
}

/* --------------------------------------------------------------------------
   23. Callout / Info Boxes
   -------------------------------------------------------------------------- */
.callout {
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.callout-blue {
  background: rgba(59,126,248,0.06);
  border-color: rgba(59,126,248,0.2);
}

.callout-rust {
  background: rgba(200,82,42,0.06);
  border-color: rgba(200,82,42,0.2);
}

.callout-teal {
  background: rgba(13,148,136,0.06);
  border-color: rgba(13,148,136,0.2);
}

.callout-yellow {
  background: rgba(245,158,11,0.06);
  border-color: rgba(245,158,11,0.2);
}

.callout-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.callout-body p {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.65;
}

.callout-body strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   24. Summary / AEO Card
   -------------------------------------------------------------------------- */
.summary-card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  margin: -2rem 0 var(--space-3xl);
  position: relative;
  z-index: 2;
}

.summary-card h2 {
  font-size: 1.375rem;
  margin-bottom: 0.875rem;
}

.summary-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   25. Timeline Visual
   -------------------------------------------------------------------------- */
.timeline-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.timeline-item {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 1.75rem;
}

.timeline-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.timeline-days {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.timeline-days.slow { color: var(--text-muted); }
.timeline-days.fast { color: var(--teal); }

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   26. Dashboard Mockup
   -------------------------------------------------------------------------- */
.dashboard-mockup {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dashboard-topbar {
  background: var(--navy);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-topbar-title {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 600;
}

.dashboard-topbar-badge {
  background: var(--teal);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.dashboard-body {
  padding: 1.5rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-stat {
  background: var(--bg);
  border-radius: var(--radius-chip);
  padding: 1rem;
  text-align: center;
}

.dashboard-stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dashboard-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   27. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: var(--space-3xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.875rem;
}

.footer-logo .flame {
  color: var(--rust);
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.625rem;
}

.footer-contact-item .icon {
  margin-top: 0.1rem;
  flex-shrink: 0;
  color: var(--rust);
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom-text {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.75);
}

/* --------------------------------------------------------------------------
   28. Animations
   -------------------------------------------------------------------------- */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   29. Utility Classes
   -------------------------------------------------------------------------- */
.text-rust { color: var(--rust); }
.text-teal { color: var(--teal); }
.text-blue { color: var(--blue); }
.text-muted { color: var(--text-muted); }
.text-white { color: #fff; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.8125rem; }

.font-serif { font-family: var(--font-serif); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.flex-wrap { flex-wrap: wrap; }

.w-full { width: 100%; }

.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-xl) 0;
}

.note-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

.illustrative-label {
  display: inline-block;
  background: rgba(245,158,11,0.1);
  color: #92400E;
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   30. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .cta-band-split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: 1rem;
    --nav-height: 64px;
  }

  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-ctas {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4,
  .cta-band-split,
  .timeline-compare,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  /* Stats row */
  .stats-row {
    gap: 1rem;
  }

  .stat-divider {
    display: none;
  }

  /* Summary card */
  .summary-card {
    margin: 0 0 var(--space-2xl);
    border-radius: var(--radius-card);
  }

  /* Hero */
  .hero-dark,
  .hero-light {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .hero-facts {
    gap: 0.5rem;
  }

  /* Dashboard */
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer bottom */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-facts {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-strip-inner {
    flex-direction: column;
    gap: 0.875rem;
  }

  .trust-divider {
    display: none;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}
