/* ==========================================================================
   CoreForeman — production stylesheet
   No build step. Plain CSS, custom properties, system font stack.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ground */
  --navy-950: #030A12;   /* near-black navy — footer, deepest ground        */
  --navy-900: #04101D;   /* hero base, sampled from approved hero imagery   */
  --navy-800: #071726;   /* primary dark section ground                     */
  --navy-700: #0B1E2D;   /* raised dark surface                             */
  --charcoal: #111820;
  --graphite: #171D24;

  /* Light */
  --paper:    #F2F0EB;   /* warm off-white                                  */
  --white:    #FFFFFF;
  --mist:     #D8DEE5;   /* muted light gray — hairlines on light ground    */
  --steel:    #8E99A6;   /* steel gray — secondary text on dark ground      */

  /* Ink on light ground */
  --ink:       #111820;
  --ink-muted: #46515C;  /* secondary text on light ground (AA)             */
  --steel-ink: #5F6B77;  /* quiet micro-labels on light ground (AA)         */

  /* Brand blue — derived from the supplied logo plate */
  --blue-700: #17407F;
  --blue-600: #1E4E9C;
  --blue-500: #2A62BE;
  --blue-300: #8FB3E8;   /* links / accents on dark ground                  */

  /* Critical — genuine high-priority findings only */
  --critical:      #B42318;
  --critical-soft: #FBEAE8;

  /* Hairlines */
  --line-light: #DCDFE4;
  --line-dark:  rgba(216, 222, 229, 0.14);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono",
               Menlo, Consolas, "Liberation Mono", monospace;

  /* Rhythm */
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --space-section: clamp(72px, 9vw, 128px);
  --header-h: 76px;

  --radius: 3px;
  --radius-panel: 6px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: inherit;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--blue-300);
}

::selection { background: var(--blue-600); color: var(--white); }

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

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section--paper    { background: var(--paper); }
.section--white    { background: var(--white); }
.section--navy     { background: var(--navy-800); color: var(--mist); }
.section--graphite { background: var(--graphite); color: var(--mist); }

.section-head { max-width: 680px; }
.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}
.section-head .lede {
  margin-top: 18px;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ink-muted);
}
.section--navy .section-head .lede,
.section--graphite .section-head .lede { color: var(--steel); }
.section--navy .section-head h2,
.section--graphite .section-head h2 { color: var(--white); }

.kicker {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.section--navy .kicker,
.section--graphite .kicker { color: var(--blue-300); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease,
              color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}
.btn--primary:hover { background: var(--blue-500); border-color: var(--blue-500); }

.btn--ink {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}
.btn--ink:hover { background: var(--navy-700); border-color: var(--navy-700); }

.btn--ghost-dark {
  background: transparent;
  border-color: rgba(216, 222, 229, 0.38);
  color: var(--white);
}
.btn--ghost-dark:hover { border-color: rgba(216, 222, 229, 0.7); background: rgba(216,222,229,0.06); }

.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }

.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header--solid {
  background: rgba(4, 16, 29, 0.92);
  border-bottom-color: var(--line-dark);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: 40px; }
.brand__word {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--white);
  white-space: nowrap;
}
.brand__word span { color: var(--steel); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--mist);
  border-radius: var(--radius);
}
.site-nav a:hover { color: var(--white); text-decoration: none; }
.site-nav .btn { margin-left: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--mist);
  min-height: clamp(600px, 94vh, 940px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img { object-fit: cover; object-position: 74% center; }

/* Scrim: guarantees headline contrast over the navy negative space,
   and keeps the navbar legible before scroll. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,16,29,0.55) 0%, rgba(4,16,29,0) 22%),
    linear-gradient(90deg, rgba(4,16,29,0.92) 0%, rgba(4,16,29,0.72) 30%, rgba(4,16,29,0.12) 58%, rgba(4,16,29,0) 78%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 72px;
}

.hero__inner { max-width: 600px; }

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--white);
  text-wrap: balance;
}

.hero__copy {
  margin-top: 26px;
  max-width: 520px;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.65;
  color: var(--mist);
}

.hero__actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   7. Section — Review the Complete Job Packet (document records)
   -------------------------------------------------------------------------- */
.doc-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.doc-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  overflow: hidden;
}
/* Folded document corner */
.doc-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-top: 16px solid var(--paper);
  border-left: 16px solid transparent;
}
.doc-card::before {
  content: "";
  position: absolute;
  top: 15px; right: 15px;
  width: 1px; height: 1px;
  border-top: 1px solid var(--line-light);
  transform: rotate(-45deg) scaleX(23);
  transform-origin: top right;
}

.doc-card__tag {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy-800);
}
.doc-card__index {
  position: absolute;
  bottom: 22px; right: 24px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--steel-ink);
}
.doc-card__rule {
  margin: 16px 0 14px;
  height: 1px;
  background: var(--line-light);
}
.doc-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* --------------------------------------------------------------------------
   8. Section — Every Job Packet Carries Risk (editorial outcomes)
   -------------------------------------------------------------------------- */
.outcomes {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 6vw, 88px);
}

.outcome {
  padding: 34px 0 38px;
  border-top: 1px solid var(--line-light);
}

.outcome__icon {
  width: 22px; height: 22px;
  color: var(--blue-600);
  margin-bottom: 18px;
}
.outcome h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
}
.outcome p {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 0.9875rem;
  line-height: 1.65;
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   9. Section — Product evidence
   -------------------------------------------------------------------------- */
#product .section-head { max-width: 720px; }

.review-panel {
  margin-top: 60px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-panel);
  border: 1px solid rgba(216, 222, 229, 0.22);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: var(--navy-700);
  color: var(--mist);
}
.panel-bar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
}
.panel-bar__brand img { width: 22px; height: 22px; }
.panel-bar__meta {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  white-space: nowrap;
}

.panel-tabs {
  display: flex;
  gap: 4px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-light);
  background: #FAFAF8;
  overflow-x: auto;
}
.panel-tabs span {
  padding: 12px 14px 11px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.panel-tabs span[aria-current="true"] {
  color: var(--blue-600);
  font-weight: 600;
  border-bottom-color: var(--blue-600);
}

.panel-body {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 8fr;
}

/* Findings list */
.findings {
  border-right: 1px solid var(--line-light);
  background: #FBFBFA;
  display: flex;
  flex-direction: column;
}
.findings__head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line-light);
}
.findings__title {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.panel-filters {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.panel-filters button {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  padding: 6px 11px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: var(--ink-muted);
  background: var(--white);
}
.panel-filters button[aria-pressed="true"] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

.findings__list li + li { border-top: 1px solid var(--line-light); }
.finding-item {
  width: 100%;
  display: block;
  text-align: left;
  padding: 14px 18px;
}
.finding-item:hover { background: #F2F3F1; }
.finding-item[aria-current="true"] {
  background: var(--white);
  box-shadow: inset 3px 0 0 var(--blue-600);
}
.finding-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.finding-item__title {
  margin-top: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.finding-item__meta {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.finding-item__id {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--steel-ink);
}

/* Severity chips */
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid transparent;
  text-transform: uppercase;
}
.chip--high   { background: var(--critical); color: var(--white); }
.chip--medium { background: var(--charcoal); color: var(--white); }
.chip--low    { background: var(--white); color: var(--ink-muted); border-color: var(--line-light); }
.chip--status {
  background: var(--white);
  color: var(--blue-700);
  border-color: rgba(30, 78, 156, 0.35);
}

/* Finding detail */
.finding-detail { padding: 26px 30px 30px; min-width: 0; }
.finding-article__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.finding-article__id {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  letter-spacing: 0.1em;
  color: var(--steel-ink);
}
.finding-article h3 {
  margin-top: 14px;
  font-size: clamp(1.1875rem, 2vw, 1.4375rem);
  letter-spacing: -0.015em;
}

.evidence {
  margin-top: 22px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.evidence__caption {
  padding: 9px 16px;
  background: #FAFAF8;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: left;
}
.evidence__row {
  display: grid;
  grid-template-columns: minmax(150px, 2fr) 3fr;
  gap: 6px 20px;
  padding: 13px 16px;
  align-items: baseline;
}
.evidence__row + .evidence__row { border-top: 1px solid var(--line-light); }
.evidence__source {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.evidence__value {
  font-family: var(--font-mono);
  font-size: 0.84375rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.evidence__value--missing { color: var(--critical); font-weight: 600; }
.evidence__ref {
  grid-column: 1 / -1;
  font-size: 0.78125rem;
  color: var(--ink-muted);
}
.evidence__ref::before { content: "↳ "; color: var(--steel-ink); }

/* JS hides source refs until "View Evidence" is used */
.js .evidence__ref { display: none; }
.js .finding-article.show-refs .evidence__ref { display: block; }

/* Without JS, references are always visible and JS-only controls are hidden */
.no-js .view-evidence,
.no-js .panel-filters { display: none; }

.finding-status {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.finding-status__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.finding-status__value { font-size: 0.9375rem; font-weight: 600; }

.finding-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* No-JS: stack every finding article, separated by rules */
.finding-article + .finding-article {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line-light);
}
.js .finding-article { display: none; }
.js .finding-article.is-active { display: block; }
.js .finding-article + .finding-article { margin-top: 0; padding-top: 0; border-top: 0; }

/* Definition strip under the panel */
.review-defs {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 clamp(24px, 4vw, 56px);
}
.review-def {
  border-top: 1px solid var(--line-dark);
  padding-top: 20px;
}
.review-def__term {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-300);
}
.review-def p {
  margin-top: 10px;
  color: var(--steel);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. Section — Why CoreForeman (principles)
   -------------------------------------------------------------------------- */
.principles {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px clamp(40px, 6vw, 88px);
}
.principle {
  border-top: 1px solid var(--navy-800);
  padding-top: 22px;
}
.principle h3 { font-size: 1.1875rem; letter-spacing: -0.015em; }
.principle p {
  margin-top: 10px;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 48ch;
}

/* --------------------------------------------------------------------------
   11. Section — Sensitive manufacturing information
   -------------------------------------------------------------------------- */
.assurances {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.assurance { padding: 4px clamp(24px, 3.5vw, 44px) 8px; }
.assurance:first-child { padding-left: 0; }
.assurance:last-child { padding-right: 0; }
.assurance + .assurance { border-left: 1px solid var(--line-dark); }

.assurance__icon {
  width: 22px; height: 22px;
  color: var(--blue-300);
  margin-bottom: 18px;
}
.assurance h3 { font-size: 1.0625rem; color: var(--white); }
.assurance p {
  margin-top: 10px;
  color: var(--steel);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.security-note {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  color: var(--steel);
  font-size: 0.9375rem;
  max-width: 720px;
}
.security-note a { color: var(--blue-300); }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 780px; }
.faq-list { margin-top: 40px; border-top: 1px solid var(--line-light); }

.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-600); }

.faq-item summary .faq-icon {
  flex: none;
  position: relative;
  width: 14px; height: 14px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.18s ease;
}
.faq-icon::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-icon::after  { left: 6px; top: 0; width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }

.faq-item .faq-answer {
  padding: 0 40px 24px 4px;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 64ch;
}

/* --------------------------------------------------------------------------
   13. Final CTA
   -------------------------------------------------------------------------- */
.final-cta { text-align: center; }
.final-cta h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  color: var(--white);
  text-wrap: balance;
}
.final-cta p {
  margin: 20px auto 0;
  max-width: 560px;
  color: var(--steel);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.final-cta .btn { margin-top: 36px; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: var(--steel);
  padding: 64px 0 36px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand__mark { width: 36px; height: 36px; }
.footer-brand p {
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-cols { display: flex; gap: clamp(40px, 7vw, 96px); flex-wrap: wrap; }
.footer-col .footer-col__title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--mist); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   15. Subpages
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--navy-800);
  color: var(--mist);
  padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(56px, 8vw, 88px);
}
.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.125rem);
  color: var(--white);
  letter-spacing: -0.02em;
  max-width: 720px;
}
.page-hero .lede {
  margin-top: 20px;
  max-width: 640px;
  font-size: 1.0938rem;
  line-height: 1.65;
  color: var(--steel);
}

.prose { max-width: 720px; }
.prose h2 {
  font-size: 1.4375rem;
  margin-top: 48px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; margin-top: 32px; }
.prose p { margin-top: 16px; color: var(--ink-muted); line-height: 1.7; }
.prose ul { margin-top: 16px; padding-left: 20px; list-style: disc; }
.prose li { margin-top: 8px; color: var(--ink-muted); line-height: 1.65; }
.prose li::marker { color: var(--steel-ink); }
.prose strong { color: var(--ink); }
.prose .updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.page-cta {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line-light);
}

/* --------------------------------------------------------------------------
   16. Request a demo
   -------------------------------------------------------------------------- */
.demo-layout {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 7fr;
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
}

.demo-side h2 { font-size: 1.375rem; }
.demo-steps { margin-top: 28px; }
.demo-steps li {
  position: relative;
  padding: 0 0 26px 34px;
}
.demo-steps li:last-child { padding-bottom: 0; }
.demo-steps li::before {
  content: "";
  position: absolute;
  left: 9px; top: 26px; bottom: 4px;
  width: 1px;
  background: var(--line-light);
}
.demo-steps li:last-child::before { display: none; }
.demo-steps .step-mark {
  position: absolute;
  left: 0; top: 3px;
  width: 19px; height: 19px;
  border: 1px solid var(--steel);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--ink-muted);
}
.demo-steps h3 { font-size: 1rem; }
.demo-steps p { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.6; }

.demo-form {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-panel);
  padding: clamp(26px, 4vw, 40px);
}
.demo-form h2 { font-size: 1.25rem; }
.demo-form .form-intro { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-muted); }

.field { margin-top: 22px; }
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.field .hint { font-weight: 400; color: var(--ink-muted); }
.field input,
.field textarea {
  margin-top: 8px;
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #B9C0C9;
  border-radius: var(--radius);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 0;
  border-color: var(--blue-500);
}
.field textarea { min-height: 120px; resize: vertical; }

/* Honeypot — hidden from people, present for bots */
.field--hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.demo-form .btn { margin-top: 28px; width: 100%; }
.form-note { margin-top: 16px; font-size: 0.8125rem; color: var(--ink-muted); line-height: 1.6; }

/* Form result pages (rendered by /api/request-demo.php) */
.form-result { max-width: 620px; }
.form-result .result-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.form-result .result-mark svg { width: 22px; height: 22px; }
.result-mark--ok { background: #E8F0E9; color: #1E6B34; }
.result-mark--err { background: var(--critical-soft); color: var(--critical); }
.form-result h1 { font-size: 1.75rem; }
.form-result p { margin-top: 14px; color: var(--ink-muted); line-height: 1.7; }
.error-list {
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid #E7C4C0;
  background: var(--critical-soft);
  border-radius: var(--radius);
  list-style: disc;
  padding-left: 36px;
}
.error-list li { margin: 6px 0; color: #8A1C13; }
.error-list a { color: #8A1C13; text-decoration: underline; }
.form-result .actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   17. 404
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 100vh;
  background: var(--navy-900);
  color: var(--mist);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
}
.error-page .code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  color: var(--steel);
}
.error-page h1 { margin-top: 16px; font-size: clamp(2rem, 4.5vw, 3rem); color: var(--white); }
.error-page p { margin-top: 16px; max-width: 480px; color: var(--steel); line-height: 1.65; }
.error-page .btn { margin-top: 32px; }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .panel-body { grid-template-columns: minmax(260px, 2fr) 3fr; }
  .review-defs { grid-template-columns: repeat(2, 1fr); gap: 36px clamp(24px, 4vw, 56px); }
}

@media (max-width: 900px) {
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .assurances { grid-template-columns: 1fr; }
  .assurance { padding: 26px 0; }
  .assurance:first-child { padding-top: 0; }
  .assurance + .assurance { border-left: 0; border-top: 1px solid var(--line-dark); }
  .demo-layout { grid-template-columns: 1fr; }
  .demo-side { order: 2; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }

  /* Mobile navigation */
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--gutter) 22px;
    background: rgba(4, 16, 29, 0.98);
    border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 15px 4px;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line-dark);
  }
  .site-nav .btn {
    margin: 18px 0 0;
    border-bottom: 0;
    justify-content: center;
    font-size: 0.9375rem;
  }
  .site-header:has(.site-nav.is-open) {
    background: rgba(4, 16, 29, 0.98);
    border-bottom-color: var(--line-dark);
  }

  /* No-JS fallback: keep navigation reachable */
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background: none;
    border: 0;
    padding: 0;
    gap: 2px;
    justify-content: flex-end;
  }
  .no-js .site-nav a { border: 0; padding: 8px 8px; font-size: 0.875rem; }
  .no-js .site-nav .btn { display: none; }

  .panel-body { grid-template-columns: 1fr; }
  .findings { border-right: 0; border-bottom: 1px solid var(--line-light); }
  .finding-detail { padding: 22px 20px 26px; }
}

@media (max-width: 720px) {
  /* Hero: content-first stack with intentional media crop below */
  .hero {
    min-height: 0;
    display: block;
  }
  .hero__media { position: relative; inset: auto; height: auto; }
  .hero__media img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
  }
  .hero__scrim { display: none; }
  .hero__content {
    padding-top: calc(var(--header-h) + 44px);
    padding-bottom: 8px;
  }
  .hero h1 { font-size: clamp(2.25rem, 10vw, 2.75rem); }
  .hero__actions { margin-top: 30px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .outcomes { grid-template-columns: 1fr; }
  .outcome { padding: 28px 0; }

  .principles { grid-template-columns: 1fr; gap: 36px; }

  .footer-top { flex-direction: column; gap: 40px; }
}

@media (max-width: 560px) {
  .doc-grid { grid-template-columns: 1fr; gap: 14px; }
  .review-defs { grid-template-columns: 1fr; gap: 28px; }
  .panel-bar__meta { display: none; }
  .evidence__row { grid-template-columns: 1fr; gap: 4px; }
  .faq-item .faq-answer { padding-right: 8px; }
}

/* --------------------------------------------------------------------------
   19. Motion preferences & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .hero__media, .hero__scrim { display: none; }
  body { color: #000; background: #fff; }
}

/* --------------------------------------------------------------------------
   Mobile refinement — preserve desktop document grid, remove on phones
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  #packet .doc-grid {
    display: none;
  }
}

/* ========================================================================== 
   Desktop stabilization pass — 2026-07-08
   Purpose: preserve the approved mobile layout while making desktop behavior
   deterministic and preventing stale/mismatched assets from producing giant
   inline SVGs, a light/transparent header, or displaced hero copy.
   ========================================================================== */
@media (min-width: 821px) {
  /* Keep the desktop navigation on the same dark enterprise surface as the hero. */
  .site-header {
    background: rgba(4, 16, 29, 0.90);
    border-bottom-color: var(--line-dark);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  /* Give the wordmark deliberate separation without changing the mobile lockup. */
  .brand__word > span {
    margin-left: 0.16em;
  }

  /* Restore intentional desktop navigation rhythm. */
  .site-nav {
    gap: clamp(10px, 1.25vw, 20px);
  }
  .site-nav a {
    padding-inline: 10px;
  }
  .site-nav .btn {
    margin-left: clamp(10px, 1.4vw, 22px);
    padding-inline: 22px;
  }

  /* Lock hero copy onto the left navy negative-space region. */
  .hero {
    min-height: clamp(680px, 94vh, 940px);
    display: flex;
    align-items: center;
  }
  .hero__media,
  .hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hero__media img {
    object-fit: cover;
    object-position: 74% center;
  }
  .hero__scrim {
    display: block;
    z-index: 1;
  }
  .hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: calc(var(--header-h) + 44px);
    padding-bottom: 72px;
  }
  .hero__inner {
    width: min(46vw, 600px);
    max-width: 600px;
    margin-left: 0;
  }
  .hero h1,
  .hero__copy,
  .hero__actions {
    position: relative;
    z-index: 4;
  }

  /* Defensive SVG sizing. These icons must never inherit viewport-scale size. */
  .outcome__icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    max-width: 22px;
    flex: 0 0 22px;
  }
  .outcome > svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
  }
  .assurance__icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    max-width: 24px;
    flex: 0 0 24px;
  }
  .nav-toggle svg {
    width: 22px !important;
    height: 22px !important;
  }

  /* Keep the editorial outcomes compact and aligned on desktop. */
  .outcomes {
    align-items: start;
  }
  .outcome {
    min-width: 0;
  }
}


/* Result page refinement */
.result-panel {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 12px 32px rgba(3,10,18,0.06);
}
.form-result p + p { margin-top: 14px; }
.form-result .actions { display:flex; flex-wrap:wrap; gap:16px; margin-top: 28px; }
