:root {
  --bg: #f6faf9;
  --surface: #ffffff;
  --text: #13262b;
  --muted: #52666b;
  --line: #d9e5e3;
  --brand: #0f766e;
  --brand-ink: #ffffff;
  --brand-soft: #e3f3f1;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warn: #9a5b00;
  --warn-soft: #fff4dc;
  --ok: #1d7a3e;
  --ok-soft: #e6f6eb;
  --wa: #0e7a40;
  --wa-ink: #ffffff;
  --danger-ink: #ffffff;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a1c;
    --surface: #162428;
    --text: #e6efee;
    --muted: #9fb3b5;
    --line: #2a3d41;
    --brand: #2bb5a7;
    --brand-ink: #062522;
    --brand-soft: #173a37;
    --danger: #ff8a7d;
    --danger-soft: #3a1c1a;
    --warn: #f4b84a;
    --warn-soft: #3a2c12;
    --ok: #6fd391;
    --ok-soft: #173323;
    --wa: #25d366;
    --wa-ink: #062b14;
    --danger-ink: #2a0a06;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
:root { accent-color: var(--brand); }
::selection { background: color-mix(in srgb, var(--brand) 28%, transparent); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); text-underline-offset: 0.18em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; }
h1, h2, h3, h4 { line-height: 1.25; text-wrap: balance; }
summary { line-height: 1.4; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
main p, main li { max-width: 68ch; }
h2 { font-size: 1.4rem; margin: 0 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; }
/* Headings sit closer to what they introduce than to what came before. */
article h2 { margin-top: 2.25rem; }

/* Disclosure: one drawn chevron for every <details>, no browser triangles. */
summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 0.5em; height: 0.5em; margin: -0.2em 2px 0 auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0.7; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
details[open] > summary::after { transform: rotate(225deg); margin-top: 0.25em; }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }
.small { font-size: 0.88rem; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top, main, .foot { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 750; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 7px; }
.top { padding-bottom: 4px; }
.top nav { display: flex; gap: 4px; font-size: 0.95rem; margin-left: -10px; }
.top nav a { color: var(--muted); text-decoration: none; padding: 10px; min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) { .top nav a:hover { color: var(--brand); } }

main section { margin: 2.5rem 0; }
.hero { margin-top: 0.5rem; }
.hero h1 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); margin: 0.5rem 0; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 1.08rem; margin: 0 0 1.25rem; }

.tool { margin-top: 4px; }
.drop { text-align: center; }
/* Drag and drop only exists with a mouse: the dashed box is for laptops. */
@media (hover: hover) and (pointer: fine) {
  .tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
  .tool .install-card { background: none; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 2px 0; }
  .drop { border: 2px dashed var(--line); border-radius: 12px; padding: 22px 14px; transition: border-color 0.15s, background 0.15s; }
  .drop.over { border-color: var(--brand); background: var(--brand-soft); }
  .pick { max-width: 380px; }
}
.pick {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto;
  width: 100%; min-height: 60px; padding: 14px 18px; white-space: nowrap;
  background: var(--brand); color: var(--brand-ink); border-radius: 12px;
  font-weight: 700; font-size: 1.12rem; cursor: pointer; user-select: none;
}
input[type="file"]:focus-visible + .drop-hint, .pick:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.pick-icon { flex: none; }
.drop-hint { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }
.privacy { margin: 10px 0 0; font-size: 0.95rem; color: var(--muted); text-align: center; }
.privacy svg { vertical-align: -2px; }
.privacy strong { color: var(--text); }
.install-card { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.install-card p { margin: 0; font-size: 0.95rem; flex: 1 1 12em; }
.install-btn { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; cursor: pointer; }
.install-how { flex-basis: 100%; font-size: 0.92rem; }
.install-how summary { color: var(--brand); font-weight: 600; min-height: 44px; width: max-content; }
.install-how summary::after, .f-more summary::after { margin-left: 2px; }
.install-how p { margin: 0 0 4px; }
.status { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); font-weight: 600; }
.status.busy::after { content: ""; display: block; height: 4px; margin-top: 10px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent) 0 0 / 40% 100% no-repeat, var(--line);
  animation: busy 1.1s linear infinite; }
@keyframes busy { from { background-position: -40% 0, 0 0; } to { background-position: 140% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .status.busy::after { animation: none; background: var(--brand); } }
.status small { display: block; font-weight: 400; }

.result { margin-top: 18px; }
.verdict { border-radius: var(--radius); padding: 18px; border: 2px solid; }
.verdict h2 { margin: 0 0 0.5rem; font-size: 1.5rem; display: flex; align-items: flex-start; gap: 10px; }
.v-ic { width: 1.15em; height: 1.15em; flex: none; margin-top: 0.05em; }
.verdict p { margin: 0.25rem 0; }
.verdict ul { margin: 0.4rem 0 0; padding-left: 1.2em; }
.verdict li { margin: 0.15rem 0; }
.v-danger { background: var(--danger-soft); border-color: var(--danger); }
.v-danger h2 { color: var(--danger); }
.v-suspicious, .v-edited { background: var(--warn-soft); border-color: var(--warn); }
.v-suspicious h2, .v-edited h2 { color: var(--warn); }
.v-clean { background: var(--ok-soft); border-color: var(--ok); }
.v-clean h2 { color: var(--ok); }
.v-error { background: var(--surface); border-color: var(--line); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 12px 0; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts dd.bad { color: var(--danger); font-weight: 700; }
.ok-note { color: var(--ok); }

.findings { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
/* Severity is a tint and a leading icon, never a stripe down one side. */
.findings > li, .notes > li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 10px; }
.findings > li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.findings > li.f-danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.findings > li.f-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.f-ic { width: 1.4rem; height: 1.4rem; margin-top: 0.1em; }
.f-danger .f-ic { color: var(--danger); }
.f-warn .f-ic { color: var(--warn); }
.f-info .f-ic { color: var(--muted); }
.findings p, .notes p { margin: 0.15rem 0; }
.f-title { font-weight: 700; }
.notes { list-style: none; padding: 0; margin: 0; }
.s-ic { width: 1.25rem; height: 1.25rem; flex: none; }
.h-strong .s-ic { color: var(--warn); }
.h-weak .s-ic, .h-design .s-ic { color: var(--muted); }
.h-none .s-ic { color: var(--ok); }
.history .facts { margin-top: 4px; grid-template-columns: 1fr; gap: 0; }
.history .facts dt { font-size: 0.85rem; margin-top: 8px; }
@media (min-width: 560px) { .history .facts { grid-template-columns: max-content 1fr; gap: 2px 14px; } .history .facts dt { font-size: inherit; margin-top: 0; } }
.notes > li { padding: 10px 0; border-top: 1px solid var(--line); }
.notes > li:first-child { border-top: 0; }
.items { margin: 6px 0 0; padding-left: 20px; }
.items code, .urls code { overflow-wrap: anywhere; }

.more { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.more[open] { padding-bottom: 10px; }
.more h3.sub { margin: 14px 0 6px; font-size: 1rem; }
.f-more summary { color: var(--brand); font-size: 0.92rem; font-weight: 600; min-height: 44px; width: max-content; }
.checklist { list-style: none; padding: 0; margin: 8px 0 4px; display: grid; gap: 8px; }
.checklist li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 10px; align-items: start; }
.c-ic { width: 1.25rem; height: 1.25rem; margin-top: 0.15em; color: var(--ok); }
.c-warn .c-ic { color: var(--warn); }
.c-danger .c-ic { color: var(--danger); }
.std .refs { font-size: 0.85rem; color: var(--muted); margin: 0.3rem 0 0.4rem; overflow-wrap: anywhere; }
.checklist p { margin: 0; }
.c-title { font-weight: 600; }
.c-word { font-weight: 400; color: var(--muted); }
.c-danger .c-word { color: var(--danger); font-weight: 700; }
.c-warn .c-word { color: var(--warn); font-weight: 700; }
.std { margin: 1.25rem 0; padding: 4px 16px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.std h3 { margin-top: 0.9rem; }
.std p { max-width: none; }
.more > summary { font-weight: 650; min-height: 48px; }
.more pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin: 6px 0 12px; }
.urls { padding-left: 20px; }
.urls li.bad code { color: var(--danger); }
.flag { display: block; font-size: 0.85rem; color: var(--warn); }
.actions { display: grid; gap: 10px; margin-top: 16px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 18px; border-radius: 12px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.btn-danger { background: var(--danger); color: var(--danger-ink); border: 0; }
@media (hover: hover) { .btn:hover, .pick:hover, .install-btn:hover, article .cta:hover { filter: brightness(1.08); } }
.btn:active, .pick:active, .install-btn:active, article .cta:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: var(--wa-ink); border: 0; }
.again { border: 1px solid var(--brand); background: var(--surface); color: var(--brand); }
.result .install-card { margin-top: 16px; }

.cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 12px; }
.plat summary { min-height: 48px; }
.plat summary h3 { margin: 0; }
.plat:not([open]) { padding-bottom: 4px; }
.card ol { padding-left: 20px; }
.tip { font-size: 0.93rem; color: var(--muted); }
button.link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }
.checks, .scams { padding-left: 20px; }
.checks li { margin: 0.35rem 0; }
.scams { list-style: none; padding: 0; display: grid; gap: 8px; }
.scams a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-weight: 650; text-decoration: none; }
.scams a::after { content: ""; width: 0.45em; height: 0.45em; margin-left: auto; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(-45deg); }
.more-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 650; padding: 12px 0; min-height: 48px; }
.faq p { margin: 8px 0 4px; }

article h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
.crumb { margin: 0; }
.crumb a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.crumb a::before { content: ""; width: 0.45em; height: 0.45em; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
article .cta { display: flex; align-items: center; justify-content: center; min-height: 52px; margin: 8px 0 16px; padding: 12px 18px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-weight: 700; text-decoration: none; }
.cta-top { margin: 4px 0 20px; padding: 12px 14px; border-radius: var(--radius); background: var(--brand-soft); }
.cta-top p { margin: 0 0 8px; font-size: 0.95rem; }
article .cta-top .cta { margin: 0; }
.art-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.art-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.art-list li a { display: inline-flex; align-items: center; min-height: 44px; }
.art-list a { font-weight: 700; font-size: 1.05rem; }
.art-list span { display: block; color: var(--muted); font-size: 0.95rem; }
article table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
article th, article td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }

.foot { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1rem; padding-bottom: 2rem; color: var(--muted); font-size: 0.92rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 6px 0; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
