/* ==========================================================================
   LLC Entity Search — Authoritative Editorial-Fintech Design System (2026)
   Zero external font blocking | High contrast WCAG AA+ | Tabular numerics
   ========================================================================== */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --ink-muted: #475569;
  --navy: #0b2545;
  --navy-deep: #071930;
  --navy-soft: #133c6e;
  --emerald: #047857;
  --emerald-bright: #059669;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --rose: #be123c;
  --rose-bg: #fff1f2;
  --rose-border: #fecdd3;
  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;
  --blue-ink: #1d4ed8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(11, 37, 69, 0.16);
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max-w: 1180px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.num, td[data-num], .stat-value {
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--navy-soft);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { color: var(--emerald); }

:focus-visible {
  outline: 3px solid var(--emerald-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Disclosure top strip */
.disclosure-bar {
  background: var(--navy-deep);
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.disclosure-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.disclosure-bar a { color: #6ee7b7; text-decoration: none; font-weight: 600; }
.disclosure-bar a:hover { text-decoration: underline; }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--emerald) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-secondary);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: var(--surface-alt);
  color: var(--navy);
}
.nav-cta {
  background: var(--emerald) !important;
  color: #fff !important;
}
.nav-cta:hover { background: var(--navy) !important; color: #fff !important; }

.mobile-menu-btn {
  display: none;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 85% 15%, rgba(5, 150, 105, 0.22), transparent 42%),
              linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 62%, #10325c 100%);
  color: #fff;
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(110, 231, 183, 0.35);
  color: #a7f3d0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.13;
  letter-spacing: -0.025em;
  max-width: 860px;
}
.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(16px, 1.9vw, 19px);
  color: #dbeafe;
  max-width: 760px;
  line-height: 1.55;
}

/* Hero Search Card */
.hero-search-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 920px;
}
.hero-search-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.input, .select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--emerald-bright);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-bright); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--navy); background: var(--surface-alt); color: var(--navy); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }

/* Trust Strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  font-size: 13.5px;
  color: #e2e8f0;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #cbd5e1;
  margin-bottom: 14px;
}
.breadcrumbs a { color: #93c5fd; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: #fff; }

/* Sections & Cards */
.section { padding: 48px 0; }
.section-tight { padding: 32px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.section-header h2 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: -0.02em;
  color: var(--navy);
}
.section-sub {
  margin: 6px 0 0;
  color: var(--ink-muted);
  max-width: 680px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-highlight {
  border-color: var(--emerald-border);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}
.card-warning {
  border-color: var(--amber-border);
  background: var(--amber-bg);
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: -28px 0 32px;
  position: relative;
  z-index: 10;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
}
.kpi-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin: 4px 0 2px;
  letter-spacing: -0.02em;
}
.kpi-note { font-size: 13px; color: var(--ink-muted); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-emerald { background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald-border); }
.badge-blue { background: var(--blue-bg); color: var(--blue-ink); border: 1px solid var(--blue-border); }
.badge-amber { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.badge-rose { background: var(--rose-bg); color: var(--rose); border: 1px solid var(--rose-border); }
.badge-slate { background: var(--surface-alt); color: var(--ink-secondary); border: 1px solid var(--border); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

/* Filter Toolbar & Tables */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--ink-secondary);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.pill:hover { border-color: var(--navy); color: var(--navy); }
.pill.active, .pill[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
thead th {
  text-align: left;
  background: var(--surface-alt);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }

.cost-bar-track {
  width: 96px;
  height: 7px;
  background: var(--surface-alt);
  border-radius: 999px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}
.cost-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--emerald-bright);
}
.cost-bar-fill.high { background: var(--rose); }
.cost-bar-fill.mid { background: var(--amber); }

/* 1-Question Intent Router (Frey Chu Methodology) */
.intent-router {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}
.intent-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.intent-btn {
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.intent-btn:hover { border-color: var(--emerald); background: var(--emerald-bg); }
.intent-btn.active {
  border-color: var(--emerald);
  background: var(--emerald-bg);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}
.intent-btn strong { display: block; color: var(--navy); font-size: 14.5px; margin-bottom: 3px; }
.intent-btn span { display: block; color: var(--ink-muted); font-size: 12.5px; }
.intent-result {
  margin-top: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--emerald-border);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-sm);
}

/* Interactive Name Checker Result */
.check-result {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
}
.check-result.pass { background: var(--emerald-bg); border-color: var(--emerald-border); }
.check-result.warn { background: var(--amber-bg); border-color: var(--amber-border); }
.check-list { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 6px; font-size: 14px; }

/* Calculator & SVG Charts */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.svg-chart {
  width: 100%;
  height: auto;
  display: block;
}

/* Offer Cards */
.offer-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.offer-card.featured {
  border-color: var(--emerald);
  box-shadow: var(--shadow-md);
}
.offer-card h3 { margin: 0; font-size: 18px; color: var(--navy); }
.offer-price { font-size: 14px; font-weight: 700; color: var(--emerald); }

/* Sidebar */
.sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 86px;
}
.agency-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
}
.agency-box h3 { margin: 0 0 10px; font-size: 17px; color: #fff; }
.agency-box p { margin: 6px 0; font-size: 14px; color: #cbd5e1; }
.agency-box a.btn { width: 100%; margin-top: 12px; }

/* Steps & Editorial Content */
.prose h2 {
  font-size: 24px;
  color: var(--navy);
  margin: 34px 0 12px;
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.prose h3 { font-size: 18px; color: var(--navy); margin: 22px 0 8px; }
.prose p { margin: 0 0 14px; color: var(--ink-secondary); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-secondary); }
.prose li { margin-bottom: 8px; }

.step-list { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.step-list li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px 16px 58px;
  position: relative;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ Accordion */
.faq-list { display: grid; gap: 12px; }
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
details.faq-item summary {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--emerald);
  font-weight: 700;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p { margin: 12px 0 0; color: var(--ink-secondary); font-size: 15px; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #cbd5e1;
  padding: 52px 0 32px;
  margin-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer h4, .site-footer .footer-heading { color: #fff; margin: 0 0 12px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #6ee7b7; text-decoration: underline; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .mobile-menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .hero-search-grid, .intent-options, .calc-grid, .grid-2, .grid-3, .grid-4, .kpi-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid { margin-top: 16px; }
}

@media print {
  .disclosure-bar, .site-header, .intent-router, .site-footer, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
