/* fnisuite.com v2.2 shared stylesheet: the Copilot light palette
   (design-plan-v2.2.md, approved 2026-08-09). Tokens renamed honestly;
   layout rules carried from v2.1 unchanged. Light where you work, dark
   where you conclude: heroes and nav are light, closing bands stay ink.
   Status colors are semantic only and byte-identical to v2.1. */

:root {
  --primary: #0E7569;
  --primary-deep: #0B5F55;
  --primary-soft: #6FC2B4;
  --gold: #A16207;
  --gold-deep: #7A4A04;
  --gold-tint: #FAEEDA;
  --gold-soft: #D9A94A;
  --paper: #F9FAF9;
  --card: #FFFFFF;
  --line: #E4E7E7;
  --cream: #F4F2ED;
  --cream-line: #E7E2D2;
  --ink: #141B1A;
  --ink-2: #1C2523;
  --line-dark: #2C3634;
  --muted: #5C6664;
  --faint: #67706E;
  --soft: #C6CCCA;
  --green: #1F8A4C;
  --amber: #B7791F;
  --red: #B01018;
  --green-deep: #176B3B;
  --amber-deep: #8F5D14;
  --red-deep: #8C0D13;
  --green-tint: #E4F2EA;
  --amber-tint: #F5EDDD;
  --red-tint: #F7E2E3;
  --serif: Cambria, Georgia, "Times New Roman", serif;
  --sans: Calibri, "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; }
a { color: var(--primary); }
a:hover { color: var(--primary-deep); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.band-dark :focus-visible { outline-color: var(--primary-soft); }
.skip {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--card); color: var(--ink);
  padding: 0.5rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: 68ch; }

.band { padding: 4.5rem 0; }
.band-dark { background: var(--ink); color: var(--soft); }
.band-dark a { color: var(--primary-soft); }

.eyebrow {
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
}
.band-dark .eyebrow { color: var(--gold-soft); }

/* Top bar + nav: light since v2.2 (ruling 4.1). The band-dark class
   stays in the markup (tokens-only diff); these higher-specificity
   rules give the header its light surface. */
header.top.band-dark { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem 1rem; padding: 1.1rem 0;
}
.top-bar img { height: 30px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.site-nav a {
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em;
  text-decoration: none; color: var(--muted); padding: 0.2rem 0;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--primary);
}
header.top.band-dark :focus-visible { outline-color: var(--primary); }

/* Heroes: light since v2.2 (ruling 4.1). */
.hero { padding: 3.5rem 0 4.5rem; }
.band-dark.hero { background: var(--paper); color: var(--ink); }
.band-dark.hero a { color: var(--primary); }
.band-dark.hero :focus-visible { outline-color: var(--primary); }
.band-dark.hero .eyebrow { color: var(--gold); }
.band-dark.hero .board-caption { color: var(--faint); }
h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.3rem, 1.3rem + 4vw, 3.5rem);
  line-height: 1.08; color: var(--ink);
  max-width: 21ch; margin-bottom: 1.5rem;
}
h1 .accent { color: var(--primary); }
.hero .sub { max-width: 60ch; margin-bottom: 2rem; color: var(--muted); }

.btn {
  display: inline-block; background: var(--primary); color: #FFFFFF;
  font-family: var(--sans); font-weight: 700; font-size: 1.0625rem;
  text-decoration: none; padding: 0.8rem 1.6rem; border-radius: 8px;
  border: 0; cursor: pointer;
}
.btn:hover { background: var(--primary-deep); color: #FFFFFF; }
/* Button text stays white on every band: outranks the contextual link
   colors (.band-dark a, .band-dark.hero a) that would otherwise tint it. */
a.btn, .band-dark a.btn, .band-dark.hero a.btn { color: #FFFFFF; }
a.btn:hover, .band-dark a.btn:hover, .band-dark.hero a.btn:hover { color: #FFFFFF; }

/* The live board card (v1 signature; chrome only, status semantic) */
.board-card {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 1rem; margin-top: 3rem; overflow: hidden;
}
table.board {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.board th {
  text-align: left; font-weight: 400; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line);
}
.board td { padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); }
.board tr:last-child td { border-bottom: 0; }
.board .lane { text-align: center; width: 3.2rem; }
.board th.lane { text-align: center; }
.dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  transition: background-color 0.6s, border-color 0.6s;
}
.dot.done { background: var(--green); border: 1.5px solid var(--green); }
.dot.pending { background: transparent; border: 1.5px solid var(--line); }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-radius: 8px; padding: 0.15rem 0.55rem;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em;
  transition: background-color 0.6s, color 0.6s;
}
.chip::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
}
.chip.ready { background: var(--green-tint); color: var(--green-deep); }
.chip.ready::before { background: var(--green); }
.chip.slipping { background: var(--amber-tint); color: var(--amber-deep); }
.chip.slipping::before { background: var(--amber); }
.chip.late { background: var(--red-tint); color: var(--red-deep); }
.chip.late::before { background: var(--red); }
.board-caption {
  font-size: 0.875rem; color: var(--faint); margin-top: 0.75rem;
}
.band-dark .board-caption { color: var(--soft); }

/* Section headings: mono eyebrow by default, serif for content blocks */
h2 {
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.band-dark h2 { color: var(--gold-soft); }
h2.block-h, h3.block-h {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.35rem; line-height: 1.3;
  letter-spacing: 0; text-transform: none;
  color: var(--ink); margin-bottom: 0.75rem;
}
.lead {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.05rem);
  line-height: 1.25; color: var(--ink);
  max-width: 30ch; margin-bottom: 2rem;
}
.band-dark .lead { color: var(--paper); max-width: 26ch; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.cards3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 1.5rem;
}
.card h3 {
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem;
  line-height: 1.3; margin-bottom: 0.75rem;
}
.big-number {
  font-family: var(--mono); font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: 1; color: var(--gold); display: block; margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.builder {
  background: var(--cream); border: 1px solid var(--cream-line);
  border-radius: 8px; padding: 1.5rem; margin-top: 2rem; max-width: 68ch;
}
.block { margin-bottom: 3rem; }
.block:last-child { margin-bottom: 0; }
.clock-row { display: flex; gap: 2rem; align-items: flex-start; }
.clock-row .big-number { flex: none; margin-bottom: 0; }

/* Static synthetic mocks: board vocabulary only */
.mock {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 1rem 1.25rem; margin-top: 1.5rem;
  max-width: 34rem;
}
.mock-row {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--mono); font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  padding: 0.45rem 0; border-bottom: 1px solid var(--line);
}
.mock-row:last-of-type { border-bottom: 0; }
.mock-row .grow { flex: 1; }
.mock-caption { font-size: 0.875rem; color: var(--faint); margin-top: 0.6rem; }

/* Product captures (v2.1 rules, unchanged) */
.shot {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--card);
}
.shot-mid { max-width: 40rem; margin-top: 1.5rem; }
.shot-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  margin-top: 1.5rem;
}
.board-card img { display: block; width: 100%; height: auto; border-radius: 4px; }

/* Audit register (Security): gold label language (ruling in plan §2) */
.register { border-top: 1px solid var(--line); }
.register-row {
  display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
}
.register-row .label {
  font-family: var(--mono); font-size: 0.8125rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold);
  padding-top: 0.35rem;
}

/* Trust strip (Home, stays dark: spec-plate band) */
.trust-list { list-style: none; }
.trust-list li {
  display: grid; grid-template-columns: 13rem 1fr; gap: 1.25rem;
  background: var(--ink-2); border: 1px solid var(--line-dark);
  border-radius: 8px; padding: 1.1rem 1.4rem; margin-bottom: 0.75rem;
  align-items: baseline;
}
.trust-list .label {
  font-family: var(--mono); font-size: 0.8125rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft);
}
.trust-list p { color: var(--paper); }

/* Home section 5 closing link line */
.next-link { margin-top: 1.5rem; font-weight: 700; }

/* Contact form */
.form-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 1.5rem; max-width: 34rem;
}
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block; font-size: 0.875rem; font-weight: 700;
  margin-bottom: 0.3rem;
}
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem;
  padding: 0.55rem 0.7rem; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card); color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary);
}
.status-line { margin: 0 0 1rem; font-weight: 700; display: none; }
.status-line.ok { display: block; color: var(--green-deep); }
.status-line.bad { display: block; color: var(--red-deep); }
.mail-fallback { margin-top: 1.25rem; color: var(--muted); }
.visually-hidden {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Footer (lives in the dark closing bands) */
footer {
  font-family: var(--mono); font-size: 0.8125rem; color: var(--soft);
  border-top: 1px solid var(--line-dark);
  margin-top: 3.5rem; padding-top: 1.5rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; margin-bottom: 0.9rem; }
.footer-links a { color: var(--soft); text-decoration: none; }
.footer-links a:hover { color: var(--paper); }
.band-footer { padding: 1.5rem 0 3rem; }

@media (max-width: 720px) {
  .band { padding: 3.25rem 0; }
  .cards, .cards3 { grid-template-columns: 1fr; }
  .register-row { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }
  .clock-row { flex-direction: column; gap: 1rem; }
  .trust-list li { grid-template-columns: 1fr; gap: 0.35rem; }
  .shot-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .board .veh, .board th.veh { display: none; }
  .board th.lane .lane-word {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .board .lane { width: 1.6rem; }
  .board th, .board td { padding-left: 0.3rem; padding-right: 0.3rem; }
  .chip { padding: 0.15rem 0.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .chip { transition: none; }
}
