/* TrueSET — calm, professional, fast. No frameworks, no tracking, no JS. */
:root {
  /* palette anchored to the TrueSET logo: navy + bright blue */
  --bg: #fbfbfa; --surface: #ffffff; --fg: #16233f; --muted: #5c6370;
  --navy: #16295e; --line: #e5e7ea; --accent: #1e7ce0; --accent-soft: #ecf4fd;
  --pass: #077d3f; --fail: #b3261e; --code-bg: #f2f3f5;
  --shadow: 0 1px 2px rgba(22, 41, 94, .05), 0 8px 24px -12px rgba(22, 41, 94, .12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1119; --surface: #141a26; --fg: #e9eaec; --muted: #9aa1ab;
    --navy: #e9eaec; --line: #232c3d; --accent: #4b9df0; --accent-soft: #16233a;
    --pass: #4cc36e; --fail: #ff6b61; --code-bg: #1a2130;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { max-width: 44rem; margin: 0 auto; padding: 0 1.4rem 5rem; }

/* nav */
nav {
  display: flex; gap: 1.1rem 1.3rem; align-items: center; flex-wrap: wrap;
  padding: 1.3rem 0 1.2rem; margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
nav .brand {
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em;
  color: var(--navy); display: inline-flex; align-items: center; gap: 0.5rem;
}
nav .brand b { color: var(--accent); font-weight: 800; }
nav .brand::before {
  content: "✓"; display: inline-grid; place-items: center;
  width: 1.45rem; height: 1.45rem; border-radius: 6px;
  background: var(--accent); color: #fff; font-size: 0.85rem; font-weight: 700;
}
nav a:not(.brand) { color: var(--muted); font-size: 0.93rem; font-weight: 500; }
nav a:not(.brand):hover { color: var(--fg); text-decoration: none; }
nav a.support {
  margin-left: auto; padding: 0.35rem 0.85rem; border-radius: 7px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 0.9rem;
}
nav a.support:hover { color: #fff; filter: brightness(1.08); text-decoration: none; }

/* type */
h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.3rem); line-height: 1.18;
  letter-spacing: -0.022em; font-weight: 800; margin: 0 0 1rem;
  color: var(--navy);
}
h2 {
  font-size: 1.22rem; letter-spacing: -0.01em; font-weight: 700;
  margin: 3rem 0 0.7rem;
}
p, li { color: var(--fg); }
.lead { font-size: 1.08rem; color: var(--muted); line-height: 1.65; }
.muted { color: var(--muted); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* hero CTAs */
.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.6rem 0 0.6rem; }
.btn {
  display: inline-block; padding: 0.6rem 1.15rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { text-decoration: none; filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--surface); }
.btn-ghost:hover { text-decoration: none; border-color: var(--muted); }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
         gap: 0.9rem; margin: 2.2rem 0 0.4rem; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 1rem 1.1rem; box-shadow: var(--shadow);
}
.stat .v { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em;
           font-variant-numeric: tabular-nums; }
.stat .k { font-size: 0.84rem; color: var(--muted); margin-top: 0.15rem; }

/* tables */
table {
  border-collapse: separate; border-spacing: 0; width: 100%; margin: 1.3rem 0;
  font-size: 0.9rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow);
}
th, td { text-align: left; padding: 0.6rem 0.9rem; }
th {
  color: var(--muted); font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: color-mix(in srgb, var(--surface) 60%, var(--bg));
  border-bottom: 1px solid var(--line);
}
td { border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: none; }
.num { font-variant-numeric: tabular-nums; }
.pass { color: var(--pass); font-weight: 700; }
.fail { color: var(--fail); font-weight: 700; }

/* code + callouts */
code, pre {
  background: var(--code-bg); border-radius: 6px;
  font: 0.87em/1.55 ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
}
code { padding: 0.12em 0.4em; }
pre { padding: 1rem 1.1rem; overflow-x: auto; border: 1px solid var(--line); }
blockquote {
  margin: 1.4rem 0; padding: 0.3rem 1.1rem;
  border-left: 3px solid var(--accent); color: var(--muted);
}
.note {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 0.95rem 1.15rem;
  background: var(--accent-soft); font-size: 0.96rem;
}
details {
  margin: 0.7rem 0; border: 1px solid var(--line); border-radius: 9px;
  padding: 0.65rem 1rem; background: var(--surface); box-shadow: var(--shadow);
}
summary { cursor: pointer; font-weight: 600; }
summary:hover { color: var(--accent); }
details[open] summary { margin-bottom: 0.4rem; }

/* lists */
ul, ol { padding-left: 1.3rem; }
li { margin: 0.35rem 0; }
li strong { letter-spacing: -0.005em; }

/* one-click share row — pure intent links, zero JS */
.share {
  display: flex; gap: 0.55rem; flex-wrap: wrap; align-items: center;
  margin: 2.2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.share span { color: var(--muted); font-size: 0.88rem; margin-right: 0.3rem; }
.share a {
  padding: 0.38rem 0.85rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.88rem; font-weight: 600; color: var(--fg); background: var(--surface);
}
.share a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

footer {
  border-top: 1px solid var(--line); margin-top: 4rem; padding-top: 1.4rem;
  font-size: 0.88rem; color: var(--muted);
}
footer p { margin: 0.4rem 0; }
