/* BidScout marketing site — DARK "Signal" theme (2026-05-29): a near-black procurement
   instrument. Inter for all prose; a RESERVED monospace voice for DATA only (NAICS codes,
   prices, STEP labels, status tags, proof chips) so "source-backed / we show our work" reads
   as a visual fact. Calm, anti-hype. Teal accent is rationed to ~5% of the page.

   Plain static CSS, no build, NO JavaScript (CSP: script-src 'none') — every animation is
   pure CSS and honors prefers-reduced-motion. Deployed as Cloudflare Workers static assets
   (`npx wrangler deploy`).

   Contrast (WCAG AA verified on --bg #0b0f14): ink 15.6:1, ink-soft 8.0:1, teal text 7.4:1,
   dark-ink-on-teal button 7.6:1. NEVER put white text on a teal fill (fails AA).
   Semantic palette: green=match, amber=risk, red=dealbreaker, slate=unknown, violet=conflict. */
@font-face {
  font-family: "Inter";        /* self-hosted, same-origin (CSP default-src/font-src 'self') */
  font-style: normal;
  font-weight: 100 900;        /* variable weight axis — covers every weight used below */
  font-display: swap;
  src: url("/fonts/inter-var.woff2") format("woff2");
}
:root {
  --bg: #0b0f14;
  --surface: #10161d;
  --surface-alt: #161d26;
  --ink: #e9eef4;
  --ink-soft: #9aa7b6;
  --line: #212b36;
  --teal: #2bb7a8;            /* brightened brand teal — AA on dark for text/icons/strokes */
  --teal-hover: #38c8b8;
  --teal-soft: rgba(43,183,168,0.12);
  --live: #3ad29a;            /* the single green "Live" light */
  --btn-ink: #07121f;         /* dark ink ON teal fill (7.6:1, AAA) — never white-on-teal */
  --match: #46d98a;
  --risk: #e0a93a;
  --dealbreaker: #ef6a5b;
  --unknown: #9aa7b6;
  --conflict: #b08bf0;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--teal); }
a:hover { color: var(--teal-hover); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
/* The reserved "data voice": monospace, tabular numerals. Data only — never prose. */
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.soft { color: var(--ink-soft); }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: rgba(11,15,20,0.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand .the { color: var(--ink-soft); font-weight: 600; }
.brand .dot { color: var(--teal); }
.nav a { margin-left: 22px; text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav a.btn { color: var(--btn-ink); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 8px; color: var(--ink-soft); font-size: 14px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); text-decoration: none; margin-right: 16px; }
.site-footer a:hover { color: var(--ink); }
.site-footer .disclaimer { max-width: 640px; margin: 18px 0 0; font-size: 12.5px; color: var(--unknown); }

/* Buttons — primary is dark ink on a teal fill (AAA); secondary is a ghost or a text link. */
.btn { display: inline-block; background: var(--teal); color: var(--btn-ink); text-decoration: none; font-weight: 600;
  font-size: 15px; padding: 12px 22px; border-radius: 6px; border: 0; cursor: pointer; }
.btn:hover { background: var(--teal-hover); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--teal); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-link { color: var(--teal); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.btn-link:hover { color: var(--teal-hover); border-bottom-color: var(--teal); }

/* Hero — borderless, left-aligned instrument; faint hairline graticule fading out. */
.hero { position: relative; padding: 96px 0 56px; text-align: left; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 34px);
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(130% 90% at 28% -10%, #000 0%, transparent 68%);
          mask-image: radial-gradient(130% 90% at 28% -10%, #000 0%, transparent 68%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 18px; max-width: 17ch; }
.hero h1 .soft { color: var(--ink-soft); }
.hero .lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; margin: 0 0 28px; }
.niche { display: inline-block; font-family: var(--mono); font-size: 0.74rem; font-weight: 500; color: var(--ink-soft);
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 4px; margin-bottom: 22px; letter-spacing: 0.01em; }
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.proofrule { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.proofrule span { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.01em; }
.proofrule b { color: var(--teal); font-weight: 600; margin-right: 7px; letter-spacing: 0.06em; }
@media (max-width: 640px) { .hero { padding: 60px 0 40px; } }

/* Sections — left-aligned editorial; bands carry a subtle surface step, no heavy chrome. */
section.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
section.plain { padding: 64px 0; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; margin: 0 0 10px; text-align: left; font-weight: 640; }
.section-lede { text-align: left; color: var(--ink-soft); max-width: 60ch; margin: 0 0 36px; }
h3 { font-size: 1.125rem; margin: 10px 0 6px; }
.centered { text-align: center; }
.centered h2, .centered .section-lede { text-align: center; margin-left: auto; margin-right: auto; }

/* How it works — hairline-separated columns with mono STEP labels (no boxes). */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.grid-3 .card { background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 4px 28px; }
.grid-3 .card:first-child { border-left: 0; padding-left: 0; }
.card .n { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--teal); letter-spacing: 0.08em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 .card { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0; }
  .grid-3 .card:first-child { border-top: 0; padding-top: 0; }
}

/* "We show our work" — hairline-divided list, teal checks. */
.showwork ul { max-width: 720px; margin: 0; padding: 0; list-style: none; }
.showwork li { padding: 14px 0 14px 30px; position: relative; color: var(--ink-soft); font-size: 16px; border-bottom: 1px solid var(--line); }
.showwork li:last-child { border-bottom: 0; }
.showwork li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.showwork li b { color: var(--ink); }

/* Pricing — hairline columns, mono prices, one accent top-rule on the featured tier. */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tier { background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.tier:first-child { border-left: 0; }
.tier.featured { background: var(--surface-alt); }
.tier.featured::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--teal); }
.tier h3 { margin: 0 0 4px; font-size: 1.05rem; }
.tier .price { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; margin: 6px 0; letter-spacing: -0.01em; }
.tier .price small { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; color: var(--unknown); }
.tier .who { color: var(--ink-soft); font-size: 14px; margin: 0 0 14px; min-height: 40px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.tier li { padding: 6px 0 6px 22px; position: relative; }
.tier li::before { content: "\2713"; position: absolute; left: 0; color: var(--match); }
.tier .btn, .tier .btn-ghost { width: 100%; text-align: center; }
@media (max-width: 900px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .tier:nth-child(3) { border-left: 0; }
  .tier:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .tiers { grid-template-columns: 1fr; }
  .tier { border-left: 0; border-top: 1px solid var(--line); }
  .tier:first-child { border-top: 0; }
}
.beta-banner { background: var(--teal-soft); border: 1px solid rgba(43,183,168,0.25); border-radius: 8px; padding: 14px 18px; text-align: center; color: var(--teal); font-weight: 500; margin: 0 0 28px; }

/* FAQ */
.faq { max-width: 760px; margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 16px; color: var(--ink); }
.faq summary:hover { color: var(--teal); }
.faq p { color: var(--ink-soft); margin: 10px 0 0; }

/* Category coverage — ONE CSS-only rotating readout replaces the 8 chips.
   Honesty is structural (Live/Soon baked into each line's DOM) + the always-on caption +
   the reduced-motion freeze on Janitorial. Hover pauses the roll so a skeptic can read it. */
.coverage .kicker { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--teal); letter-spacing: 0.1em; margin: 0 0 14px; }
.rotator { display: flex; align-items: center; gap: 0.75rem; font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.rotator-label { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.08em; white-space: nowrap; }
.rotator-viewport { overflow: hidden; height: 1.5em; line-height: 1.5em; }
.rotator-track { display: flex; flex-direction: column; animation: cat-roll 27s infinite; will-change: transform; }
.rotor-item { height: 1.5em; line-height: 1.5em; display: flex; align-items: center; gap: 0.55rem; white-space: nowrap; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; display: inline-block; flex: none; }
.dot.live { background: var(--live); box-shadow: 0 0 0 3px rgba(58,210,154,0.16); }
.dot.soon { background: transparent; border: 1.5px solid var(--ink-soft); }
.tag { font-family: var(--mono); font-size: 0.58em; font-weight: 600; letter-spacing: 0.12em; padding: 0.18em 0.5em; border-radius: 3px; margin-left: 0.25rem; }
.tag.live { color: var(--live); background: rgba(58,210,154,0.12); }
.tag.soon { color: var(--ink-soft); background: rgba(154,167,182,0.12); }
.rotator:hover .rotator-track { animation-play-state: paused; }
.coverage-caption { color: var(--ink-soft); font-size: 0.92rem; margin: 20px 0 0; max-width: 72ch; }
.coverage-caption b { color: var(--ink); }
@keyframes cat-roll {
  0%, 10.5%   { transform: translateY(0); }
  12.5%, 23%  { transform: translateY(-1.5em); }
  25%, 35.5%  { transform: translateY(-3em); }
  37.5%, 48%  { transform: translateY(-4.5em); }
  50%, 60.5%  { transform: translateY(-6em); }
  62.5%, 73%  { transform: translateY(-7.5em); }
  75%, 85.5%  { transform: translateY(-9em); }
  87.5%, 98%  { transform: translateY(-10.5em); }
  100%        { transform: translateY(-12em); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }                          /* no smooth-scroll on anchor jumps */
  .rotator-track { animation: none; transform: none; will-change: auto; }  /* freeze on Janitorial = Live */
}
@media (max-width: 560px) {
  /* Stack the label above the readout + shrink, so long names (Building Maintenance,
     Landscaping & Grounds) get the full content width and never clip. */
  .rotator { flex-direction: column; align-items: flex-start; gap: 0.35rem; font-size: 1rem; }
  .rotator-label { font-size: 0.68rem; }
  .rotator-viewport { max-width: 100%; }
}

/* Sample report rendering */
.report { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.report h1 { font-size: 24px; margin: 0 0 4px; }
.report .meta { color: var(--unknown); font-size: 13px; margin-bottom: 22px; font-family: var(--mono); }
.opp { border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 16px 0; background: var(--surface-alt); }
.opp .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.opp h3 { margin: 0; font-size: 17px; }
.score { font-weight: 700; font-size: 22px; font-family: var(--mono); }
.rec { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.rec.strong { background: rgba(70,217,138,0.14); color: var(--match); }
.rec.review { background: rgba(224,169,58,0.14); color: var(--risk); }
.opp .reasons { font-size: 14px; color: var(--ink-soft); margin: 12px 0 0; padding-left: 18px; }
.badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; font-family: var(--mono); }
.badge.unknown { background: rgba(154,167,182,0.14); color: var(--unknown); }
.badge.evidence { background: var(--teal-soft); color: var(--teal); }

/* Prose (legal/about) */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { text-align: left; font-size: 22px; margin-top: 32px; }
.prose p, .prose li { color: var(--ink-soft); }
.muted { color: var(--unknown); font-size: 13px; }
