/* BidTabIntel — Authoritative US B2B Municipal Bid Intelligence Stylesheet */
:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-navy: #0b1324;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --emerald: #047857;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  --red: #b91c1c;
  --red-bg: #fef2f2;
  --red-border: #fecaca;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--bg-navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.94rem;
  font-weight: 500;
}
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); text-decoration: none; }
.nav-links a.active { font-weight: 700; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-dark {
  background: var(--bg-navy);
  color: #fff;
}
.btn-dark:hover { background: #1e293b; color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--bg-subtle); border-color: var(--ink-soft); }
.btn-sm { padding: 8px 14px; font-size: 0.88rem; }

/* Badges & Redaction */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge-hot { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.badge-warn { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.badge-ok { background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald-border); }
.badge-neutral { background: var(--bg-subtle); color: var(--ink-soft); border: 1px solid var(--border); }

.redact {
  display: inline-block;
  background: var(--ink);
  color: transparent;
  border-radius: 3px;
  padding: 0 6px;
  user-select: none;
  line-height: 1.2;
  letter-spacing: 0.05em;
  vertical-align: baseline;
}
.redact-note {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Hero */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}
.hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 26px;
  max-width: 58ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.86rem;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.trust-strip strong { color: var(--ink); }

/* Dossier Preview Card */
.dossier-card {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.dossier-card-header {
  background: var(--bg-navy);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dossier-card-header span { font-size: 0.84rem; font-weight: 600; color: #e2e8f0; }
.sample-tag {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dossier-card-body { padding: 18px; }
.signal-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.signal-row:last-child { border-bottom: none; padding-bottom: 0; }
.signal-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}
.signal-agency { font-weight: 700; font-size: 0.94rem; color: var(--ink); }
.signal-detail { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }
.signal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Sections */
.section { padding: 64px 0; }
.section-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}
.section-head h2 {
  margin: 10px 0 10px;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.section-head p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* Comparison Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
tr:last-child td { border-bottom: none; }
.yes { color: var(--emerald); font-weight: 700; }
.no { color: var(--muted); }

/* Bar Chart (Bid Spread Visual) */
.bar-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.bar-item { display: grid; grid-template-columns: 165px 1fr 98px; gap: 12px; align-items: center; font-size: 0.85rem; }
.bar-track { background: #e2e8f0; border-radius: 6px; height: 18px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: #64748b; }
.bar-fill.win { background: var(--emerald); }
.bar-fill.close { background: var(--accent); }
.bar-fill.high { background: #94a3b8; }
.bar-fill.dq { background: var(--red); opacity: 0.75; }

/* Pricing Cards */
.pricing-card {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.pricing-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
}
.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 8px;
}
.price-num { font-size: 2.35rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.price-unit { color: var(--muted); font-size: 0.94rem; }
.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 800;
  margin-right: 9px;
}

/* Agency Pills */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item h3 { margin: 0 0 6px; font-size: 1.02rem; }
.faq-item p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }

/* CTA Banner */
.cta-box {
  background: var(--bg-navy);
  color: #fff;
  border-radius: 14px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-box h2 { margin: 0 0 8px; font-size: 1.6rem; color: #fff; }
.cta-box p { margin: 0; color: #cbd5e1; max-width: 58ch; font-size: 0.96rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 36px 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); }
.disclaimer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 44px 0; }
  .bar-item { grid-template-columns: 120px 1fr 82px; font-size: 0.78rem; }
  .nav-links { gap: 14px; font-size: 0.86rem; }
  .nav-links a { white-space: nowrap; }
  .nav-hide-mobile { display: none; }
}
@media (max-width: 520px) {
  .nav-inner { flex-wrap: wrap; padding: 10px 0; min-height: auto; gap: 8px; }
  .nav-links { width: 100%; justify-content: flex-start; gap: 18px; border-top: 1px solid var(--border); padding-top: 8px; }
}

/* Print Stylesheet for 1-Page Sample Dossier */
@media print {
  body { background: #fff; font-size: 11px; line-height: 1.38; }
  .no-print { display: none !important; }
  .dossier-sheet { box-shadow: none !important; border: none !important; margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
  @page { size: letter; margin: 0.45in; }
}
