/* ============================================================
   Sentinel Intelligence — global stylesheet
   Tokens derived from design/DESIGN.md (Stitch export)
   Single breakpoint: 768px. No JavaScript dependencies.
   ============================================================ */

:root {
  /* Surfaces */
  --surface: #f7f9fb;
  --surface-lowest: #ffffff;
  --surface-low: #f2f4f6;
  --surface-container: #eceef0;
  --surface-high: #e6e8ea;

  /* Structural navy frame */
  --navy: #0a192f;
  --navy-soft: #112240;

  /* Ink */
  --on-surface: #191c1e;
  --on-surface-variant: #3c4a46;
  --on-navy: #eff1f3;
  --on-navy-variant: #b9c7e4;

  /* Accent */
  --primary: #006b5c;
  --primary-bright: #00bfa5;
  --primary-wash: rgba(0, 191, 165, 0.10);
  --secondary: #515f78;

  /* Signals */
  --pro: #006b5c;
  --con: #93000a;
  --con-wash: rgba(186, 26, 26, 0.08);

  /* Lines */
  --outline: #6c7a76;
  --outline-variant: #bbcac4;
  --hairline: #e2e8f0;

  /* Layout */
  --container-max: 1200px;
  --gutter: 24px;
  --section-gap: 80px;
  --content-gap: 32px;

  /* Shape */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-full: 9999px;

  /* Elevation */
  --lift: 0 4px 20px rgba(10, 25, 47, 0.03);
  --lift-hover: 0 8px 28px rgba(10, 25, 47, 0.08);

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary-bright); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

/* ---------- Layout primitives ---------- */

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  z-index: 100;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

main { display: block; }

.section {
  padding-block: 48px;
  border-top: 1px solid var(--outline-variant);
}
.section:first-of-type { border-top: 0; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 { margin: 0 0 16px; color: var(--on-surface); text-wrap: balance; }

h1 {
  font-size: 34px;
  line-height: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 8px;
}

h3 {
  font-size: 19px;
  line-height: 28px;
  font-weight: 600;
}

h4 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

p { margin: 0 0 16px; color: var(--on-surface-variant); }
p.lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--on-surface-variant);
}

strong { color: var(--on-surface); font-weight: 600; }

.eyebrow {
  display: block;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

ul, ol { margin: 0 0 16px; padding-left: 20px; color: var(--on-surface-variant); }
li { margin-bottom: 8px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  color: var(--on-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  min-height: 72px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.01em;
  max-width: 260px;
}
.brand:hover { color: #fff; }
.brand svg { flex: none; }
.brand span { display: block; }
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-bright);
}

.site-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-nav a {
  color: var(--on-navy-variant);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--primary-bright);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--on-navy-variant);
  padding-block: 48px 32px;
  margin-top: 64px;
  font-size: 14px;
  line-height: 22px;
}

.site-footer h2 {
  color: #fff;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--on-navy-variant); text-decoration: none; }
.site-footer a:hover { color: var(--primary-bright); text-decoration: underline; }

.footer-note {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8fa2bd;
  font-size: 13px;
  line-height: 20px;
}
.footer-note p { color: inherit; margin-bottom: 8px; }

/* ---------- Hero ---------- */

.hero { padding-block: 48px 8px; }

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-lowest);
  border-radius: var(--r-full);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 20px;
}
.stamp svg { flex: none; color: var(--primary); }

/* ---------- Callouts ---------- */

.callout {
  display: flex;
  gap: 16px;
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-md);
  padding: 20px;
  margin: 0 0 24px;
  box-shadow: var(--lift);
}
.callout svg { flex: none; color: var(--primary); margin-top: 2px; }
.callout > div > :last-child { margin-bottom: 0; }
.callout h3 { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
.callout p { font-size: 15px; line-height: 24px; margin-bottom: 8px; }

.callout--quiet { border-left-color: var(--outline-variant); box-shadow: none; }
.callout--warn { border-left-color: #b8860b; }
.callout--warn svg { color: #8a6508; }

/* ---------- Stage / step cards ---------- */

.stages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.stage {
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--lift);
}
.stage .stage-no {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.stage h3 { font-size: 17px; line-height: 26px; margin-bottom: 8px; }
.stage p { font-size: 15px; line-height: 24px; margin-bottom: 0; }

/* ---------- Attack chain rail (signature element) ---------- */

.chain {
  margin: 0 0 24px;
  padding: 20px;
  background: var(--navy);
  border-radius: var(--r-md);
  overflow-x: auto;
}
.chain-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-bright);
  margin: 0 0 16px;
}
.chain ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  min-width: 640px;
}
.chain li {
  flex: 1 1 0;
  margin: 0;
  padding: 12px 12px 12px 14px;
  background: var(--navy-soft);
  border-left: 3px solid var(--primary-bright);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--on-navy);
  font-size: 13px;
  line-height: 19px;
  font-weight: 500;
}
.chain li span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f93b3;
  margin-bottom: 4px;
}

/* ---------- Tables ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-md);
  background: var(--surface-lowest);
  margin-bottom: 24px;
  box-shadow: var(--lift);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 22px;
}

thead th {
  background: var(--navy-soft);
  color: #fff;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  vertical-align: bottom;
}

tbody td, tbody th {
  padding: 16px;
  border-top: 1px solid var(--outline-variant);
  vertical-align: top;
  color: var(--on-surface-variant);
  text-align: left;
}
tbody th { color: var(--on-surface); font-weight: 600; }

.table-note {
  font-size: 13px;
  line-height: 20px;
  color: var(--outline);
  margin: -16px 0 24px;
}

/* ---------- Vendor cards ---------- */

.vendor-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.vendor {
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--lift);
}

.vendor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 20px;
}

.vendor-rank {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-sm);
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}

.vendor-logo {
  flex: none;
  width: 96px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--surface-lowest);
}
.vendor-logo[data-plate="dark"] { background: var(--navy); border-color: var(--navy); }
.vendor-logo img {
  width: auto;
  max-width: 100%;
  height: 36px;
  object-fit: contain;
}

.vendor-head h3 {
  margin: 0;
  flex: 1 1 160px;
  min-width: 0;
  overflow-wrap: break-word;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.vendor-pitch {
  font-size: 16px;
  line-height: 26px;
  color: var(--on-surface);
  margin-bottom: 20px;
}

.vendor dl { margin: 0 0 20px; }
.vendor dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}
.vendor dd {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 23px;
  color: var(--on-surface-variant);
}
.vendor dd:last-child { margin-bottom: 0; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.pros-cons > div {
  background: var(--surface-low);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 16px;
}

.pros-cons h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--on-surface);
}

.pros-cons ul { list-style: none; padding: 0; margin: 0; }
.pros-cons li {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 10px;
}
.pros-cons li:last-child { margin-bottom: 0; }

/* Pro / con markers: single SVG definition, reused by every list item */
.pros-cons li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}
.pros li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006b5c' stroke-width='2.5'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.cons li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393000a' stroke-width='2.5'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.vendor-foot {
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 23px;
}
.vendor-foot .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

/* ---------- Accordions (details/summary, no JS) ---------- */

.accordion { margin-bottom: 24px; }

details {
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  box-shadow: var(--lift);
}

summary {
  cursor: pointer;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--on-surface);
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}
details[open] > summary::before { transform: rotate(45deg); }
summary:hover { color: var(--primary); }

details > div {
  padding: 0 20px 20px 42px;
  font-size: 15px;
  line-height: 24px;
  color: var(--on-surface-variant);
}
details > div > :last-child { margin-bottom: 0; }

/* ---------- Forms (static, mailto only) ---------- */

.form-block {
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--lift);
  margin-bottom: 24px;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--on-surface);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  line-height: 22px;
  color: var(--on-surface);
  background: var(--surface-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}
.field textarea { min-height: 120px; resize: vertical; }

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: var(--r-sm);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: #00594c; color: #fff; }

/* ---------- Misc ---------- */

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0;
  list-style: none;
}
.related li { margin: 0; }
.related a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-full);
  background: var(--surface-lowest);
  font-size: 14px;
  text-decoration: none;
  color: var(--primary);
}
.related a:hover { border-color: var(--primary-bright); }

.byline {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 22px;
  color: var(--on-surface-variant);
  border-top: 1px solid var(--outline-variant);
  padding-top: 20px;
  margin-top: 8px;
}
.byline img { flex: none; width: 52px; height: 52px; }
.byline svg { flex: none; color: var(--primary); margin-top: 2px; }
.byline strong { display: block; color: var(--on-surface); }
.byline p { margin: 0; }

/* ---------- Editorial roles (about page) ---------- */

.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.team-member {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--lift);
}
.team-member img { flex: none; width: 72px; height: 72px; }
.team-member p { font-size: 15px; line-height: 23px; margin: 0; }

.team-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px !important;
}

@media (min-width: 768px) {
  .team { grid-template-columns: 1fr 1fr; }
}

.legal p, .legal li { font-size: 15px; line-height: 25px; }

/* ---------- 768px and up ---------- */

@media (min-width: 768px) {
  .section { padding-block: var(--section-gap); }
  .hero { padding-block: 72px 16px; }

  h1 { font-size: 48px; line-height: 56px; }
  h2 { font-size: 32px; line-height: 40px; }
  h3 { font-size: 22px; line-height: 30px; }
  p.lead { font-size: 20px; line-height: 32px; }

  .site-header .wrap { min-height: 80px; }
  .brand { font-size: 17px; max-width: none; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--content-gap); }

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

  .vendor { padding: 32px; }
  .vendor-head h3 { font-size: 24px; line-height: 32px; }
  .vendor-rank { width: 52px; height: 52px; font-size: 22px; }
  .pros-cons { grid-template-columns: 1fr 1fr; }

  .callout { padding: 24px 28px; }
  .chain { padding: 24px 28px; }
}


/* Card title used inside .stage components (component label, not an outline heading) */
.stage .stage-h {
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 8px;
}
@media (min-width: 768px) {
  .stage .stage-h { font-size: 18px; line-height: 27px; }
}

.form-block h2 { font-size: 19px; line-height: 28px; margin-top: 0; }
