/* Fonts are served from this site (no request goes to Google). Latin subset, variable weights. Inter, JetBrains Mono and Source Serif 4 are open-source (SIL Open Font License 1.1). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(../fonts/source-serif-4-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Vanguard B2G Systems — site styles */
:root {
  --navy: #0F172A;
  --navy-2: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --bg-soft: #F8FAFC;
  --sky: #0EA5E9;
  --sky-light: #38BDF8;
  --sky-tint: #E0F2FE;
  --sky-wash: #F0F9FF;
  --link: #0369A1;
  --link-hover: #075985;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: 96px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--navy); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
h1, h2, h3, p, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; color: #fff; }

/* Typography helpers */
.eyebrow { font-size: 13px; letter-spacing: 0.16em; font-weight: 700; color: var(--link); text-transform: uppercase; }
.display { font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.h1 { font-size: clamp(40px, 5vw, 64px); }
.h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; }
.h2-sm { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; }
.lead { font-size: 20px; line-height: 1.6; color: var(--slate-600); }
.body-lg { font-size: 18px; line-height: 1.65; color: var(--slate-600); }
.mono { font-family: var(--mono); font-weight: 500; }
.stack { display: flex; flex-direction: column; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 8px; font: inherit; font-size: 16px; font-weight: 600; border: 0; cursor: pointer; text-align: center; white-space: nowrap; }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--slate-300); }
.btn-outline:hover { border-color: var(--slate-500); color: var(--navy); }
.btn-sky { background: var(--sky-light); color: var(--navy); font-weight: 700; }
.btn-sky:hover { background: #7DD3FC; color: var(--navy); }
.btn-ghost-dark { color: #fff; border: 1.5px solid var(--slate-600); }
.btn-ghost-dark:hover { border-color: var(--slate-300); color: #fff; }
.text-link { font-weight: 600; font-size: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--slate-200); }
.site-header .container { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1; }
.brand-sub { font-size: 9.5px; letter-spacing: 0.18em; font-weight: 600; color: var(--slate-600); margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.main-nav a:not(.btn) { color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.main-nav a:not(.btn):hover { color: var(--link); }
.main-nav a[aria-current="page"] { color: var(--link); font-weight: 700; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--navy); }

/* Sections */
.section { padding-top: 120px; padding-bottom: 120px; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #fff; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 104px; background: var(--bg-soft); }
.hero-copy { gap: 28px; }
.hero-copy .lead { max-width: 560px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Lead report card */
.report { background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; box-shadow: 0 24px 48px -24px rgba(15,23,42,.25); overflow: hidden; }
.report-head { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--slate-200); }
.report-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.report-to { font-size: 13px; color: var(--slate-500); margin-top: 4px; }
.pill { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--link-hover); background: var(--sky-tint); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.report-row { display: grid; grid-template-columns: 2.4fr 1fr .8fr; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--slate-100); align-items: center; }
.report-row.head { background: var(--bg-soft); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--slate-500); padding-top: 12px; padding-bottom: 12px; border-top: 0; }
.opp-name { font-weight: 600; font-size: 14px; }
.opp-dept { font-size: 12px; color: var(--slate-500); margin-top: 3px; }
.opp-value { font-family: var(--mono); font-size: 14px; }

/* Proof bar */
.proof { padding-top: 40px; padding-bottom: 40px; }
.proof .grid-4 { gap: 32px; }
.stat-num { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--sky-light); line-height: 1.15; }
.stat-label { font-size: 15px; color: var(--slate-300); margin-top: 6px; }

/* SignalPulse lockup */
.sp-lockup { display: flex; align-items: center; gap: .4em; font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--navy); }
.sp-lockup .pulse { color: var(--sky); }
.sp-lockup sup { font-size: .3em; font-weight: 700; }
.sp-lockup img { flex-shrink: 0; }
.sp-lockup.on-dark { color: #fff; }
.sp-lockup.on-dark .pulse { color: var(--sky-light); }

/* Feature cards */
.feature { display: flex; gap: 20px; padding: 28px; border: 1px solid var(--slate-200); border-radius: var(--radius); background: #fff; }
.feature svg { flex-shrink: 0; }
.feature-title { font-weight: 700; font-size: 18px; }
.feature-body { font-size: 16px; line-height: 1.55; color: var(--slate-600); margin-top: 6px; }

/* Service cards (home) */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.section-head .stack { gap: 16px; max-width: 760px; }
.svc-card { display: flex; flex-direction: column; gap: 16px; padding: 32px 28px; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); }
.svc-tag { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--link); }
.svc-card h3 { font-size: 22px; font-weight: 700; }
.svc-card p { font-size: 16px; line-height: 1.6; color: var(--slate-600); flex-grow: 1; }

/* Story */
.story { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.story blockquote { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; font-weight: 600; }
.story p { font-size: 18px; line-height: 1.7; color: var(--slate-600); }

/* CTA band */
.cta-band { margin-top: 0; margin-bottom: 120px; padding: 72px 80px; border-radius: 20px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta-band p { font-size: 18px; line-height: 1.6; color: var(--slate-300); margin-top: 14px; max-width: 720px; }

/* Footer */
.site-footer { padding-top: 56px; padding-bottom: 56px; background: var(--bg-soft); border-top: 1px solid var(--slate-200); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.footer-name { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.2; }
.footer-tagline { font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--link); margin-top: 4px; }
.footer-email { font-size: 15px; font-weight: 600; }
.footer-cols { display: flex; gap: 80px; font-size: 15px; }
.footer-cols .stack { gap: 12px; }
.footer-cols h2 { font-family: var(--sans); font-size: 15px; font-weight: 700; }
.footer-cols a { color: var(--slate-600); }
.footer-cols a:hover { color: var(--link); }
.legal { font-size: 13px; color: var(--slate-500); }

/* Products page */
.page-head { padding-top: 88px; padding-bottom: 72px; background: var(--bg-soft); }
.page-head .stack { gap: 20px; }
.page-head h1 { max-width: 980px; }
.page-head .lead { max-width: 800px; }
.chip-nav { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 16px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--slate-300); background: #fff; color: var(--navy); font-weight: 600; font-size: 15px; }
.chip:hover { border-color: var(--slate-500); color: var(--navy); }
.chip.is-primary { background: var(--navy); color: #fff; border-color: var(--navy); }

.flagship { padding-top: 96px; padding-bottom: 104px; }
.flagship-top { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; margin-bottom: 64px; }
.badge { align-self: flex-start; font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--navy); background: var(--sky-light); padding: 6px 12px; border-radius: 999px; }
.flagship-sub { font-family: var(--serif); font-size: 28px; line-height: 1.35; font-weight: 600; color: var(--slate-200); }
.flagship .body-lg { color: var(--slate-300); max-width: 680px; }
.stat-panel { display: flex; flex-direction: column; gap: 1px; background: #334155; border-radius: var(--radius); overflow: hidden; }
.stat-panel > div { padding: 28px; background: var(--navy-2); }
.step-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid #334155; border-radius: var(--radius); }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--sky-light); }
.step-title { font-weight: 700; font-size: 19px; }
.step-body { font-size: 16px; line-height: 1.6; color: var(--slate-300); }

.svc-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.svc-detail { display: flex; flex-direction: column; gap: 20px; padding: 40px; border: 1px solid var(--slate-200); border-radius: 16px; background: #fff; scroll-margin-top: 110px; }
.svc-detail h3 { font-family: var(--serif); font-size: 32px; font-weight: 700; }
.svc-detail > p { font-size: 17px; line-height: 1.6; color: var(--slate-600); }
.svc-detail ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--slate-700); flex-grow: 1; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--slate-100); }
.svc-foot span { font-size: 14px; color: var(--slate-500); }
.chooser { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--slate-200); color: var(--navy); }
.chooser:hover { border-color: var(--slate-500); color: var(--navy); }
.chooser .q { font-size: 15px; color: var(--slate-500); }
.chooser .a { font-weight: 700; font-size: 18px; }
[id] { scroll-margin-top: 100px; }

/* Form pages */
.form-hero { padding-top: 88px; padding-bottom: 160px; background: var(--navy); color: #fff; text-align: center; }
.form-hero .stack { align-items: center; gap: 18px; }
.form-hero p { font-size: 20px; line-height: 1.6; color: var(--slate-300); max-width: 720px; }
.form-wrap { background: linear-gradient(var(--navy) 0 0) top / 100% 120px no-repeat, var(--bg-soft); padding-bottom: 112px; }
.form-card { max-width: 900px; margin: -120px auto 0; padding: 56px; background: #fff; border: 1px solid var(--slate-200); border-radius: 20px; box-shadow: 0 24px 48px -28px rgba(15,23,42,.35); display: flex; flex-direction: column; gap: 36px; }
.form-card > p { font-size: 18px; line-height: 1.65; color: var(--slate-700); }
.incl-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--slate-200); border-radius: var(--radius); background: var(--bg-soft); }
.incl-icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: var(--sky-tint); }
.incl-title { font-weight: 700; font-size: 17px; }
.incl-body { font-size: 15px; line-height: 1.55; color: var(--slate-600); }
.divider { height: 1px; background: var(--slate-200); }
.form { display: flex; flex-direction: column; gap: 20px; }
.form-title { font-family: var(--serif); font-size: 28px; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--slate-700); }
.field input, .field select, .field textarea { min-height: 52px; padding: 0 16px; border: 1px solid var(--slate-300); border-radius: 8px; background: #fff; font: inherit; font-size: 16px; font-weight: 400; color: var(--navy); }
.field textarea { padding: 14px 16px; resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(14,165,233,.25); }
.form .btn { align-self: flex-start; }
.form-note { font-size: 15px; color: var(--slate-600); }
.form[hidden] { display: none; }
.form-status { display: none; }
.form-status.is-visible { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 24px; text-align: center; background: var(--sky-wash); border-radius: var(--radius); }
.form-status h2 { font-family: var(--serif); font-size: 28px; font-weight: 700; }
.form-status p { font-size: 17px; line-height: 1.6; color: var(--slate-600); max-width: 520px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  :root { --gutter: 48px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav { gap: 24px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--slate-200); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; box-shadow: 0 16px 24px -16px rgba(15,23,42,.2); }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--slate-100); }
  .main-nav .btn { margin-top: 16px; }
  .grid-2, .flagship-top, .story, .svc-detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .grid-3 { grid-template-columns: 1fr; }
  .section-head, .cta-band, .footer-top { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 48px 32px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid-4, .field-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; padding-bottom: 64px; }
  .brand-sub { display: none; }
  .report-row { grid-template-columns: 1fr auto; }
  .report-row > :nth-child(3) { display: none; }
  .form-card { padding: 28px 20px; margin-top: -100px; }
  .svc-detail { padding: 28px 20px; }
  .svc-foot { flex-direction: column; align-items: flex-start; }
  .footer-cols { flex-direction: column; gap: 32px; }
  .cta-band .btn-row, .cta-band .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Lead form hardening (lead-intake Worker) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--slate-700); }
.consent input { margin-top: 3px; flex: none; }
.form-error { margin: 0 0 16px; padding: 12px 16px; border-radius: 8px; background: #FEF2F2; color: #991B1B; font-size: 15px; }

/* A hidden form must stay hidden even though form styles set display */
form[hidden] { display: none !important; }
