:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-soft: #ecfdf5;
  --slate: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--emerald-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.mt-20 { margin-top: 20px; }

/* Top Bar */
.top-bar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-bar-links { display: flex; gap: 18px; align-items: center; }
.top-bar a { color: #f8fafc; font-weight: 500; }
.top-partner-link { color: #34d399 !important; font-weight: 600; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  color: var(--navy);
  text-decoration: none !important;
}
.brand-logo-light { color: var(--white); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--emerald);
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
}
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--navy-2); font-weight: 500; font-size: 14.5px; }
.main-nav a:hover { color: var(--emerald-dark); text-decoration: none; }
.main-nav .nav-highlight {
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--navy); display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--emerald); color: var(--white); }
.btn-primary:hover { background: var(--emerald-dark); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { background: var(--white); border-color: var(--border); color: var(--navy); }
.btn-outline:hover { border-color: var(--emerald); color: var(--emerald-dark); }

/* Breadcrumbs */
.breadcrumbs {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--slate); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 100%);
  padding: 48px 0 60px;
  border-bottom: 1px solid var(--border);
}
.hero-partner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
}
.hero-partner .hero-sub { color: #cbd5e1; }
.hero-partner .aeo-capsule { background: rgba(255,255,255,0.08); border-color: #34d399; color: #f1f5f9; }
.hero-partner .trust-stats strong { color: #34d399; }
.hero-partner .trust-stats span { color: #cbd5e1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.eyebrow-light { background: rgba(52, 211, 153, 0.16); color: #34d399; }
h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
.text-accent { color: var(--emerald); }
.hero-sub { font-size: 17px; color: var(--slate); margin: 0 0 20px; }

/* AEO Answer Capsule */
.aeo-capsule {
  background: var(--white);
  border-left: 4px solid var(--emerald);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 14.5px;
  color: var(--navy-2);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  margin-bottom: 22px;
}

/* Quick Finder */
.quick-finder {
  display: flex;
  gap: 10px;
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.qf-field { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.qf-field label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.qf-field select {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--bg-light);
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 10px;
}
.trust-stats strong { display: block; font-size: 20px; color: var(--navy); }
.trust-stats span { font-size: 12.5px; color: var(--muted); }

.pseo-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.hl-item {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 8px;
}
.hl-item span { display: block; font-size: 12px; color: var(--muted); }
.hl-item strong { font-size: 15px; color: var(--navy); }

/* Lead Card & Intent Tabs */
.intent-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.intent-tab {
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--slate);
  cursor: pointer;
}
.intent-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.lead-card {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.lead-card-header h3 { margin: 8px 0 6px; font-size: 20px; }
.lead-card-header p { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); }
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }

.form-group { margin-bottom: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; color: var(--navy-2); }
.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus { outline: 2px solid var(--emerald); border-color: var(--emerald); }
.form-trust-note { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.form-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
}
.form-feedback.success { background: var(--emerald-soft); color: #065f46; border: 1px solid #a7f3d0; }
.form-feedback.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Sections & Grids */
.section { padding: 60px 0; }
.bg-light { background: var(--bg-light); }
.bg-navy { background: var(--navy); }
.text-white { color: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-tag { font-size: 11.5px; font-weight: 700; color: var(--emerald-dark); text-transform: uppercase; }
.card h3 { margin: 0; font-size: 18px; }
.card h3 a { color: var(--navy); }
.card p { margin: 0; font-size: 14px; color: var(--slate); flex: 1; }
.card-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 10px; }

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.city-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--navy);
  text-decoration: none !important;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.city-card:hover { border-color: var(--emerald); transform: translateY(-2px); }
.city-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.city-card h3 { margin: 0; font-size: 17px; }
.city-badge { font-size: 12px; font-weight: 600; background: var(--emerald-soft); color: var(--emerald-dark); padding: 3px 8px; border-radius: 999px; }
.city-card p { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.city-hubs-preview { font-size: 12.5px !important; color: var(--slate) !important; }
.link-arrow { font-size: 13.5px; font-weight: 600; color: var(--emerald-dark); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--bg-light); font-weight: 700; color: var(--navy); }
.price-pill { background: var(--emerald-soft); color: var(--emerald-dark); padding: 4px 9px; border-radius: 6px; font-weight: 600; font-size: 13px; white-space: nowrap; }

/* Split Banner */
.split-banner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; }
.split-banner p { color: #cbd5e1; }
.banner-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metric-box { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); padding: 20px; border-radius: var(--radius); }
.metric-box strong { display: block; font-size: 26px; color: #34d399; }
.metric-box span { font-size: 13px; color: #cbd5e1; }

/* Two-col & Checklists */
.two-col-content { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.checklist-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.checklist-card h3 { margin: 0 0 12px; font-size: 18px; }
.check-list, .doc-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.check-list li::marker { color: var(--emerald); }
.check-list-light { margin: 16px 0 24px; color: #e2e8f0; }

.jurisdiction-box { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.jurisdiction-box h3 { margin: 0 0 12px; font-size: 17px; }
.jurisdiction-box dl { margin: 0; display: grid; gap: 10px; }
.jurisdiction-box dt { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.jurisdiction-box dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 500; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.step-num { display: inline-block; font-weight: 800; font-size: 13px; color: var(--emerald-dark); background: var(--emerald-soft); padding: 4px 10px; border-radius: 6px; margin-bottom: 10px; }
.step-card h3 { margin: 0 0 8px; font-size: 17px; }
.step-card p { margin: 0; font-size: 14px; color: var(--slate); }

/* FAQs */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; }
.faq-item summary { font-weight: 600; cursor: pointer; font-size: 15.5px; }
.faq-body p { margin: 10px 0 0; color: var(--slate); font-size: 14.5px; }

/* Internal Linking Mesh */
.mesh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mesh-box { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.mesh-box h3 { margin: 0 0 14px; font-size: 18px; }
.mesh-links { display: flex; flex-wrap: wrap; gap: 10px; }
.mesh-links a {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--navy-2);
}
.mesh-links a:hover { border-color: var(--emerald); color: var(--emerald-dark); text-decoration: none; }

/* Footer */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand p { font-size: 13.5px; line-height: 1.65; margin: 14px 0; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.footer-contact a, .footer-col a { color: #cbd5e1; }
.footer-col h4 { color: var(--white); margin: 0 0 14px; font-size: 15px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-meta-links { display: flex; gap: 18px; }
.footer-meta-links a { color: #94a3b8; }

@media (max-width: 960px) {
  .hero-grid, .split-banner, .two-col-content, .mesh-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 18px 20px; border-bottom: 1px solid var(--border); align-items: flex-start; }
  .main-nav.open { display: flex; }
  .mobile-menu-btn { display: flex; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Calculators & Guides */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.calc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.calc-card h2 { font-size: 20px; margin: 8px 0 16px; }
.calc-result {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-top: 14px;
}
.res-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; color: var(--slate); }
.res-banner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}
.guide-article h1 { margin-top: 4px; }
.guide-article h2 { margin-top: 28px; font-size: 22px; }
.guide-article p { color: var(--slate); font-size: 16px; }

/* Sticky Mobile CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--navy);
  padding: 10px 14px;
  gap: 10px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.18);
}
.mobile-sticky-cta a { flex: 1; text-align: center; }
@media (max-width: 768px) {
  .mobile-sticky-cta { display: flex; }
  body { padding-bottom: 64px; }
}
