/* 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; }

/* ============================================================
   Visuals & CSS-only interactions (added pass 2)
   No JavaScript anywhere — every interaction below is pure CSS,
   which is why the site can keep Content-Security-Policy
   script-src 'none'. Everything degrades to readable static.
   ============================================================ */

/* SVG theme variables — our hand-drawn diagrams read these.
   Because the SVGs are loaded via <img>, these custom properties
   apply only to inline usage; the SVGs also carry safe fallbacks
   for the <img> case, so they always render correctly. Inline SVG
   (hero) picks these up live. */
:root {
  --svg-wall-a:#eef2f6; --svg-wall-b:#e2e8ef; --svg-floor:#d3dae2;
  --svg-line:#b9c3cd; --svg-object:#ffffff; --svg-glass:#dce8f2;
  --svg-screen:#cfd8e2; --svg-accent:#1f5f8b; --svg-accent-2:#164a6d;
  --svg-phone-screen:#0d1b26; --svg-reticle:#3f9bd6; --svg-lens:#243b4a;
  --svg-fg:#5a616b; --svg-check:#8a5a00; --svg-severe:#9b2c2c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --svg-wall-a:#1d2530; --svg-wall-b:#161c25; --svg-floor:#11161d;
    --svg-line:#3a444f; --svg-object:#232a33; --svg-glass:#1a2836;
    --svg-screen:#2a3541; --svg-accent:#7cb8de; --svg-accent-2:#5a9bc4;
    --svg-phone-screen:#0a1219; --svg-reticle:#8fd0ff; --svg-lens:#0e1a24;
    --svg-fg:#a4acb7; --svg-check:#e0b060; --svg-severe:#e88b8b;
  }
}

/* Hero: text beside an illustration */
.hero-grid {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 52rem) { .hero-grid { grid-template-columns: 1fr; } }
.hero-figure {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .5rem; overflow: hidden;
}
.hero-figure svg, .hero-figure img { display: block; width: 100%; height: auto; }

/* App-identity strip (icon + facts) */
.identity {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.15rem;
}
.identity img.appicon { width: 60px; height: 60px; border-radius: 14px; flex: none; }
.identity .facts { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; font-size: .92rem; color: var(--text-muted); }
.identity .facts b { color: var(--text); font-weight: 600; }

/* Figures for diagrams */
figure.diagram {
  margin: 1.6rem 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; max-width: var(--wrap);
}
figure.diagram img { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; }
figure.diagram figcaption { color: var(--text-muted); font-size: .9rem; margin-top: .6rem; text-align: center; }

/* Visual 3-step demonstration */
.flow { display: grid; gap: 2rem 1.4rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 46rem) { .flow { grid-template-columns: repeat(3, 1fr); } }
.flow-step { position: relative; }
.flow-num {
  position: relative; z-index: 1;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.15rem;
  margin-bottom: 1rem;
}
@media (prefers-color-scheme: dark) { .flow-num { color: #0e161c; } }
/* connector line between the numbered circles (desktop only) */
@media (min-width: 46rem) {
  .flow-step:not(:last-child)::before {
    content: ""; position: absolute; top: 1.45rem; left: 2.9rem; right: -1.4rem;
    height: 2px; background: var(--border); z-index: 0;
  }
}
.flow-step h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.flow-step p { margin: 0; color: var(--text-muted); max-width: none; }

/* Two-column "useful for / not suitable for" */
.suitability { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 40rem) { .suitability { grid-template-columns: 1fr; } }
.suitability .col { border-radius: var(--radius); padding: 1.25rem 1.35rem; border: 1px solid var(--border); }
.suitability .use { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.suitability .avoid { background: var(--investigate-soft); border-color: color-mix(in srgb, var(--investigate) 30%, var(--border)); }
.suitability h3 { margin-top: 0; display: flex; align-items: center; gap: .5rem; }
.suitability ul { margin-bottom: 0; }
.suitability .use h3::before { content: "✓"; color: var(--accent); font-weight: 700; }
.suitability .avoid h3::before { content: "✕"; color: var(--investigate); font-weight: 700; }

/* Tested-status badge block */
.status-panel {
  display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; font-size: .93rem;
}
.status-panel .row { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border-bottom: 1px dashed var(--border); }
.status-panel .row:last-child { border-bottom: none; }
.status-panel .k { color: var(--text-muted); }
.status-panel .v { font-weight: 600; }
.status-panel .v.no { color: var(--investigate); }
.status-panel .v.yes { color: var(--accent); }

/* CSS-only tabs (radio inputs, no script) */
.tabs { margin: 1.5rem 0; }
.tabs input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tabs .tablist { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 1px solid var(--border); margin-bottom: 1.1rem; }
.tabs .tablist label {
  cursor: pointer; padding: .55rem .95rem; border-radius: var(--radius) var(--radius) 0 0;
  font-weight: 600; font-size: .95rem; color: var(--text-muted); border: 1px solid transparent; border-bottom: none;
}
.tabs .tablist label:hover { color: var(--text); }
.tabs .panel { display: none; }
/* five tabs */
.tabs input:nth-of-type(1):checked ~ .tablist label:nth-of-type(1),
.tabs input:nth-of-type(2):checked ~ .tablist label:nth-of-type(2),
.tabs input:nth-of-type(3):checked ~ .tablist label:nth-of-type(3),
.tabs input:nth-of-type(4):checked ~ .tablist label:nth-of-type(4),
.tabs input:nth-of-type(5):checked ~ .tablist label:nth-of-type(5) {
  color: var(--accent); background: var(--surface); border-color: var(--border);
}
.tabs input:nth-of-type(1):checked ~ .panels .panel:nth-of-type(1),
.tabs input:nth-of-type(2):checked ~ .panels .panel:nth-of-type(2),
.tabs input:nth-of-type(3):checked ~ .panels .panel:nth-of-type(3),
.tabs input:nth-of-type(4):checked ~ .panels .panel:nth-of-type(4),
.tabs input:nth-of-type(5):checked ~ .panels .panel:nth-of-type(5) { display: block; }
.tabs label:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }

/* CSS-only warmer/colder demo: stepper via radios drives a bar width */
.warmcold { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0; }
.warmcold input { position: absolute; opacity: 0; pointer-events: none; }
.warmcold .track { height: 20px; border-radius: 10px; background: var(--surface-2); overflow: hidden; margin: .8rem 0; border: 1px solid var(--border); }
.warmcold .fill { height: 100%; width: 20%; background: linear-gradient(90deg, #6aa5c8, var(--investigate)); transition: width .35s ease; }
@media (prefers-reduced-motion: reduce) { .warmcold .fill { transition: none; } }
.warmcold .stepbtns { display: flex; gap: .5rem; flex-wrap: wrap; }
.warmcold .stepbtns label { cursor: pointer; padding: .5rem .9rem; border-radius: var(--radius); border: 1px solid var(--border); font-weight: 600; font-size: .92rem; min-height: 40px; display: inline-flex; align-items: center; }
.warmcold .readout { font-weight: 600; margin-top: .4rem; min-height: 1.4em; }
.warmcold .readout span { display: none; }
.warmcold #wc1:checked ~ .track .fill { width: 18%; }
.warmcold #wc2:checked ~ .track .fill { width: 45%; }
.warmcold #wc3:checked ~ .track .fill { width: 72%; }
.warmcold #wc4:checked ~ .track .fill { width: 96%; }
.warmcold #wc1:checked ~ .stepbtns label[for="wc1"],
.warmcold #wc2:checked ~ .stepbtns label[for="wc2"],
.warmcold #wc3:checked ~ .stepbtns label[for="wc3"],
.warmcold #wc4:checked ~ .stepbtns label[for="wc4"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.warmcold #wc1:checked ~ .readout .r1,
.warmcold #wc2:checked ~ .readout .r2,
.warmcold #wc3:checked ~ .readout .r3,
.warmcold #wc4:checked ~ .readout .r4 { display: inline; }
.warmcold .stepbtns label:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Free vs Pro comparison */
.tier-compare { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tier-compare table { margin: 0; }
.tier-compare thead th { text-align: center; }
.tier-compare tbody th { font-weight: 500; }
.tier-compare td { text-align: center; }
.tier-compare .yes { color: var(--accent); font-weight: 700; }
.tier-compare .no { color: var(--text-muted); }

/* Smart-banner-safe images */
.inline-illus { display: block; width: 100%; height: auto; max-width: 520px; margin: 1.4rem auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }

/* Hero figure that carries its own backdrop (device mockup) — no double frame */
.hero-figure.plain { background: transparent; border: none; padding: 0; }
.hero-figure.plain img { border-radius: var(--radius); }
