:root {
  --ink: #0b1728;
  --ink-2: #182943;
  --muted: #5f6b7d;
  --line: #d8e1ea;
  --paper: #f8fafc;
  --white: #ffffff;
  --navy: #09243d;
  --navy-2: #0f3453;
  --teal: #0f766e;
  --cyan: #0e7490;
  --green: #15803d;
  --amber: #b7791f;
  --red: #b42318;
  --shadow: 0 28px 80px rgba(8, 28, 48, 0.12);
  --soft-shadow: 0 16px 44px rgba(8, 28, 48, 0.08);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(9, 36, 61, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 48%, #edf4f8 100%);
  background-size: 56px 56px, auto;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
dl,
dd,
ol,
ul {
  margin: 0;
}

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

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 225, 234, 0.72);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(190px, 18vw, 232px);
  height: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.nav-links a,
.site-footer a {
  transition: color 180ms ease;
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(8, 28, 48, 0.05);
}

main,
.hero > *,
.module-hero > *,
.section-intro > *,
.surface-grid > *,
.trace-map > *,
.module-lanes > *,
.trace-lane > *,
.decision-record > *,
.module-layout > *,
.module-record-grid > *,
.module-detail-section > *,
.pilot-section > *,
.cta-section > * {
  min-width: 0;
}

section[id] {
  scroll-margin-top: 32px;
}

.pilot-copy[id] {
  scroll-margin-top: 0;
}

@supports selector(body:has(.pilot-copy:target)) {
  body:has(.pilot-copy:target) main::after {
    content: "";
    display: block;
    height: clamp(320px, 32vh, 480px);
  }
}

.hero {
  display: grid;
  gap: 26px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 86px;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.54fr);
  gap: 48px;
  align-items: end;
}

.audience-line,
.section-label {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: -0.045em;
}

h1 {
  margin-top: 22px;
  max-width: 880px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 700;
  line-height: 0.96;
}

.hero-lede {
  max-width: 800px;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--soft-shadow);
}

.button-primary:hover {
  background: #061a2d;
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: rgba(15, 118, 110, 0.42);
}

.hero-proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  width: 100%;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 10px 30px rgba(8, 28, 48, 0.04);
}

.hero-proof div {
  min-height: 96px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-proof dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-proof dd {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.product-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  box-shadow: var(--shadow);
}

.product-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 36, 61, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(9, 36, 61, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, black, transparent 74%);
}

.surface-topbar,
.surface-grid {
  position: relative;
}

.surface-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.surface-topbar span,
.surface-topbar em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.surface-topbar strong {
  color: var(--ink);
  font-size: 15px;
}

.surface-topbar em {
  justify-self: end;
  padding: 7px 10px;
  border: 1px solid rgba(21, 128, 61, 0.24);
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.08);
  color: var(--green);
}

.surface-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.12fr 0.82fr;
  gap: 14px;
  padding: 16px;
}

.case-panel,
.reasoning-panel,
.control-panel {
  min-height: 520px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 36px rgba(8, 28, 48, 0.06);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-heading span,
.sop-extract small,
.ai-note small,
.signature-box span,
.module-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-heading strong {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
}

.case-summary {
  padding: 16px;
  border-radius: 18px;
  background: var(--navy);
  color: var(--white);
}

.case-summary h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.case-summary p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.58;
}

.evidence-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfd;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 750;
}

.evidence-list span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}

.sop-extract,
.ai-note {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f8fbfd;
}

.sop-extract p {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.02em;
}

.ai-note {
  margin-top: 14px;
  background: rgba(15, 118, 110, 0.07);
  border-color: rgba(15, 118, 110, 0.22);
}

.ai-note ol {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.control-log {
  display: grid;
  gap: 10px;
}

.control-log div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfd;
}

.control-log dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.control-log dd {
  margin-top: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.signature-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #fff7e8;
  border: 1px solid rgba(183, 121, 31, 0.28);
}

.signature-box strong {
  display: block;
  margin-top: 8px;
  color: #553200;
  font-size: 14px;
  line-height: 1.45;
}

.traceability-surface {
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 26px 70px rgba(8, 28, 48, 0.1);
}

.trace-surface-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.trace-surface-head span,
.trace-shared span,
.workflow-card small,
.panel-title span,
.human-review-panel small,
.governance-section > span,
.governance-strip dt,
.run-metadata dt {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.trace-surface-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.12;
}

.trace-surface-head em {
  padding: 8px 12px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trace-canvas {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px;
}

.trace-shared {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 14px 18px;
  border: 1px solid rgba(33, 94, 181, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(8, 28, 48, 0.06);
}

.trace-shared::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: 2px;
  height: 24px;
  background: #1d4ed8;
}

.trace-shared strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.trace-shared p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.42;
}

.trace-shared small {
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.trace-icon,
.module-rail-icon,
.decision-shield {
  display: grid;
  place-items: center;
  color: var(--navy);
}

.trace-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fbfd;
}

.trace-icon svg,
.module-rail-icon svg,
.decision-shield svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.trace-icon-shared {
  color: #1d4ed8;
}

.trace-workflow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns:
    minmax(760px, 1.75fr)
    minmax(82px, 0.18fr)
    minmax(64px, 0.14fr)
    minmax(150px, 0.34fr)
    minmax(210px, 0.48fr)
    minmax(100px, 0.24fr);
  gap: 8px;
  align-items: center;
}

.trace-stack-connector {
  display: none;
}

.module-flows {
  display: grid;
  gap: 14px;
}

.trace-module {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 184px;
  overflow: hidden;
  border: 2px solid rgba(15, 118, 110, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(8, 28, 48, 0.05);
}

.sop-flow {
  border-color: rgba(29, 78, 216, 0.92);
}

.module-rail {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px 12px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(180deg, #08716d 0%, #045e67 100%);
}

.sop-flow .module-rail {
  background: linear-gradient(180deg, #1856d6 0%, #093c9e 100%);
}

.module-rail-icon {
  width: 42px;
  height: 42px;
  color: var(--white);
}

.module-rail-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.55;
}

.module-rail strong {
  color: var(--white);
  font-size: 15px;
  line-height: 1.1;
}

.module-rail p {
  max-width: 94px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.42;
}

.workflow-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(0, 1.18fr) minmax(0, 1.08fr);
  gap: 8px;
  align-items: stretch;
  margin: 0;
  padding: 12px;
  list-style: none;
}

.sop-steps {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.02fr) minmax(0, 1.9fr) minmax(0, 0.94fr) minmax(0, 0.94fr);
}

.workflow-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 156px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(8, 28, 48, 0.04);
  overflow-wrap: break-word;
  word-break: normal;
}

.workflow-card:nth-child(1) {
  z-index: 5;
}

.workflow-card:nth-child(2) {
  z-index: 4;
}

.workflow-card:nth-child(3) {
  z-index: 3;
}

.workflow-card:nth-child(4) {
  z-index: 2;
}

.workflow-card:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 6;
  top: 50%;
  right: -17px;
  width: 20px;
  height: 3px;
  background: var(--teal);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.96);
  pointer-events: none;
  transform: translateY(-50%);
}

.workflow-card:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 7;
  top: calc(50% - 5px);
  right: -21px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--teal);
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.96));
  pointer-events: none;
}

.sop-flow .workflow-card:not(:last-child)::after {
  background: #1d4ed8;
}

.sop-flow .workflow-card:not(:last-child)::before {
  border-left-color: #1d4ed8;
}

.workflow-card h3 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.18;
  overflow-wrap: break-word;
}

.workflow-card ul {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-left: 12px;
  color: var(--ink-2);
  font-size: 9.8px;
  font-weight: 680;
  line-height: 1.34;
  overflow-wrap: break-word;
}

.workflow-card li {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.workflow-card mark,
.governance-strip mark,
.missing-context-card mark {
  display: inline-flex;
  margin-top: 12px;
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: break-word;
}

.status-complete {
  border: 1px solid rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal);
}

.status-open {
  border: 1px solid rgba(245, 158, 11, 0.36);
  background: #fff7ed;
  color: #b45309;
}

.status-soft {
  border: 1px solid rgba(29, 78, 216, 0.18);
  background: rgba(29, 78, 216, 0.05);
  color: #1d4ed8;
}

.sop-analysis-card {
  min-width: 0;
}

.sop-analysis-card small {
  display: block;
  margin-top: 3px;
  letter-spacing: 0;
  text-transform: none;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.analysis-grid span {
  min-width: 0;
  padding: 7px 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbfd;
  color: var(--ink-2);
  font-size: 8.8px;
  font-weight: 820;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: break-word;
}

.missing-context-card,
.run-metadata,
.decision-core,
.human-review-panel,
.export-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(8, 28, 48, 0.05);
}

.missing-context-card {
  padding: 14px 12px;
  border-color: rgba(245, 158, 11, 0.42);
  background: #fff8ed;
}

.missing-context-card::before,
.missing-context-card::after,
.run-metadata::after,
.decision-core::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 2px;
  background: #1d4ed8;
  transform: translateY(-50%);
}

.missing-context-card::before {
  left: -16px;
  border-top: 2px dashed #1d4ed8;
  background: transparent;
}

.missing-context-card::after,
.run-metadata::after,
.decision-core::after {
  right: -16px;
}

.missing-context-card strong,
.run-metadata strong,
.export-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.18;
}

.missing-context-card p {
  margin-top: 10px;
  color: #6b3f05;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.45;
}

.warning-icon {
  border-color: rgba(245, 158, 11, 0.36);
  background: #fff7ed;
  color: #f97316;
}

.run-metadata {
  padding: 13px;
}

.run-metadata strong {
  margin-top: 0;
  color: var(--navy);
}

.run-metadata dl {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.run-metadata dd {
  margin-top: 4px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 790;
  line-height: 1.35;
}

.decision-core {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 14px 10px;
  background: linear-gradient(180deg, #0f3453 0%, #09243d 100%);
  color: var(--white);
  text-align: center;
}

.decision-shield {
  width: 44px;
  height: 44px;
  color: var(--white);
}

.decision-shield svg {
  width: 42px;
  height: 42px;
}

.decision-core strong {
  color: var(--white);
  font-size: 15px;
  line-height: 1.08;
}

.decision-core span {
  padding: 6px 8px;
  border: 1px solid rgba(15, 118, 110, 0.32);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.human-review-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.panel-title {
  display: grid;
  gap: 7px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.panel-title small {
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.human-review-panel article {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.human-review-panel p {
  margin-top: 8px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 740;
  line-height: 1.48;
}

.human-review-panel del {
  color: var(--red);
  text-decoration-color: rgba(180, 35, 24, 0.58);
}

.human-review-panel ins {
  padding: 1px 3px;
  border-radius: 4px;
  background: rgba(180, 35, 24, 0.08);
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: rgba(180, 35, 24, 0.58);
}

.correction-box {
  border-color: rgba(180, 35, 24, 0.28) !important;
  background: #fffafa !important;
}

.rationale-box {
  border-color: rgba(29, 78, 216, 0.16) !important;
  background: rgba(29, 78, 216, 0.04) !important;
}

.review-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.review-tags div {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.review-tags dt {
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
}

.review-tags dd {
  margin-top: 4px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 790;
  line-height: 1.2;
}

.export-panel {
  display: grid;
  gap: 11px;
  align-self: stretch;
  padding: 14px;
}

.export-panel strong {
  margin-top: 0;
  color: var(--ink-2);
  text-transform: uppercase;
}

.export-list,
.audit-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.export-list li {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 840;
  line-height: 1.25;
}

.export-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
}

.audit-list {
  gap: 7px;
  padding-left: 15px;
  list-style: decimal;
}

.audit-list li {
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 730;
  line-height: 1.35;
}

.governance-section {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.governance-section > span {
  color: var(--navy);
  letter-spacing: 0;
}

.governance-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.governance-strip div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(8, 28, 48, 0.04);
}

.governance-strip dt {
  color: var(--ink-2);
}

.governance-strip dd {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.trace-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  list-style: none;
}

.trace-legend li {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.legend-line {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--teal);
}

.legend-line.sop {
  background: #1d4ed8;
}

.legend-line.rerun {
  border-top: 2px dashed #1d4ed8;
  background: transparent;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.legend-dot.complete {
  background: var(--teal);
}

.legend-dot.open {
  background: #f97316;
}

.trace-canvas {
  display: block;
  overflow-x: auto;
  padding: 22px;
  scrollbar-color: rgba(15, 118, 110, 0.42) rgba(216, 225, 234, 0.34);
}

.trace-map-shell {
  position: relative;
  width: 1028px;
  min-width: 1028px;
  height: 760px;
  margin: 0 auto;
}

.trace-map-connectors {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 1028px;
  height: 760px;
  overflow: visible;
  pointer-events: none;
}

.trace-map-connectors path,
.review-feedback-connectors path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.framework-connector {
  stroke: rgba(15, 118, 110, 0.62);
  stroke-width: 1.8;
  stroke-dasharray: 5 6;
}

.review-connector {
  stroke: rgba(29, 78, 216, 0.76);
  stroke-width: 2.2;
  stroke-dasharray: 5 6;
}

.shared-input-card,
.control-module,
.review-rail {
  position: absolute;
  z-index: 2;
}

.shared-input-card {
  top: 0;
  left: 50%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  width: 456px;
  padding: 15px 18px;
  border: 1px solid rgba(15, 118, 110, 0.3);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #effbf8 100%);
  box-shadow: 0 10px 28px rgba(8, 28, 48, 0.08);
  transform: translateX(-50%);
}

.shared-input-card .trace-icon {
  width: 42px;
  height: 42px;
  color: var(--navy);
  background: var(--white);
}

.shared-input-card div > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.shared-input-card strong {
  display: block;
  margin-top: 4px;
  color: var(--teal);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.12;
}

.shared-input-card p {
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.control-module {
  top: 150px;
  width: 500px;
  min-height: 338px;
  padding: 17px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.94) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.deviation-module {
  left: 0;
}

.sop-module {
  right: 0;
  min-height: 396px;
  border-color: rgba(29, 78, 216, 0.26);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.97) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.control-module h3 {
  margin-bottom: 14px;
  color: var(--teal);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.18;
}

.sop-module h3 {
  color: #1d4ed8;
}

.map-tile-grid {
  display: grid;
  gap: 12px;
}

.deviation-tiles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sop-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.control-tile {
  position: relative;
  display: grid;
  min-height: 105px;
  align-content: center;
  justify-items: center;
  gap: 9px;
  min-width: 0;
  padding: 13px 10px;
  border: 1px solid rgba(216, 225, 234, 0.96);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 8px 18px rgba(8, 28, 48, 0.04);
}

.control-tile strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.12;
}

.control-tile .trace-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8fafc;
}

.status-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--teal);
}

.status-dot.blue {
  background: #1d4ed8;
}

.status-dot.amber {
  background: var(--amber);
}

.attention-tile {
  border-color: rgba(245, 158, 11, 0.45);
  outline: 1px dashed rgba(245, 158, 11, 0.62);
  outline-offset: -5px;
  color: #9a4d00;
  background: #fffbeb;
}

.attention-tile strong {
  color: #9a4d00;
}

.decision-tile {
  border-color: rgba(29, 78, 216, 0.34);
  background: #eff6ff;
  color: #1d4ed8;
}

.decision-tile strong {
  color: #1d4ed8;
}

.analysis-tile {
  grid-column: span 2;
  align-content: start;
  justify-items: center;
  min-height: 126px;
  padding: 14px;
  text-align: center;
}

.analysis-tile .trace-icon {
  margin-inline: auto;
}

.analysis-tile strong {
  display: block;
  width: 100%;
  text-align: center;
}

.analysis-tile .analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}

.analysis-tile .analysis-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(216, 225, 234, 0.96);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.12;
  text-align: center;
  overflow-wrap: break-word;
}

.owner-review-tile {
  min-height: 213px;
}

.markup-example {
  width: 100%;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(180, 35, 24, 0.28);
  border-radius: 8px;
  background: #fff7f6;
  color: var(--red);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.markup-example del,
.markup-example ins {
  display: block;
}

.markup-example del {
  color: rgba(180, 35, 24, 0.76);
  text-decoration-thickness: 2px;
}

.markup-example ins {
  color: var(--red);
  text-decoration: none;
}

.review-rail {
  top: 570px;
  right: 0;
  left: 0;
  min-height: 188px;
  padding: 18px 20px;
  border: 1px solid rgba(29, 78, 216, 0.22);
  border-radius: 14px;
  background: linear-gradient(90deg, #eff6ff 0%, #ffffff 100%);
}

.review-rail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.review-rail-title .trace-icon {
  width: 34px;
  height: 34px;
  background: var(--white);
}

.review-flow {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 240px 40px 340px 40px 240px;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.review-step,
.review-actions span {
  border: 1px solid rgba(216, 225, 234, 0.96);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.review-step {
  padding: 13px 14px;
  text-align: center;
}

.flow-arrow {
  position: relative;
  display: block;
  width: 100%;
  min-width: 28px;
  height: 16px;
  color: transparent;
  font-size: 0;
}

.flow-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  left: 4px;
  height: 2px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.74);
  transform: translateY(-50%);
}

.flow-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5px;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(29, 78, 216, 0.82);
  border-right: 2px solid rgba(29, 78, 216, 0.82);
  border-radius: 1px;
  transform: translateY(-50%) rotate(45deg);
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.review-actions span {
  padding: 10px;
}

.review-actions .reject-action {
  border-color: rgba(180, 35, 24, 0.24);
  color: var(--red);
  background: #fff7f6;
}

.review-feedback-connectors {
  position: absolute;
  top: 70px;
  left: 20px;
  z-index: 5;
  width: 988px;
  height: 104px;
  overflow: visible;
  pointer-events: none;
}

.review-feedback-connectors path {
  stroke: rgba(180, 35, 24, 0.58);
  stroke-width: 1.8;
}

.reject-note {
  position: absolute;
  top: 124px;
  left: 339px;
  z-index: 6;
  width: 360px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(180, 35, 24, 0.24);
  border-radius: 9px;
  background: #fff7f6;
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.problem-section,
.workflow-section,
.controls-section,
.modules-section,
.pilot-section,
.cta-section,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.problem-section {
  padding: 76px 0 82px;
  border-top: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  column-gap: 54px;
  row-gap: 22px;
  align-items: start;
}

.section-intro.narrow {
  display: block;
  max-width: 760px;
}

.section-intro h2,
.pilot-copy h2,
.cta-section h2 {
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 0.98;
}

.section-intro:not(.narrow) .section-label {
  grid-column: 1;
}

.section-intro:not(.narrow) h2 {
  grid-column: 2;
  margin-top: 0;
}

.section-intro > p:not(.section-label),
.section-copy > p:not(.section-label),
.pilot-copy > p,
.cta-section p {
  max-width: 800px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.62;
}

.section-copy {
  display: grid;
  gap: 22px;
  align-content: start;
}

.section-intro:not(.narrow) .section-copy {
  grid-column: 1;
  max-width: 520px;
}

.section-intro:not(.narrow) > p:not(.section-label) {
  grid-column: 1;
  max-width: 520px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  box-shadow: var(--soft-shadow);
}

.problem-grid article {
  min-height: 292px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
}

.problem-index {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.problem-grid h3 {
  max-width: 310px;
  margin-top: 64px;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.problem-grid p {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.62;
}

.workflow-section {
  padding: 78px 0 84px;
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.timeline article {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.timeline article::after {
  content: "";
  position: absolute;
  top: 36px;
  right: -19px;
  width: 18px;
  height: 1px;
  background: var(--line);
}

.timeline article:last-child::after {
  display: none;
}

.timeline span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal);
  font-weight: 900;
}

.timeline h3 {
  margin-top: 52px;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.timeline p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.62;
}

.controls-section {
  padding: 78px 0 88px;
  border-top: 1px solid var(--line);
}

.control-table {
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.table-row {
  display: grid;
  grid-template-columns: 0.78fr 1fr 1.38fr;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row span {
  min-width: 0;
  padding: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.table-row span:first-child {
  color: var(--ink);
  font-weight: 850;
}

.table-head {
  background: var(--navy);
}

.table-head span,
.table-head span:first-child {
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modules-section {
  padding: 78px 0 86px;
  border-top: 1px solid var(--line);
}

.module-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 42px;
}

.module-card {
  min-height: 420px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.module-card-dark {
  background: var(--navy);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
}

.module-card h3 {
  margin-top: 64px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.module-card p {
  max-width: 500px;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.62;
}

.module-card-dark p,
.module-card-dark small {
  color: rgba(255, 255, 255, 0.82);
}

.module-card ul {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.module-card li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.45;
}

.module-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}

.module-card-dark li {
  color: rgba(255, 255, 255, 0.82);
}

.pilot-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
  gap: 48px;
  padding: 72px 0 46px;
  border-top: 1px solid var(--line);
  align-items: start;
}

.pilot-copy p:not(.section-label) {
  margin-top: 24px;
}

.pilot-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.pilot-card h3 {
  font-size: 25px;
  letter-spacing: -0.03em;
}

.pilot-card ul {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.pilot-card li {
  padding: 14px 14px 14px 36px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfd;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.cta-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 70px;
  padding: 42px;
  border-radius: 30px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.cta-section .section-label {
  color: #88d4cc;
}

.cta-section p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.cta-section .button-primary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--white);
  color: var(--navy);
}

.site-footer {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 750;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.module-card-actions {
  margin-top: 30px;
}

.module-card-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(15, 118, 110, 0.3);
  border-radius: 999px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.module-card-actions a:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.54);
  background: rgba(15, 118, 110, 0.06);
}

.module-card-dark .module-card-actions a {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.module-card-dark .module-card-actions a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.module-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(500px, 0.82fr);
  gap: 54px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 88px;
  align-items: center;
}

.module-hero .hero-copy {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.module-hero h1 {
  max-width: 700px;
  font-size: clamp(46px, 4.6vw, 66px);
  line-height: 0.98;
}

.module-hero .hero-lede {
  max-width: 640px;
}

.module-hero .hero-actions {
  margin-top: 28px;
}

.module-surface {
  justify-self: end;
  width: 100%;
  max-width: 560px;
}

.module-record-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.record-panel {
  min-height: 214px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(8, 28, 48, 0.06);
  overflow-wrap: anywhere;
}

.record-panel small,
.proof-points span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.record-panel h2 {
  margin-top: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.record-panel p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.record-panel-dark {
  background: var(--navy);
  color: var(--white);
}

.record-panel-dark small,
.record-panel-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.record-panel-accent {
  background: rgba(15, 118, 110, 0.07);
  border-color: rgba(15, 118, 110, 0.24);
}

.record-checklist {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.record-checklist li {
  position: relative;
  min-height: 42px;
  padding: 12px 12px 12px 30px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fbfd;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.record-checklist li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
}

.record-callout {
  color: var(--ink) !important;
  font-size: 22px !important;
  font-weight: 850;
  line-height: 1.22 !important;
  letter-spacing: -0.03em;
}

.mini-log {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mini-log div {
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.74);
}

.mini-log dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-log dd {
  margin-top: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.module-detail-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 86px;
  border-top: 1px solid var(--line);
}

.evidence-rows {
  display: grid;
  gap: 1px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  box-shadow: var(--soft-shadow);
}

.evidence-rows article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 28px;
  min-height: 138px;
  padding: 26px 30px;
  background: rgba(255, 255, 255, 0.9);
}

.evidence-rows span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.evidence-rows h3 {
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.evidence-rows p {
  max-width: 820px;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.62;
}

.split-detail .section-intro {
  margin-bottom: 42px;
}

.module-table {
  margin-top: 0;
}

.module-table .table-row {
  grid-template-columns: 0.82fr 1fr 1.42fr;
}

.control-band {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 46px;
  align-items: start;
}

.control-band h2,
.proof-copy h2 {
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.governance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.governance-list article,
.proof-points article {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.governance-list h3 {
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.governance-list p,
.proof-points p,
.proof-copy p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.62;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 46px;
  align-items: start;
}

.proof-copy p {
  max-width: 690px;
}

.proof-points {
  display: grid;
  gap: 16px;
}

.proof-points span {
  color: var(--teal);
}

.module-cta {
  margin-top: 0;
}

.legal-main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 86px;
}

.legal-hero {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 760px;
}

.legal-hero p:not(.section-label) {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.62;
}

.legal-article {
  display: grid;
  gap: 34px;
  padding-top: 42px;
}

.legal-section {
  display: grid;
  gap: 14px;
}

.legal-section h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.legal-section p,
.legal-section li {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.62;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.legal-section a {
  color: var(--teal);
  font-weight: 800;
}

@media (min-width: 1241px) and (max-width: 1500px) {
  .trace-workflow {
    grid-template-columns: minmax(0, 1fr);
  }

  .missing-context-card,
  .run-metadata,
  .decision-core,
  .human-review-panel,
  .export-panel {
    align-self: stretch;
  }

  .missing-context-card::before,
  .missing-context-card::after,
  .run-metadata::after,
  .decision-core::after {
    display: none;
  }

  .decision-core {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: start;
    text-align: left;
  }

  .export-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

  .export-panel strong:first-child {
    grid-column: 1;
  }

  .export-panel .export-list {
    grid-column: 1;
  }

  .export-panel strong:nth-of-type(2),
  .export-panel .audit-list {
    grid-column: 2;
  }
}

@media (max-width: 1240px) {
  .hero,
  .module-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-actions {
    margin-top: 0;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(780px, 100%);
  }

  .product-surface,
  .module-surface {
    max-width: 980px;
    justify-self: stretch;
  }

  .traceability-surface {
    max-width: none;
  }

  .trace-workflow {
    grid-template-columns: minmax(0, 1fr);
  }

  .missing-context-card,
  .run-metadata,
  .decision-core,
  .human-review-panel,
  .export-panel {
    align-self: stretch;
  }

  .missing-context-card::before,
  .missing-context-card::after,
  .run-metadata::after,
  .decision-core::after {
    display: none;
  }

  .decision-core {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: start;
    text-align: left;
  }

  .export-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

  .export-panel strong:first-child {
    grid-column: 1;
  }

  .export-panel .export-list {
    grid-column: 1;
  }

  .export-panel strong:nth-of-type(2),
  .export-panel .audit-list {
    grid-column: 2;
  }

  .surface-grid {
    grid-template-columns: 1fr 1fr;
  }

  .control-panel {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .control-log {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trace-map {
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  }

  .module-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trace-loop {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .governance-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .case-panel,
  .reasoning-panel {
    min-height: 440px;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline article::after {
    display: none;
  }

  .module-hero {
    padding-bottom: 74px;
  }
}

@media (max-width: 1500px) {
  .trace-workflow {
    gap: 28px;
  }

  .trace-stack-connector {
    position: relative;
    z-index: 6;
    display: block;
    width: 22px;
    height: 28px;
    margin: -14px 0;
    justify-self: center;
    pointer-events: none;
  }

  .trace-stack-connector::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 18px;
    background: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.96);
    transform: translateX(-50%);
  }

  .trace-stack-connector::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    border-top: 9px solid #1d4ed8;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.96));
    transform: translateX(-50%);
  }
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    width: min(100% - 28px, var(--max));
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    line-height: 1.35;
  }

  .nav-links a {
    padding: 4px 0;
  }

  .header-cta {
    display: inline-flex;
    justify-self: start;
    min-height: 38px;
    padding: 0 16px;
    font-size: 12px;
  }

  .hero,
  .module-hero,
  .problem-section,
  .workflow-section,
  .controls-section,
  .modules-section,
  .module-detail-section,
  .pilot-section,
  .cta-section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    padding-top: 46px;
  }

  .hero-copy {
    gap: 24px;
  }

  .module-hero {
    padding: 46px 0 72px;
  }

  .hero-proof,
  .problem-grid,
  .module-layout,
  .proof-section,
  .control-band,
  .pilot-section,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-intro:not(.narrow) .section-label,
  .section-intro:not(.narrow) h2,
  .section-intro:not(.narrow) > p:not(.section-label) {
    grid-column: 1;
    grid-row: auto;
  }

  .section-intro:not(.narrow) > p:not(.section-label) {
    max-width: 680px;
  }

  .section-intro:not(.narrow) .section-copy {
    display: contents;
    max-width: none;
  }

  .section-intro:not(.narrow) .section-copy .section-label {
    grid-column: 1;
    grid-row: 1;
  }

  .section-intro:not(.narrow) .section-copy + h2 {
    grid-row: 2;
  }

  .section-intro:not(.narrow) .section-copy > p:not(.section-label) {
    grid-column: 1;
    grid-row: 3;
    max-width: 680px;
  }

  .surface-grid {
    grid-template-columns: 1fr;
  }

  .case-panel,
  .reasoning-panel,
  .control-panel {
    min-height: auto;
  }

  .control-log {
    grid-template-columns: 1fr 1fr;
  }

  .trace-map,
  .module-lanes,
  .trace-loop {
    grid-template-columns: 1fr;
  }

  .trace-shared {
    align-items: flex-start;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .trace-shared small {
    grid-column: 2;
  }

  .governance-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trace-module {
    grid-template-columns: 1fr;
  }

  .module-rail {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .module-rail p {
    grid-column: 2;
    max-width: none;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .workflow-card:not(:last-child)::after {
    display: block;
    top: auto;
    right: auto;
    bottom: -22px;
    left: 50%;
    width: 3px;
    height: 20px;
    transform: translateX(-50%);
  }

  .workflow-card:not(:last-child)::before {
    display: block;
    top: auto;
    right: auto;
    bottom: -28px;
    left: calc(50% - 6px);
    border-top: 8px solid var(--teal);
    border-right: 6px solid transparent;
    border-bottom: 0;
    border-left: 6px solid transparent;
  }

  .sop-flow .workflow-card:not(:last-child)::before {
    border-top-color: #1d4ed8;
    border-left-color: transparent;
  }

  .sop-analysis-card {
    min-width: 0;
  }

  .export-panel {
    grid-template-columns: 1fr;
  }

  .export-panel strong:nth-of-type(2),
  .export-panel .audit-list {
    grid-column: 1;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .module-table .table-row {
    grid-template-columns: 1fr;
  }

  .table-head {
    display: none;
  }

  .table-row span {
    padding: 12px 18px;
  }

  .table-row span:first-child {
    padding-top: 18px;
  }

  .table-row span:last-child {
    padding-bottom: 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-main {
    width: min(100% - 28px, 920px);
    padding-top: 46px;
  }

  .evidence-rows article {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(38px, 12vw, 48px);
    line-height: 0.96;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .surface-topbar {
    grid-template-columns: 1fr;
  }

  .surface-topbar em,
  .trace-surface-head em {
    justify-self: start;
  }

  .trace-surface-head,
  .node-grid,
  .sop-source-row,
  .trace-loop ol,
  .review-states,
  .governance-strip {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .trace-canvas {
    padding: 14px;
  }

  .trace-shared {
    grid-template-columns: 1fr;
  }

  .trace-shared::after {
    display: none;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .workflow-card:not(:last-child)::after {
    display: block;
    top: auto;
    right: auto;
    bottom: -22px;
    left: 50%;
    width: 3px;
    height: 20px;
    transform: translateX(-50%);
  }

  .workflow-card:not(:last-child)::before {
    display: block;
    top: auto;
    right: auto;
    bottom: -28px;
    left: calc(50% - 6px);
    border-top: 8px solid var(--teal);
    border-right: 6px solid transparent;
    border-bottom: 0;
    border-left: 6px solid transparent;
  }

  .sop-flow .workflow-card:not(:last-child)::before {
    border-top-color: #1d4ed8;
    border-left-color: transparent;
  }

  .decision-core {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .review-tags {
    grid-template-columns: 1fr;
  }

  .module-record-grid,
  .control-log,
  .timeline,
  .governance-list {
    grid-template-columns: 1fr;
  }

  .problem-grid h3,
  .module-card h3 {
    margin-top: 38px;
  }

  .module-card,
  .pilot-card,
  .record-panel,
  .cta-section {
    padding: 24px;
  }

  .evidence-rows article {
    grid-template-columns: 1fr;
  }

  .record-panel {
    min-height: auto;
  }

  .record-panel h2,
  .record-callout {
    font-size: 21px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
