/* Findy — calm, technical, responsible.
   System fonts only (no webfont fetch), single stylesheet, no JS dependency.
   Colour is never the sole carrier of meaning: every status has a label too. */

:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --border: #dfe1e6;
  --text: #1c1f23;
  --text-muted: #5a616b;
  --accent: #1f5f8b;          /* calm blue */
  --accent-strong: #164a6d;
  --accent-soft: #e8f1f7;
  --investigate: #8a5a00;      /* amber, for "worth checking" */
  --investigate-soft: #fdf3e0;
  --severe: #9b2c2c;           /* red reserved for genuinely severe states */
  --severe-soft: #fbeaea;
  --radius: 10px;
  --wrap: 76rem;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --surface: #1d2025;
    --surface-2: #23272d;
    --border: #343a42;
    --text: #eceef1;
    --text-muted: #a4acb7;
    --accent: #7cb8de;
    --accent-strong: #a6d0ec;
    --accent-soft: #1b2c38;
    --investigate: #e0b060;
    --investigate-soft: #2e2718;
    --severe: #e88b8b;
    --severe-soft: #2f1e1e;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Skip link & focus ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: .75rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 60px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 650; font-size: 1.05rem; color: var(--text); text-decoration: none; letter-spacing: -.01em;
}
.brand-mark {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.site-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-right: auto; }
.site-nav a {
  color: var(--text-muted); text-decoration: none; font-size: .95rem; padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; min-height: 44px; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #10171c; } }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-sm { padding: .5rem .9rem; font-size: .9rem; min-height: 38px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.018em; margin: 0 0 .6em; font-weight: 650; }
h1 { font-size: clamp(1.95rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.95rem); margin-top: 2.4em; }
h3 { font-size: 1.18rem; margin-top: 1.9em; }
h4 { font-size: 1.02rem; margin-top: 1.5em; }
p, ul, ol, table, figure, details, blockquote { margin: 0 0 1.15rem; }
main :is(p, ul, ol, blockquote) { max-width: var(--measure); }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
strong { font-weight: 650; }
.lede { font-size: 1.18rem; color: var(--text-muted); max-width: var(--measure); }
.muted { color: var(--text-muted); }
small, .small { font-size: .9rem; }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: .45rem; }
code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: .89em; background: var(--surface-2); padding: .15em .4em; border-radius: 4px;
}

/* ---------- Layout blocks ---------- */
main { padding-bottom: 4rem; }
main > * { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
main > .full { max-width: none; padding-inline: 0; }
section { margin-block: 3.5rem; }

.crumbs { font-size: .87rem; padding-top: 1.1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; color: var(--text-muted); margin-right: .4rem; }
.crumbs a { color: var(--text-muted); }
.crumbs [aria-current] { color: var(--text); }

.page-head { padding-top: 2.2rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .9rem;
}

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 1.25rem 1rem; }
.hero h1 { max-width: 18ch; }
.hero .lede { font-size: 1.25rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.9rem 0 1.2rem; }
.trust-note {
  font-size: .93rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: .3rem 1.1rem;
  list-style: none; padding: 0; max-width: none;
}
.trust-note li { margin: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem;
}
.card h3 { margin-top: 0; font-size: 1.06rem; }
.card p:last-child { margin-bottom: 0; }
.card p { max-width: none; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--accent); }
a.card h3 { color: var(--accent); }

/* ---------- Callouts ---------- */
.note {
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  background: var(--surface); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; max-width: var(--measure);
}
.note.limit { border-left-color: var(--investigate); background: var(--investigate-soft); }
.note.severe { border-left-color: var(--severe); background: var(--severe-soft); }
.note :is(p, ul):last-child { margin-bottom: 0; }
.note-label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: .45rem;
}
.note .note-label { color: var(--accent); }
.note.limit .note-label { color: var(--investigate); }
.note.severe .note-label { color: var(--severe); }

/* ---------- Status chips: never colour alone ---------- */
.status {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600; padding: .2rem .6rem;
  border-radius: 100px; border: 1px solid currentColor;
}
.status::before { content: "●"; font-size: .7em; }
.status-ok { color: var(--accent); background: var(--accent-soft); }
.status-check { color: var(--investigate); background: var(--investigate-soft); }
.status-check::before { content: "▲"; }
.status-severe { color: var(--severe); background: var(--severe-soft); }
.status-severe::before { content: "■"; }
.status-pending { color: var(--text-muted); background: var(--surface-2); }
.status-pending::before { content: "◷"; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin-bottom: 1.15rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 650; background: var(--surface-2); }
caption { text-align: left; color: var(--text-muted); font-size: .9rem; padding-bottom: .6rem; }

/* ---------- Details ---------- */
details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: .9rem 1.1rem; max-width: var(--measure);
}
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: .8rem; }

/* ---------- Steps ---------- */
ol.steps { counter-reset: step; list-style: none; padding: 0; }
ol.steps > li {
  counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 1.1rem;
}
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -.1rem;
  width: 1.85rem; height: 1.85rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 650; font-size: .9rem;
}

/* ---------- CTA band ---------- */
.cta {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
}
.cta h2 { margin-top: 0; }
.cta p { margin-inline: auto; }

.reviewed {
  max-width: var(--wrap); margin: 3rem auto 0; padding: 1rem 1.25rem 0;
  border-top: 1px solid var(--border); color: var(--text-muted); font-size: .88rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); background: var(--surface-2);
  padding: 2.75rem 0 2rem; margin-top: 4rem; font-size: .93rem;
}
.footer-cols { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.footer-cols h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin: 0 0 .7rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: .4rem; }
.footer-cols a { color: var(--text); text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.footer-base { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.footer-base p { max-width: 60rem; }

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