/* Top Solar Services — core stylesheet
   Mobile-first, base-8 spacing, Inter typography. */

:root {
  --color-primary: #0a1628;
  --color-primary-soft: #1a2942;
  --color-accent: #f97316;
  --color-accent-dark: #ea580c;
  --color-blue: #2563eb;
  --color-blue-light: #eff6ff;

  --color-bg: #f8f9fa;
  --color-white: #ffffff;
  --color-card: #ffffff;
  --color-border: #e5e7eb;
  --color-border-dark: #d1d5db;

  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;

  --color-success: #10b981;
  --color-sponsored: #f59e0b;
  --color-star: #fbbf24;
  --color-premier: #7c3aed;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { color: var(--color-primary); line-height: 1.25; margin: 0 0 var(--space-2); font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: var(--text-xl); }
p  { margin: 0 0 var(--space-2); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-2); }
@media (min-width: 768px) { .container { padding: 0 var(--space-3); } }

.sr-only { position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.skip-link {
  position: absolute; top: -40px; left: 0;
  padding: var(--space-1) var(--space-2);
  background: var(--color-accent); color: white;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* -------- Utility bar -------- */
.util-bar {
  background: var(--color-primary);
  color: #cbd5e1;
  font-size: var(--text-xs);
  padding: 6px 0;
  display: none;
}
@media (min-width: 768px) {
  .util-bar { display: block; }
}
.util-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.util-right { display: flex; gap: var(--space-2); align-items: center; }
.util-right a { color: #cbd5e1; }
.util-right a:hover { color: white; text-decoration: none; }
.util-join { border: 1px solid #334155; border-radius: var(--radius-sm); padding: 4px 12px; }
.util-join:hover { background: #334155; }

/* -------- Header / nav -------- */
.site-header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
  gap: var(--space-2);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-primary);
  text-decoration: none;
}
.brand-bolt { color: var(--color-accent); font-size: 1.4rem; }
.brand-name-accent { color: var(--color-accent); }
.brand-light { color: white; }
.brand-light .brand-name { color: white; }

.primary-nav {
  display: none;
  align-items: center;
  gap: var(--space-3);
}
.primary-nav > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--space-3); align-items: center;
}
.primary-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.primary-nav .has-menu { position: relative; }
.primary-nav .submenu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: white;
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--space-1) 0;
  list-style: none;
  margin: var(--space-1) 0 0;
}
.primary-nav .has-menu:hover .submenu,
.primary-nav .has-menu:focus-within .submenu { display: block; }
.primary-nav .submenu li a {
  display: block;
  padding: 10px var(--space-2);
  border: none;
}
.primary-nav .submenu li a:hover { background: var(--color-bg); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--color-primary);
  transition: transform 0.2s;
}

@media (min-width: 1024px) {
  .primary-nav { display: flex; }
  .nav-toggle { display: none; }
}

@media (max-width: 1023px) {
  .primary-nav {
    position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    background: white;
    padding: var(--space-3);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    display: flex;
    pointer-events: none;
  }
  .primary-nav.open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .primary-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav a {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
    display: block;
    font-size: var(--text-base);
  }
  .primary-nav .submenu { position: static; box-shadow: none; display: block; padding-left: var(--space-2); }
  .nav-cta { display: block; padding: var(--space-2) 0; }
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 600;
  font-size: var(--text-sm);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.1s, box-shadow 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--color-accent); color: white; border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: white; }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-border-dark); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); background: white; }
.btn-outline-light { background: transparent; color: white; border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); color: white; border-color: white; }
.btn-ghost { background: transparent; color: var(--color-text); border-color: transparent; }
.btn-ghost:hover { background: var(--color-bg); color: var(--color-accent); }
.btn-premier { background: var(--color-premier); color: white; border-color: var(--color-premier); }
.btn-premier:hover { background: #6d28d9; border-color: #6d28d9; color: white; }
.btn-danger { background: #dc2626; color: white; border-color: #dc2626; }
.btn-lg { padding: 14px 28px; font-size: var(--text-base); }
.btn-xs { padding: 4px 10px; font-size: var(--text-xs); }
.btn-block { display: flex; width: 100%; }
.btn-filter { padding: 9px 14px; background: var(--color-primary); color: white; border-color: var(--color-primary); }
.btn-filter:hover { background: var(--color-primary-soft); }

/* -------- Hero -------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a5f 100%);
  color: white;
  padding: var(--space-5) 0 var(--space-6);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 10%, rgba(249,115,22,0.15), transparent 50%),
                    radial-gradient(circle at 0% 100%, rgba(37,99,235,0.15), transparent 40%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.hero h1 { color: white; font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: var(--space-2); }
.hero-accent { color: var(--color-accent); }
.hero-sub { font-size: var(--text-lg); color: #cbd5e1; margin-bottom: var(--space-3); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-bottom: var(--space-3); }
.hero-search {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
  max-width: 720px;
  margin: 0 auto var(--space-2);
  background: white;
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .hero-search { grid-template-columns: 1fr 1fr auto; }
}
.hs-field { display: flex; align-items: center; gap: 8px; padding: 10px var(--space-2); border-right: 1px solid var(--color-border); }
.hs-field:last-of-type { border-right: none; }
.hs-field i { color: var(--color-text-muted); }
.hs-field input {
  flex: 1; border: none; outline: none; font: inherit; font-size: var(--text-base); color: var(--color-text);
  background: transparent;
}
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}
.hero-chip-label { color: #94a3b8; }
.hero-chips a {
  color: white;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  text-decoration: none;
}
.hero-chips a:hover { background: rgba(255,255,255,0.15); }
.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2);
  max-width: 800px; margin: var(--space-3) auto 0;
}
@media (min-width: 768px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stats div { text-align: center; color: #cbd5e1; font-size: var(--text-sm); }
.hero-stats strong { display: block; font-size: var(--text-2xl); color: white; font-weight: 700; }

/* -------- Section -------- */
.section { padding: var(--space-5) 0; }
.section-alt { background: var(--color-bg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-4); }
.section-head h2 { margin-bottom: var(--space-1); }
.section-head p { color: var(--color-text-muted); font-size: var(--text-lg); }
.section-cta { text-align: center; margin-top: var(--space-3); }

/* -------- Category grid -------- */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  border-top: 3px solid transparent;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-accent);
  text-decoration: none;
}
.cat-icon {
  width: 56px; height: 56px;
  background: var(--color-blue-light);
  color: var(--color-blue);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.cat-card h3 { margin: 0; }
.cat-card p { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; flex: 1; }
.cat-count { color: var(--color-accent); font-weight: 600; font-size: var(--text-sm); }
.cat-arrow { position: absolute; top: var(--space-3); right: var(--space-3); color: var(--color-text-light); font-size: var(--text-xl); transition: transform 0.2s; }
.cat-card:hover .cat-arrow { transform: translateX(4px); color: var(--color-accent); }

/* -------- Tabs -------- */
.tab-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.tab {
  padding: 10px var(--space-2);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.tab:hover { border-color: var(--color-accent); color: var(--color-accent); }
.tab.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }

/* -------- Company card -------- */
.company-list { display: grid; gap: var(--space-2); }
.company-card {
  background: white;
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.company-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--color-accent);
}
.sponsored-badge {
  position: absolute; top: var(--space-2); right: var(--space-2);
  background: #fff7ed; color: var(--color-sponsored);
  padding: 3px 10px; border-radius: 999px; font-size: var(--text-xs);
  font-weight: 600; border: 1px solid #fed7aa;
}
.card-head { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); margin-bottom: var(--space-2); }
.card-logo { width: 60px; height: 60px; border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg); display: flex; align-items: center; justify-content: center; }
.logo-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary); color: white; font-weight: 700; font-size: var(--text-xl);
}
.logo-lg { width: 80px; height: 80px; font-size: var(--text-2xl); border-radius: var(--radius-md); }
.card-title h3 { font-size: var(--text-lg); margin: 0 0 4px; }
.card-title h3 a { color: var(--color-primary); text-decoration: none; }
.card-title h3 a:hover { color: var(--color-accent); }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-xs); font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
}
.badge-verified { background: var(--color-blue-light); color: var(--color-blue); }
.badge-premier { background: #f5f3ff; color: var(--color-premier); }
.badge-featured { background: #fef3c7; color: #92400e; margin-right: 8px; }
.badge-pending  { background: #fee2e2; color: #991b1b; }

.stars { color: var(--color-star); display: inline-flex; gap: 2px; }
.card-rating { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); }
.rating-num { font-weight: 600; color: var(--color-primary); }
.rating-sep { color: var(--color-text-light); }
.review-count { color: var(--color-text-muted); }

.card-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px var(--space-2);
  margin: 0 0 var(--space-2); padding: var(--space-2) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 768px) { .card-meta { grid-template-columns: repeat(3, 1fr); } }
.card-meta dt { font-size: var(--text-xs); color: var(--color-text-muted); margin: 0; }
.card-meta dd { margin: 0; font-weight: 500; font-size: var(--text-sm); }

.card-services { margin-bottom: var(--space-2); }
.card-services-label { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; font-weight: 600; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.svc-row { display: flex; justify-content: space-between; font-size: var(--text-sm); }
.svc-name { font-weight: 500; }
.svc-pct { color: var(--color-text-muted); }
.svc-bar { height: 6px; background: var(--color-bg); border-radius: 999px; overflow: hidden; margin-top: 2px; }
.svc-fill { height: 100%; border-radius: 999px; transition: width 0.6s ease; }

.card-blurb { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0 0 var(--space-2); }
.card-see-more { display: inline-block; margin-left: 8px; font-weight: 600; color: var(--color-blue); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-2); }
.tag {
  background: var(--color-bg); color: var(--color-text);
  font-size: var(--text-xs); padding: 4px 10px; border-radius: 999px;
}
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card-actions .btn { flex: 1 1 auto; min-width: 140px; }
@media (min-width: 768px) {
  .card-actions .btn { flex: 0 0 auto; }
}

/* -------- Steps -------- */
.steps-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr; gap: var(--space-3);
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step { background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); position: relative; }
.step-num { position: absolute; top: -14px; left: var(--space-3); background: var(--color-accent); color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step-icon { color: var(--color-accent); font-size: 1.8rem; margin-bottom: var(--space-1); }

/* -------- Match CTA -------- */
.match-cta {
  background: linear-gradient(135deg, var(--color-primary), #1e3a5f);
  color: white;
  padding: var(--space-5) 0;
}
.match-cta h2 { color: white; }
.match-cta p { color: #cbd5e1; }
.match-cta-inner { display: grid; gap: var(--space-3); align-items: center; }
@media (min-width: 768px) { .match-cta-inner { grid-template-columns: 1fr 1fr; } }
.match-form { display: grid; gap: 10px; background: white; padding: var(--space-2); border-radius: var(--radius-md); }
@media (min-width: 640px) { .match-form { grid-template-columns: 1fr 140px auto; } }
.match-form select, .match-form input, .match-form button { padding: 12px; border-radius: var(--radius-sm); font: inherit; border: 1px solid var(--color-border); }
.match-form button { border-color: var(--color-accent); }
.match-form input:focus, .match-form select:focus { outline: 2px solid var(--color-accent); border-color: var(--color-accent); }

/* -------- Feature grid -------- */
.feature-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-3);
}
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { text-align: center; padding: var(--space-3); background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.feature-icon { color: var(--color-accent); font-size: 2rem; margin-bottom: var(--space-1); }

/* -------- FAQ -------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 8px; }
.faq-item { background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary {
  list-style: none;
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { transition: transform 0.2s; color: var(--color-text-muted); }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-answer { padding: 0 var(--space-3) var(--space-2); color: var(--color-text-muted); }
.faq-group-title { font-size: var(--text-xl); margin: var(--space-3) 0 var(--space-2); color: var(--color-primary); }

/* -------- Breadcrumb -------- */
.breadcrumb { padding: var(--space-2) 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb span { margin: 0 6px; color: var(--color-text-light); }

/* -------- Page hero -------- */
.page-hero { padding-top: var(--space-4); padding-bottom: var(--space-3); background: white; }
.page-hero .lede { color: var(--color-text-muted); font-size: var(--text-lg); max-width: 760px; }
.lede { color: var(--color-text-muted); font-size: var(--text-lg); }

/* -------- Pricing -------- */
.pricing-hero {
  background: var(--color-primary);
  color: white;
  text-align: center;
  padding: var(--space-5) 0;
}
.pricing-hero h1 { color: white; }
.pricing-hero .lede { color: #cbd5e1; }
.pricing-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-3);
  margin-bottom: var(--space-5);
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.plan {
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-3);
  position: relative;
  display: flex; flex-direction: column;
}
.plan-featured { border-color: var(--color-accent); border-width: 2px; transform: scale(1.02); box-shadow: var(--shadow-lg); }
.plan-premier { border-color: var(--color-premier); }
.plan-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--color-accent); color: white;
  padding: 4px 14px; border-radius: 999px; font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.plan-head { margin-bottom: var(--space-2); }
.plan-head h2 { margin: 0 0 4px; }
.plan-price { font-size: var(--text-3xl); font-weight: 700; color: var(--color-primary); margin-bottom: 4px; }
.plan-price span { font-size: var(--text-base); color: var(--color-text-muted); font-weight: 400; }
.plan-sub { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; }
.plan-features { list-style: none; padding: 0; margin: var(--space-2) 0; display: grid; gap: 10px; flex: 1; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); }
.plan-features .fa-check { color: var(--color-success); }
.plan-features .fa-xmark { color: var(--color-text-light); }
.plan-features .muted { color: var(--color-text-light); }

.plan-compare { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.plan-compare th, .plan-compare td { padding: 14px; text-align: left; border-bottom: 1px solid var(--color-border); }
.plan-compare thead th { background: var(--color-bg); font-weight: 600; color: var(--color-primary); }
.plan-compare tbody td + td { text-align: center; }

/* -------- Contact -------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-4);
  max-width: 980px; margin: 0 auto;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 2fr; } }
.contact-info { background: var(--color-bg); padding: var(--space-3); border-radius: var(--radius-md); }
.contact-info h2 { margin-top: 0; }
.contact-info hr { border: none; border-top: 1px solid var(--color-border); margin: var(--space-3) 0; }
.contact-info i { color: var(--color-accent); width: 20px; }
.contact-form { background: white; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.contact-form label { display: block; margin-bottom: var(--space-2); font-weight: 500; font-size: var(--text-sm); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font: inherit; margin-top: 4px;
}

/* -------- Alerts -------- */
.alert { padding: var(--space-2); border-radius: var(--radius-md); margin-bottom: var(--space-2); display: flex; gap: 10px; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* -------- Forms -------- */
.auth-form label, .match-form-full label { display: block; margin-bottom: var(--space-2); font-weight: 500; font-size: var(--text-sm); }
.auth-form input, .auth-form select, .auth-form textarea,
.match-form-full input, .match-form-full select, .match-form-full textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font: inherit; margin-top: 4px; background: white;
}
.auth-form input:focus, .match-form-full input:focus,
.auth-form select:focus, .match-form-full select:focus,
.auth-form textarea:focus, .match-form-full textarea:focus {
  outline: 2px solid var(--color-accent); border-color: var(--color-accent);
}
.auth-help { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); text-align: center; }

.match-container { max-width: 760px; margin: 0 auto; }
.match-hero { background: linear-gradient(135deg, var(--color-primary), #1e3a5f); color: white; padding: var(--space-5) 0; }
.match-hero h1 { color: white; }
.match-hero .lede { color: #cbd5e1; }
.match-benefits { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: var(--space-2) 0 0; }
.match-benefits li { color: white; font-size: var(--text-sm); }
.match-benefits i { color: var(--color-accent); margin-right: 6px; }
.match-progress { display: flex; gap: var(--space-1); margin-bottom: var(--space-3); flex-wrap: wrap; }
.mp-step { flex: 1; padding: 10px; background: var(--color-bg); border-radius: var(--radius-sm); display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--color-text-muted); }
.mp-step.active { background: var(--color-accent); color: white; }
.mp-step span { background: rgba(0,0,0,0.2); color: white; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: var(--text-xs); font-weight: 700; }
.mp-step.active span { background: rgba(255,255,255,0.3); }
.mf-section { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); margin-bottom: var(--space-2); background: white; }
.mf-section legend { padding: 0 10px; font-weight: 700; color: var(--color-primary); }
.mf-row { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
@media (min-width: 640px) { .mf-row { grid-template-columns: repeat(3, 1fr); } }
.mf-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.mf-consent input { width: auto; margin-top: 4px; }
.match-thanks { padding: var(--space-4); }

.rating-picker { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.rating-picker span { flex: 0 0 180px; }
.rating-picker select { width: auto; margin: 0; }

/* -------- Inline match CTA -------- */
.inline-match-cta {
  display: grid; grid-template-columns: 1fr; gap: var(--space-2);
  background: var(--color-primary); color: white;
  padding: var(--space-3); border-radius: var(--radius-md);
  align-items: center;
}
@media (min-width: 768px) { .inline-match-cta { grid-template-columns: 1fr auto; } }
.inline-match-cta h3 { color: white; margin: 0 0 4px; }
.inline-match-cta p { color: #cbd5e1; margin: 0; font-size: var(--text-sm); }

/* -------- Footer -------- */
.site-footer { background: var(--color-primary); color: #cbd5e1; padding-top: var(--space-5); margin-top: var(--space-5); }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-3);
  padding-bottom: var(--space-4);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); } }
.footer-col h3 { color: white; font-size: var(--text-base); margin-bottom: var(--space-2); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #cbd5e1; font-size: var(--text-sm); }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-tag { font-size: var(--text-sm); margin: var(--space-2) 0; color: #94a3b8; }
.social { display: flex; gap: 10px; }
.social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.social a:hover { background: var(--color-accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: var(--space-2) 0; font-size: var(--text-xs); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); align-items: center; }
.footer-bottom ul { display: flex; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.footer-bottom a { color: #94a3b8; }

/* -------- Floating match CTA -------- */
.floating-match {
  position: fixed;
  bottom: var(--space-2); right: var(--space-2);
  background: var(--color-accent);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-sm);
}
.floating-match:hover { background: var(--color-accent-dark); color: white; text-decoration: none; transform: translateY(-2px); }
@media (max-width: 767px) {
  .floating-match { left: var(--space-2); right: var(--space-2); bottom: 10px; justify-content: center; }
}

/* -------- Empty / pagination / prose -------- */
.empty-state { text-align: center; padding: var(--space-5) var(--space-2); color: var(--color-text-muted); background: white; border: 1px dashed var(--color-border); border-radius: var(--radius-md); }
.empty-state i { font-size: 2rem; margin-bottom: var(--space-2); color: var(--color-text-light); }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: var(--space-4) 0; font-size: var(--text-sm); }
.pagination a, .pagination span, .pagination .pag-current {
  padding: 8px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: white; color: var(--color-text); text-decoration: none; min-width: 40px; text-align: center;
}
.pagination a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pagination .pag-current { background: var(--color-primary); color: white; border-color: var(--color-primary); font-weight: 600; }
.pagination .pag-gap { border: none; background: transparent; }

.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: var(--space-4); }
.prose ul { padding-left: var(--space-3); }
.prose li { margin-bottom: 8px; }

/* -------- Dashboard -------- */
.dashboard { padding-top: var(--space-2); padding-bottom: var(--space-5); }
.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 1024px) { .dashboard-grid { grid-template-columns: 240px 1fr; } }
.dash-side {
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-2);
  height: fit-content;
}
.dash-user { display: flex; align-items: center; gap: 10px; padding: var(--space-1) 0 var(--space-2); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-2); }
.dash-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary); color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.dash-name { font-weight: 600; }
.dash-role { font-size: var(--text-xs); color: var(--color-text-muted); }
.dash-side nav { display: grid; gap: 4px; }
.dash-side nav a { padding: 8px 10px; border-radius: var(--radius-sm); color: var(--color-text); font-size: var(--text-sm); }
.dash-side nav a:hover, .dash-side nav a.active { background: var(--color-bg); color: var(--color-accent); text-decoration: none; }
.dash-main { background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); }
.dash-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); margin: var(--space-2) 0 var(--space-3); }
@media (min-width: 768px) { .dash-stats { grid-template-columns: repeat(4, 1fr); } }
.ds { background: var(--color-bg); padding: var(--space-2); border-radius: var(--radius-md); }
.ds-num { font-size: var(--text-2xl); font-weight: 700; color: var(--color-primary); }
.ds-lbl { font-size: var(--text-xs); color: var(--color-text-muted); }
.dash-cta { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-3); }
.dash-block { padding: var(--space-3) 0; border-top: 1px solid var(--color-border); }
.dash-block:first-of-type { border-top: none; padding-top: 0; }
.dash-list { display: grid; gap: var(--space-2); }
.dash-row { padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.review-snip { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: 6px; }

/* -------- Admin -------- */
.admin-search { display: flex; gap: 8px; margin-bottom: var(--space-2); }
.admin-search input { flex: 1; padding: 10px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.admin-table { width: 100%; border-collapse: collapse; background: white; font-size: var(--text-sm); }
.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid var(--color-border); text-align: left; }
.admin-table thead th { background: var(--color-bg); font-weight: 600; }
.admin-table .actions { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: var(--space-2); }
.admin-tabs a { padding: 8px 14px; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text); font-size: var(--text-sm); }
.admin-tabs a.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.admin-review { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-2); margin-bottom: var(--space-2); }
.admin-review header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: var(--text-sm); margin-bottom: 8px; }

/* -------- Accessibility & motion -------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
