/* HealthPixel Check. System fonts only; no external requests. */
:root {
  --bg: #f6f6f3; --card: #ffffff; --text: #1b1d20; --muted: #555a60; --line: #dedfda; --soft: #efefeb;
  --accent: #1d5bb8; --accent-hover: #174a96; --accent-text: #ffffff; --focus: #1d5bb8;
  --red-bg: #fbe9e7; --red: #9e2317; --red-line: #e7b3ac;
  --amber-bg: #fdf1d8; --amber: #7a4f00; --amber-line: #e6c784;
  --green-bg: #e5f3e8; --green: #1c6430; --green-line: #a9d3b3;
  --grey-bg: #ecece8; --grey: #45494e; --grey-line: #cfd0cb;
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131416; --card: #1c1e21; --text: #ebebe8; --muted: #a9adb2; --line: #34373b; --soft: #24262a;
    --accent: #84aef2; --accent-hover: #a4c3f6; --accent-text: #0c1a2e; --focus: #a4c3f6;
    --red-bg: #3b1a17; --red: #ffb4aa; --red-line: #6e2c25;
    --amber-bg: #33280f; --amber: #f1c46c; --amber-line: #66501e;
    --green-bg: #14301c; --green: #93d6a3; --green-line: #2b5a37;
    --grey-bg: #26282b; --grey: #c9ccd0; --grey-line: #44474b;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); letter-spacing: -.015em; margin: .15em 0 .35em; }
h2 { font-size: 1.25rem; margin: 0 0 .6em; }
h3 { font-size: 1rem; margin: 1.2em 0 .4em; }
p { margin: .5em 0; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.fine { color: var(--muted); font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--card); padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* Header */
header.site { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding-top: 20px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text);
  text-decoration: none; }
.brand .mark { color: var(--accent); }
.tagline { color: var(--muted); font-size: .85rem; }

/* Hero */
.hero { padding-top: clamp(16px, 4vw, 40px); }
.eyebrow { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; margin: 0; }
.sub { color: var(--muted); font-size: 1.075rem; max-width: 64ch; margin: 0 0 4px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 20px 0; }
@media (max-width: 480px) { .card { padding: 16px; } }

/* Form */
.form { border-width: 2px; border-color: var(--accent); box-shadow: 0 2px 14px rgba(20, 40, 80, .07); }
label { display: block; font-weight: 600; margin-bottom: 6px; }
label.big { font-size: 1.05rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row.two { margin-top: 12px; }
.row.two > div { flex: 1 1 220px; }
input, select { font: inherit; padding: 10px 12px; border: 1px solid var(--grey-line); border-radius: 8px;
  background: var(--bg); color: var(--text); width: 100%; min-height: 44px; }
.row input { flex: 1 1 260px; width: auto; min-width: 0; font-size: 1.075rem; padding: 12px 14px; min-height: 50px; }
input:focus-visible, select:focus-visible { border-color: var(--focus); outline-offset: 0; }
button { font: inherit; font-weight: 600; padding: 12px 22px; border: 0; border-radius: 8px; min-height: 50px;
  background: var(--accent); color: var(--accent-text); cursor: pointer; }
button:hover { background: var(--accent-hover); }
button:disabled { opacity: .6; cursor: progress; }
@media (max-width: 480px) { .row button { flex: 1 1 100%; } }
.hint { margin-top: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check label { font-weight: 500; margin: 0; }
.opt { color: var(--muted); font-weight: 400; }
.indent { margin: 2px 0 0 30px; }
details.optional { margin-top: 12px; }
details summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
.error { color: var(--red); font-weight: 600; }

/* What we check */
.points-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  margin: 24px 0 10px; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(3, 1fr); }
.points li { border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; }
.points strong { display: block; }
.points span { color: var(--muted); font-size: .925rem; }
@media (max-width: 700px) { .points { grid-template-columns: 1fr; } }

/* Progress */
.progress { display: flex; gap: 16px; align-items: flex-start; }
.progtext { font-weight: 600; margin-top: 2px; }
.spinner { flex: none; width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* Report */
.report { margin-top: 28px; scroll-margin-top: 16px; }
.report-meta { color: var(--muted); font-size: .875rem; margin: 0 0 8px; overflow-wrap: anywhere; }
.verdict { border: 1px solid var(--grey-line); border-left-width: 6px; background: var(--card); }
.verdict.red { border-color: var(--red-line); border-left-color: var(--red); }
.verdict.amber { border-color: var(--amber-line); border-left-color: var(--amber); }
.verdict.green { border-color: var(--green-line); border-left-color: var(--green); }
.verdict h2 { font-size: clamp(1.2rem, 3.2vw, 1.45rem); margin: 10px 0 8px; }
.verdict h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 18px 0 4px; }
.verdict .found { font-size: 1.025rem; max-width: 70ch; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem;
  padding: 4px 12px; border-radius: 999px; background: var(--grey-bg); color: var(--grey); }
.badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.green { background: var(--green-bg); color: var(--green); }
.first-step { background: var(--soft); border-radius: 8px; padding: 12px 14px; margin: 6px 0 0; }
.notice { background: var(--amber-bg); color: var(--text); border: 1px solid var(--amber-line);
  border-radius: 8px; padding: 10px 14px; margin: 12px 0 0; }
.limits { margin: 14px 0 0; padding-left: 1.2em; }
.limits li { margin: 4px 0; }

/* Comparison table */
.compare-wrap { margin: 0 -4px; }
table.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare caption { text-align: left; color: var(--muted); font-size: .875rem; padding: 0 4px 10px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px solid var(--line); }
.compare thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  font-weight: 600; border-top: 0; }
.compare tbody th { font-weight: 600; width: 26%; }
.compare .runnote { display: block; font-weight: 400; color: var(--muted); font-size: .825rem; margin-top: 2px; }
.compare .none { color: var(--muted); }
.compare .skipped td { color: var(--muted); font-style: italic; }
.flag { display: inline-block; font-weight: 700; color: var(--red); background: var(--red-bg);
  padding: 0 6px; border-radius: 4px; }
.ok { color: var(--text); }
.other { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.cell-line { display: block; }
.cell-line + .cell-line { margin-top: 2px; }
@media (max-width: 640px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare caption, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-top: 1px solid var(--line); padding: 10px 4px; }
  .compare tbody th { width: 100%; padding: 0 0 6px; border: 0; }
  .compare td { border: 0; padding: 4px 0; }
  .compare td::before { content: attr(data-label); display: block; font-size: .75rem; text-transform: uppercase;
    letter-spacing: .05em; color: var(--muted); font-weight: 600; }
  .compare .skipped td::before { content: none; }
}

/* Collapsible sections */
details.section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin: 12px 0; }
details.section > summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 18px; position: relative;
  color: var(--text); border-radius: var(--radius); }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary::after { content: ""; position: absolute; right: 20px; top: 22px; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .15s; }
details.section[open] > summary::after { transform: rotate(-135deg); top: 26px; }
details.section > summary .s-title { display: block; font-weight: 650; font-size: 1.025rem; }
details.section > summary .s-sub { display: block; color: var(--muted); font-size: .875rem; margin-top: 2px; }
details.section > summary .s-sub.warn { color: var(--red); font-weight: 600; }
details.section > .body { padding: 0 18px 18px; border-top: 1px solid var(--line); }
@media (max-width: 480px) { details.section > summary { padding-left: 14px; } details.section > .body { padding: 0 14px 14px; } }
.group-title { font-size: 1.1rem; margin: 28px 0 4px; }
.group-sub { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .cols { grid-template-columns: 1fr; } }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--grey-bg); color: var(--text);
  margin: 2px 4px 2px 0; font-size: .875rem; }
.pill.ad { background: var(--red-bg); color: var(--red); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 14px 0 0; font-size: .9rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 6px; } }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }
.evidence { font-family: var(--mono); font-size: .8rem; overflow-wrap: anywhere; color: var(--muted); }
ol.recs { padding-left: 1.4em; margin: 0; }
ol.recs li { margin-bottom: .7em; padding-left: 4px; }
ul.refs { padding-left: 1.2em; margin: 12px 0 0; }
ul.refs li { margin-bottom: .7em; }
.full-offer h2 { margin-bottom: .3em; }
.full-offer .row { margin-top: 2px; }
.sent { color: var(--green); font-weight: 600; overflow-wrap: anywhere; }
figure.shot { margin: 14px 0; }
figure.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; display: block; }
figure.shot figcaption { margin-top: 4px; }
.disclaimer { margin: 16px 0 0; }

/* How it works / footer */
.how { margin: 48px 0 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.steps { padding-left: 1.4em; margin: 0 0 12px; }
.steps li { margin-bottom: .5em; padding-left: 4px; }
footer.site-foot { padding-top: 8px; padding-bottom: 40px; }
footer.site-foot p { margin: 4px 0; }

/* Privacy page */
.doc { max-width: 72ch; }
.doc h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
.doc h2 { margin-top: 1.4em; }
.doc li { margin-bottom: .4em; }
