/* Type: Source Serif 4 (display), Public Sans (text/UI), IBM Plex Mono (labels). Self-hosted, SIL OFL. */
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("assets/fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("assets/fonts/public-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("assets/fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("assets/fonts/public-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* Windsor Security palette (from windsorsec.com tailwind config) */
:root {
  --bg: #030712;        /* gray-950 */
  --bg2: #111827;       /* gray-900 */
  --bg3: #1f2937;       /* gray-800 */
  --line: #1f2937;      /* gray-800 */
  --line2: #374151;     /* gray-700 */
  --text: #f3f4f6;      /* gray-100 */
  --soft: #d1d5db;      /* gray-300 */
  --muted: #9ca3af;     /* gray-400 */
  --dim: #6b7280;       /* gray-500 */
  --p400: #2dd4bf;
  --p500: #14b8a6;
  --p600: #0d9488;
  --p700: #0f766e;
  --a400: #60a5fa;
  --eyebrow: #1fd4aa;
  --high: #f87171;
  --med: #fbbf24;
  --low: #34d399;
  --radius: 8px;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--p400); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; }
h2 { font-size: 2rem; font-weight: 600; color: #fff; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 880px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.fine { font-size: .82rem; color: var(--dim); margin-top: .75rem; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.teal { color: var(--p400); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 7, 18, .8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; padding: .35rem .6rem; border-radius: var(--radius); border: 1px solid transparent; }
.brand:hover { text-decoration: none; border-color: var(--line2); background: rgba(31,41,55,.5); }
.brand img { border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a:not(.btn) { color: var(--soft); }
.nav-links a:not(.btn):hover { color: var(--p400); text-decoration: none; }
@media (max-width: 640px) { .nav-links a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: .8rem 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent; transition: background .15s, border-color .15s;
  color: #fff; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--p600); }
.btn-primary:hover { background: var(--p700); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: var(--bg3); border-color: var(--line2); }
.btn-ghost:hover { background: var(--line2); }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--p400); cursor: pointer; }
.linklike:hover { text-decoration: underline; }

/* Eyebrow (matches .ws-eyebrow) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--eyebrow); margin-bottom: 22px; padding: 6px 14px;
  border: .5px solid rgba(31,212,170,.25); border-radius: 4px;
  background: rgba(9,12,15,.65);
}
.eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--eyebrow); animation: dot 2s ease-in-out infinite; }
@keyframes dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.65); } }

/* Hero */
.hero { background: linear-gradient(to bottom, var(--bg), var(--bg2)); padding: 5rem 0 4rem; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.grad { background: linear-gradient(to right, var(--p400), var(--a400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--soft); max-width: 46rem; margin-bottom: 2rem; }
.scan { display: flex; gap: .75rem; flex-wrap: wrap; }
.scan input {
  flex: 1 1 280px; min-width: 0;
  font: inherit; font-size: 1.05rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line2); border-radius: var(--radius);
  padding: .8rem 1rem; font-family: var(--mono);
}
.scan input:focus, .custom-add input:focus, select:focus { outline: 2px solid var(--p500); outline-offset: 1px; border-color: var(--p600); }

/* Sections */
.section { padding: 4rem 0; }
.section.alt { background: var(--bg2); }
.step-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.step-num {
  flex: 0 0 auto; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-family: var(--mono);
  background: rgba(13,148,136,.2); color: var(--p400); border: 1px solid rgba(45,212,191,.3);
}
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; }
.section:not(.alt) .card { background: var(--bg2); }
.actions { display: flex; justify-content: flex-end; }

/* Dependency list */
.dep-list { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.dep {
  display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem;
}
.dep .cat { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--p400); }
.dep .name { font-weight: 600; font-size: 1.05rem; }
.dep .ev { font-family: var(--mono); font-size: .75rem; color: var(--dim); word-break: break-all; margin-top: .25rem; }
.dep .flag { display: inline-block; margin-top: .4rem; font-size: .78rem; color: var(--med); }
.icon-btn { background: none; border: 1px solid var(--line2); color: var(--muted); border-radius: 6px; cursor: pointer; padding: .25rem .6rem; font: inherit; font-size: .85rem; }
.icon-btn:hover { color: var(--high); border-color: var(--high); }
.empty { color: var(--dim); font-size: .9rem; padding: .5rem 0; }

.chip-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--bg2); border: 1px solid var(--line2); border-radius: 999px;
  padding: .4rem .85rem; cursor: pointer; font-size: .88rem; color: var(--soft); user-select: none;
}
.chip input { accent-color: var(--p500); margin: 0; }
.chip.on { border-color: var(--p600); background: rgba(13,148,136,.15); color: var(--text); }
.custom-add { display: flex; gap: .5rem; flex-wrap: wrap; }
.custom-add input { flex: 1 1 240px; font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius); padding: .6rem .8rem; }

/* Questions */
.q-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.q-card h3 { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.q-card h3 .cat { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--p400); font-weight: 500; }
.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: .75rem; }
@media (max-width: 760px) { .q-grid { grid-template-columns: 1fr; } }
.q label, .g-row label.q-label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .35rem; }
select {
  width: 100%; font: inherit; font-size: .92rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line2); border-radius: 6px; padding: .55rem .6rem;
}
.g-row { display: grid; grid-template-columns: 1fr 220px; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.g-row:last-child { border-bottom: 0; }
.g-row .q-text { font-size: .95rem; }
.g-row .q-help { font-size: .8rem; color: var(--dim); margin-top: .2rem; }
@media (max-width: 640px) { .g-row { grid-template-columns: 1fr; } }

/* Report */
.report-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.export { display: flex; gap: .5rem; flex-wrap: wrap; }
.owner { border-color: rgba(45,212,191,.35); }
.owner-list { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: o; }
.owner-list li { counter-increment: o; display: grid; grid-template-columns: 2.25rem 1fr auto; gap: .9rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.owner-list li::before { content: counter(o); font-family: var(--mono); font-weight: 700; color: var(--p400); font-size: 1.25rem; }
.owner-list .t { font-weight: 600; }
.owner-list .w { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.cost { font-family: var(--mono); font-size: .8rem; white-space: nowrap; color: var(--soft); text-align: right; }
.cost small { display: block; color: var(--dim); font-size: .72rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.stat .n { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--p400); line-height: 1.1; }
.stat .l { font-size: .85rem; color: var(--muted); margin-top: .25rem; }

.item { border-top: 1px solid var(--line); padding: 1rem 0; display: grid; grid-template-columns: 1.4rem 1fr; gap: .75rem; }
.item input[type=checkbox] { accent-color: var(--p500); width: 1.1rem; height: 1.1rem; margin-top: .2rem; }
.item .top { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.item .t { font-weight: 600; }
.item.done .t { text-decoration: line-through; color: var(--dim); }
.pill { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 4px; border: 1px solid var(--line2); color: var(--muted); }
.pill.high { color: var(--high); border-color: rgba(248,113,113,.4); }
.pill.medium { color: var(--med); border-color: rgba(251,191,36,.4); }
.pill.low { color: var(--low); border-color: rgba(52,211,153,.4); }
.item .why { color: var(--muted); font-size: .9rem; margin: .35rem 0 .25rem; }
.item .fix { font-size: .9rem; color: var(--soft); }
.item .fix b { color: var(--p400); font-weight: 600; }

.map { display: grid; gap: .5rem; }
.map-row { display: grid; grid-template-columns: 1fr 120px; gap: .75rem; align-items: center; }
.bar { height: 10px; border-radius: 999px; background: var(--bg3); overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(to right, var(--p500), var(--a400)); }
.map-row .label { font-size: .9rem; }
.map-row .label small { color: var(--dim); font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; margin-left: .4rem; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 1rem; }
@media (max-width: 760px) { .how-grid { grid-template-columns: 1fr; } }
.how-grid h3 { margin-top: .5rem; }
.cta { text-align: center; border-color: rgba(45,212,191,.35); }

/* Footer */
.footer { background: var(--bg2); border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: .9rem; color: var(--soft); margin-bottom: .8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .9rem; }
.footer ul a { color: var(--muted); }
.footer ul a:hover { color: var(--p400); }
.copyright { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); text-align: center; font-size: .85rem; color: var(--muted); }

.toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); background: var(--bg3); border: 1px solid var(--line2); padding: .7rem 1.1rem; border-radius: var(--radius); font-size: .9rem; z-index: 99; }

/* Print: report only, light */
@media print {
  .nav, .hero, #check, #step2, #step3, .no-print, .footer { display: none !important; }
  body { background: #fff; color: #111; }
  #report { display: block !important; padding: 0; }
  .card, .stat { background: #fff !important; border-color: #ccc !important; break-inside: avoid; }
  .muted, .item .why, .owner-list .w, .stat .l, .fine { color: #444 !important; }
  .item .fix, .cost { color: #111 !important; }
  .stat .n, .owner-list li::before, .item .fix b, .teal { color: #0f766e !important; }
  .eyebrow { color: #0f766e; background: none; }
  h2 { color: #111; }
  .item, .owner-list li { break-inside: avoid; }
}
