/* Northbound Assurance — no external fonts; system stacks only. */
:root {
  --spruce: #14342C;
  --spruce-2: #1E4A3F;
  --brass: #A6843D;
  --brass-dark: #75591F;   /* brass for text on light backgrounds (AA) */
  --brass-light: #CDAE68;  /* brass for text on spruce (AA) */
  --paper: #F7F4EC;
  --paper-2: #EEE8DA;
  --white: #FFFDF8;
  --ink: #1B2421;
  --muted: #4C5652;
  --line: #D8D0BF;
  --error: #9B2C1F;
  --success: #1F5A3C;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, Cambria, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --radius: 6px;
  --max: 1120px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--brass-dark);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--spruce); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--spruce); text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--spruce); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(6px)) { .site-header { background: rgba(247, 244, 236, .85); backdrop-filter: blur(6px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--spruce); }
.brand-mark { width: 1.6rem; height: 1.6rem; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
@media (max-width: 400px) { .brand-name { font-size: 1.1rem; } .site-nav .nav-cta { padding: .35rem .75rem; } }
.brand-name span { color: var(--brass-dark); font-weight: 500; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; list-style: none; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: .97rem; padding: .3rem 0; }
.site-nav a:hover { color: var(--spruce); text-decoration: underline; text-decoration-color: var(--brass); }
.site-nav .nav-cta { border: 1px solid var(--spruce); border-radius: var(--radius); padding: .4rem .9rem; color: var(--spruce); font-weight: 600; }
.site-nav .nav-cta:hover { background: var(--spruce); color: var(--white); text-decoration: none; }

@media (max-width: 860px) {
  .site-nav li:not(:last-child) { display: none; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .85rem 1.4rem; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.button-primary { background: var(--spruce); color: var(--white); }
.button-primary:hover { background: var(--spruce-2); }
.button-primary[disabled] { opacity: .7; cursor: progress; }
.button-quiet { color: var(--spruce); border-color: var(--line); background: transparent; }
.button-quiet:hover { border-color: var(--spruce); }

/* Hero */
.hero { background: var(--spruce); color: var(--paper); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lede { font-size: 1.18rem; color: #E4E0D5; max-width: 40rem; }
.hero-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero .button-primary { background: var(--brass-light); color: var(--spruce); }
.hero .button-primary:hover { background: #DCC184; }
.hero .button-quiet { color: var(--paper); border-color: rgba(247, 244, 236, .4); }
.hero .button-quiet:hover { border-color: var(--paper); }
.hero :focus-visible { box-shadow: 0 0 0 3px var(--spruce), 0 0 0 5px var(--brass-light); }
.hero-art svg { width: 100%; max-width: 300px; margin-left: auto; }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

.eyebrow {
  font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-dark); margin-bottom: .9rem;
}
.hero .eyebrow, .eyebrow-light { color: var(--brass-light); }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-intro { font-size: 1.1rem; color: var(--muted); }
.list-title { font-family: var(--sans); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 3rem 0 1.25rem; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }

.scope-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.scope-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.scope-card p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .scope-options { grid-template-columns: 1fr; } }

.deliverables { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.deliverables li { padding: 1.5rem 1.4rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.deliverables li + li { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.deliverables p { margin: 0; color: var(--muted); font-size: 1rem; }
.deliverable-num { display: block; font-family: var(--serif); color: var(--brass-dark); font-size: 1rem; margin-bottom: .6rem; }
@media (max-width: 960px) {
  .deliverables { grid-template-columns: 1fr 1fr; }
  .deliverables li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .deliverables { grid-template-columns: 1fr; }
  .deliverables li, .deliverables li + li { padding-left: 0; border-left: 0; }
}

.support-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.support-list li { padding: 1.25rem 0 0; border-top: 2px solid var(--spruce); }
.support-list p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) { .support-list { grid-template-columns: 1fr; } }

.industry-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.industry-list li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; font-size: .97rem; color: var(--spruce); }
.fit-title { font-weight: 600; margin-bottom: .75rem; }
.check-list { list-style: none; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .7rem; }
.check-list li::before {
  content: ""; position: absolute; left: .1rem; top: .45em; width: .7rem; height: .85rem;
  background: var(--brass); clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
}

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }
.step-num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; flex: none;
  border-radius: 50%; background: var(--spruce); color: var(--brass-light);
  font-family: var(--sans); font-size: .95rem; font-weight: 700;
}
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.callout { margin: 2rem 0 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--brass); background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0; max-width: 52rem; }

.section-dark { background: var(--spruce); color: #E4E0D5; }
.section-dark h2 { color: var(--white); }
.section-dark a { color: var(--white); text-decoration-color: var(--brass-light); }
.section-dark :focus-visible { box-shadow: 0 0 0 3px var(--spruce), 0 0 0 5px var(--brass-light); }
.rapteo { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.rapteo .small { font-size: .95rem; color: #C9C4B6; margin: 0; }
@media (max-width: 860px) { .rapteo { grid-template-columns: 1fr; gap: 1rem; } }

.about p { max-width: 40rem; }

/* Contact */
.contact-email { font-weight: 600; }
.contact-email a { overflow-wrap: anywhere; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #8C8676; border-radius: var(--radius); padding: .7rem .8rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--spruce); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .93rem; margin: .35rem 0 0; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.form-note { margin: 0; font-size: .93rem; color: var(--muted); }
.form-status { margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: var(--radius); border: 1px solid; }
.form-status.is-success { background: #E7F1EA; border-color: #9CC3AB; color: var(--success); }
.form-status.is-error { background: #F8E9E6; border-color: #D9A69D; color: var(--error); }
.form-status p { margin: 0; }
.form-status strong { display: block; margin-bottom: .2rem; }

/* Footer */
.site-footer { background: var(--spruce); color: #DAD5C8; padding: 2rem 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand .brand-mark { width: 1.25rem; height: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer a { color: #F2EEE4; text-decoration-color: var(--brass-light); overflow-wrap: anywhere; }
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--spruce), 0 0 0 5px var(--brass-light); }

/* Prose pages (privacy, form result) */
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1em; }
.prose li { margin-bottom: .3rem; }
.meta { color: var(--muted); font-size: .95rem; }

@media print {
  .site-header, .hero-art, .contact-form { display: none; }
  .hero, .section-dark, .site-footer { background: none; color: #000; }
}
.result-back { margin-top: 1.5rem; }
