@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap");
/* GovRoute -- one file, phone-width first, no JS. */

:root {
  --bg: #0f1720;
  --panel: #16212c;
  --text: #e8edf2;
  --muted: #93a3b1;
  --accent: #4fa3ff;
  --ok: #3fbf7f;
  --wip: #d9a441;
  --border: #263140;
  --max-width: 680px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  padding: 0 16px 32px;
}

header.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 0 8px;
}

header.site-header h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

header.site-header .tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
}

section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

section h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

section.intro p {
  margin: 0;
}

.build-status-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0;
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.status-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.status-item:first-child {
  border-top: none;
}

.status-piece {
  font-weight: 600;
  flex: 1 1 40%;
}

.status-badge {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--border);
  color: var(--muted);
  white-space: nowrap;
}

.status-item.status-live .status-badge,
.status-item.status-done .status-badge {
  background: rgba(63, 191, 127, 0.15);
  color: var(--ok);
}

.status-item.status-in-build .status-badge {
  background: rgba(217, 164, 65, 0.15);
  color: var(--wip);
}

.status-note {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-empty {
  color: var(--muted);
}

a {
  color: var(--accent);
}

footer.site-footer {
  max-width: var(--max-width);
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Sign-up form */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.signup-form input {
  font-size: 1rem;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.signup-form button {
  font-size: 1rem;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #06131f;
  font-weight: 600;
  cursor: pointer;
}

.error-text {
  color: #ff8a8a;
}

/* Bid list */
.scan-line {
  color: var(--muted);
  font-size: 0.9rem;
}

.bid-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bid-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.bid-item:first-child {
  border-top: none;
}

.bid-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.unknown-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 16px;
}

.unknown-bids {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.unknown-bids summary {
  cursor: pointer;
  color: var(--wip);
  font-size: 0.9rem;
}

.unknown-bids .bid-items {
  margin-top: 8px;
}

/* Bid detail */
.bid-fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
}

.bid-fields dt {
  color: var(--muted);
  font-weight: 600;
}

.bid-fields dd {
  margin: 0;
}

.requirements-text {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.85rem;
  max-height: 60vh;
  overflow-y: auto;
}

/* Wider screens: a little more breathing room, still one column. */
@media (min-width: 720px) {
  body {
    padding: 0 24px 48px;
  }
}

/* Landing page: feature list, how-it-works steps, tier table
   (added 2026-09-18 for the public landing page build). */
.feature-list,
.steps-list {
  margin: 0;
  padding-left: 20px;
}

.feature-list li,
.steps-list li {
  margin-bottom: 10px;
}

.feature-list li:last-child,
.steps-list li:last-child {
  margin-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
}

table.tier-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 0.92rem;
}

table.tier-table th,
table.tier-table td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.tier-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 4px 0 0;
}

/* Public marketing pages: shared nav, footer links, and page-specific
   bits (added 2026-09-18 for the /how-it-works, /pricing, /about,
   /contact, /terms, /privacy build). Appended only -- nothing above
   this line was edited. */

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 0 0;
}

.site-nav-brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
}

.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.9rem;
}

.site-nav-links a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav-links a:hover,
.site-nav-links a:focus {
  color: var(--accent);
}

.site-nav-links .site-nav-cta {
  color: var(--accent);
  font-weight: 600;
}

.site-footer-links {
  margin: 0 0 4px;
}

.site-footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.site-footer-links a:hover,
.site-footer-links a:focus {
  color: var(--accent);
}

.section-link {
  margin: 12px 0 0;
  font-size: 0.92rem;
}

.tier-summary-list {
  margin: 0;
  padding-left: 20px;
}

.tier-summary-list li {
  margin-bottom: 8px;
}

.tier-summary-list li:last-child {
  margin-bottom: 0;
}

.draft-flag {
  color: var(--wip);
  font-weight: 600;
}

.draft-note {
  color: var(--muted);
  font-size: 0.9rem;
  border-left: 3px solid var(--border);
  padding-left: 12px;
}

.legal-draft h2 {
  margin-top: 20px;
}

.legal-draft h2:first-of-type {
  margin-top: 0;
}

.about p,
.contact p,
.legal-draft p {
  margin: 0 0 12px;
}

.about p:last-child,
.contact p:last-child,
.legal-draft > p:last-child {
  margin-bottom: 0;
}

/* Light theme: same restrained blue-grey palette, inverted for a light
   background, so every page reads correctly under the viewer's system
   light setting as well as the dark default above. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --text: #1b2530;
    --muted: #5b6b7a;
    --accent: #1a62c4;
    --ok: #1f8a55;
    --wip: #a15b0a;
    --border: #dde3e8;
  }

  .signup-form button {
    color: #ffffff;
  }
}


/* Feel pass (2026-09-18, Boss ask: "buttery... not the macOS style").
   Appended only -- nothing above this line was edited. One shared
   stylesheet, no template copy touched, no JS (this app stays "one
   file, phone-width first, no JS" per the header comment above).
   Reference studied: jpegmafia.net (a Webflow site skinned as a full
   macOS desktop -- draggable windows, dock, traffic-light buttons,
   Notes/Mail/Safari chrome). We take the motion primitives that made
   it feel smooth (long ease-out curves, transform+opacity only,
   staggered reveal, hover lifts, backdrop blur) and leave out every
   piece of desktop-window chrome and its traffic-light red/yellow/
   green semantics -- none of that belongs on a contractor tool.
   See claude-shared/proposed/GOVROUTE-DESIGN-REFERENCE-20260918.md
   for the cited values this is built from. */

:root {
  /* Display face only (headings, brand, buttons); body keeps the
     existing native UI stack above -- fast, no flash of unstyled
     text on the copy-heavy pages. Real fallback stack if the Google
     Fonts request is blocked or slow. */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale (values already in use above, named here so new
     rules draw from the same scale instead of inventing pixels). */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  /* One easing family: a slow-out curve (matches the reference's
     cubic-bezier(.22,1,.36,1) stagger-reveal curve), plus the
     durations it's used at. Transform + opacity only, per the brief. */
  --ease-buttery: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 200ms;
  --dur-base: 320ms;
  --dur-slow: 480ms;
}

header.site-header h1,
.site-nav-brand,
section h2 {
  font-family: var(--font-display);
}

/* Buttery motion: transform + opacity/box-shadow only, one easing
   family, inside prefers-reduced-motion: no-preference so a visitor
   who has asked for less motion gets the exact same page with none
   of this. Nothing here changes layout at rest -- it only changes
   how things arrive and respond to hover/focus. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  @keyframes govroute-rise-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  header.site-header,
  main > section {
    animation: govroute-rise-in var(--dur-slow) var(--ease-buttery) both;
  }

  header.site-header { animation-delay: 0ms; }
  main > section:nth-of-type(1) { animation-delay: 60ms; }
  main > section:nth-of-type(2) { animation-delay: 120ms; }
  main > section:nth-of-type(3) { animation-delay: 180ms; }
  main > section:nth-of-type(4) { animation-delay: 240ms; }
  main > section:nth-of-type(5) { animation-delay: 300ms; }
  main > section:nth-of-type(n+6) { animation-delay: 360ms; }

  .signup-form button,
  .site-nav-links .site-nav-cta,
  .bid-item {
    transition: transform var(--dur-fast) var(--ease-buttery),
                box-shadow var(--dur-fast) var(--ease-buttery);
  }

  .signup-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 163, 255, 0.28);
  }

  .site-nav-links .site-nav-cta:hover {
    transform: translateY(-1px);
  }

  section:has(> .bid-items) .bid-item:hover {
    transform: translateY(-1px);
  }
}

/* Colour transition and focus-visible softening stay outside the
   reduced-motion gate -- they are not the kind of motion that ask is
   about (no transform, no page-load animation), and losing focus
   visibility for reduced-motion users would be a regression, not a
   courtesy. */
.site-nav-links a,
a {
  transition: color var(--dur-fast) ease-out;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  transition: outline-color var(--dur-fast) ease-out;
}

/* Astra / 2026-09-21: public-site desktop composition.
   References: JPEGMAFIA motion, Linear display/nav hierarchy, USA.gov navy/white layout;
   no desktop simulation, glass, window controls or copied assets.
   Public navigation scopes this pass away from the subscriber application. */
body:has(> .site-nav) {
  --max-width: 1440px;
  --bg: #ffffff;
  --panel: #f2f5f8;
  --text: #102f4e;
  --muted: #465a6f;
  --accent: #005ea2;
  --border: #cbd3dc;
  --font-display: "Space Grotesk", "Arial", sans-serif;
  background: var(--bg);
  padding: 0 clamp(20px, 4.5vw, 88px) 32px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color-scheme: light;
}
body:has(> .site-nav) .site-nav {
  min-height: 100px;
  padding: 24px 0;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}
body:has(> .site-nav) .site-nav-brand {
  font-size: 26px;
  letter-spacing: -.065em;
}
body:has(> .site-nav) .site-nav-links { align-items: center; gap: 28px; font-size: 14px; }
body:has(> .site-nav) .site-nav-links a { color: var(--text); }
body:has(> .site-nav) .site-nav-links .site-nav-cta {
  background: #b50909;
  color: #ffffff;
  padding: 11px 23px;
  border-radius: 2px;
}
body:has(> .site-nav) header.site-header { padding: 72px 0 48px; }
body:has(> .site-nav) header.site-header h1 {
  font-size: clamp(48px, 5.6vw, 88px);
  line-height: 1.03;
  letter-spacing: -.065em;
  font-weight: 600;
  max-width: 22ch;
  text-wrap: balance;
}
body:has(> .site-nav) header.site-header .tagline {
  margin-top: 26px;
  font-size: clamp(18px, 1.5vw, 24px);
  max-width: 55ch;
  line-height: 1.4;
}
body:has(> .site-nav) section {
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  border-radius: 0;
  padding: 38px 0;
  margin: 0;
  min-width: 0;
}
body:has(> .site-nav) section h2 {
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.15;
  letter-spacing: -.045em;
  margin-bottom: 24px;
  font-weight: 500;
}
body:has(> .site-nav) section p { max-width: 72ch; }
body:has(> .site-nav) section li { max-width: 76ch; }
body:has(> .site-nav) main:not(:has(> .intro)) { max-width: 1120px; margin-left: auto; margin-right: auto; }
body:has(> .site-nav) .section-link { margin-top: 24px; font-size: 15px; }
body:has(> .site-nav) .section-link a { text-underline-offset: 6px; }
/* Landing: Linear left-aligned display hierarchy + USA.gov navy/white stage. */
body:has(main > .intro) header.site-header {
  display: block;
  background: #102f4e;
  border-left: 8px solid #b50909;
  padding: 56px 64px 64px;
  margin-top: 32px;
}
body:has(main > .intro) header.site-header h1 {
  font-size: 24px;
  letter-spacing: -.04em;
  line-height: 1.2;
  color: #ffffff;
}
body:has(main > .intro) header.site-header .tagline {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 76px);
  letter-spacing: -.055em;
  line-height: 1.06;
  color: #ffffff;
  margin: 28px 0 0;
  max-width: 24ch;
  text-wrap: balance;
}
main:has(> .intro) { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 56px; }
main > .intro { grid-column: 1 / -1; }
body:has(> .site-nav) main > .intro { padding: 30px 0 54px; }
body:has(> .site-nav) main > .intro p { max-width: 74ch; color: var(--muted); font-size: 18px; }
main > .what-it-does { grid-column: 1 / -1; }
main > .what-it-does .feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  counter-reset: feature;
}
main > .what-it-does .feature-list li { margin: 0; color: var(--muted); font-size: 16px; }
main > .what-it-does .feature-list li::before {
  counter-increment: feature;
  content: "0" counter(feature);
  display: block;
  color: #b50909;
  font: 14px / 1.4 monospace;
  margin-bottom: 22px;
}
main > .what-it-does .feature-list strong {
  display: block;
  font: 500 24px / 1.2 var(--font-display);
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: 14px;
}
main > .how-it-works { grid-column: 1 / 8; }
main > .tiers { grid-column: 8 / -1; }
main > .who-its-for { grid-column: 1 / 6; }
main > .signup { grid-column: 6 / -1; scroll-margin-top: 24px; }
body:has(> .site-nav) .steps-list li { padding-left: 8px; margin-bottom: 20px; }
body:has(> .site-nav) .steps-list li::marker { color: var(--accent); font-family: monospace; }
body:has(> .site-nav) .tier-summary-list { list-style: none; padding: 0; }
body:has(> .site-nav) .tier-summary-list li { padding-bottom: 20px; }
body:has(> .site-nav) .signup-form { gap: 18px; }
body:has(> .site-nav) .signup-form label { color: var(--muted); gap: 8px; line-height: 1.5; }
body:has(> .site-nav) .signup-form input {
  border-radius: 2px;
  background: var(--panel);
  padding: 14px;
  min-height: 50px;
  width: 100%;
  min-width: 0;
}
body:has(> .site-nav) .signup-form button {
  border-radius: 2px;
  min-height: 54px;
  background: #b50909;
  color: #ffffff;
  font-family: var(--font-display);
}
body:has(> .site-nav) table.tier-table { font-size: 16px; }
body:has(> .site-nav) table.tier-table th,
body:has(> .site-nav) table.tier-table td { padding: 18px 16px; }
body:has(> .site-nav) table.tier-table th { background: var(--panel); }
body:has(> .site-nav) footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding-top: 28px;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}
body:has(> .site-nav) a:hover { color: var(--text); }
body:has(> .site-nav) :is(a, button, input, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
@media (max-width: 1000px) {
  body:has(> .site-nav) .site-nav-links { gap: 18px; }
  body:has(main > .intro) header.site-header { padding: 40px; }
  body:has(main > .intro) header.site-header .tagline { max-width: 30ch; }
  main:has(> .intro) { column-gap: 32px; }
  main > .what-it-does .feature-list { gap: 24px; }
  main > .who-its-for, main > .signup { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body:has(> .site-nav) { padding-left: 20px; padding-right: 20px; font-size: 16px; }
  body:has(> .site-nav) .site-nav { gap: 16px; padding: 20px 0; }
  body:has(> .site-nav) .site-nav-links { gap: 12px 16px; font-size: 13px; }
  body:has(> .site-nav) .site-nav-links .site-nav-cta { padding: 8px 14px; }
  body:has(> .site-nav) header.site-header { padding: 44px 0 32px; }
  body:has(main > .intro) header.site-header { padding: 28px 22px; border-left-width: 5px; margin-top: 20px; }
  body:has(main > .intro) header.site-header h1 { font-size: 20px; }
  body:has(main > .intro) header.site-header .tagline { font-size: clamp(30px, 8vw, 46px); margin-top: 22px; }
  main:has(> .intro) { display: block; }
  main > .what-it-does .feature-list { grid-template-columns: 1fr; gap: 32px; }
  main > .what-it-does .feature-list li::before { margin-bottom: 12px; }
  body:has(> .site-nav) section { padding: 30px 0; }
  body:has(> .site-nav) table.tier-table { font-size: 14px; }
  body:has(> .site-nav) table.tier-table th,
  body:has(> .site-nav) table.tier-table td { padding: 12px 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  body:has(> .site-nav) header.site-header,
  body:has(> .site-nav) main > section { animation-duration: 600ms; }
  body:has(> .site-nav) .signup-form button:hover { transform: translateY(-2px); box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  body:has(> .site-nav) *, body:has(> .site-nav) *::before { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
/* Current live contact form: reuse the same stacked, square-edged field pattern
   as signup. Markup, POST endpoint, validation and offscreen trap stay intact. */
body:has(> .site-nav) .contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin: 28px 0; }
body:has(> .site-nav) .contact-form label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: .9rem; }
body:has(> .site-nav) .contact-form :is(input, textarea) { width: 100%; min-width: 0; padding: 14px; min-height: 50px; border: 1px solid var(--border); border-radius: 2px; background: var(--panel); color: var(--text); font: inherit; }
body:has(> .site-nav) .contact-form textarea { min-height: 160px; resize: vertical; }
body:has(> .site-nav) .contact-form button { min-height: 54px; padding: 12px 24px; background: #b50909; color: #fff; border: 0; border-radius: 2px; font: 600 1rem var(--font-display); cursor: pointer; }
body:has(> .site-nav) .contact-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
