/* PubSalvage site. Colours are the desktop app's design tokens (ui/DESIGN.md), light and dark under the same names.
   No web fonts, no external requests, no JavaScript: the page follows its own privacy promise.
   Mobile first: everything is a single column with large tap targets, and widens from 720px and 1000px. */
:root {
  --bg: #f4f5fa; --surface: #ffffff; --surface-alt: #eceef6; --canvas: #dfe2ee;
  --border: #d3d7e6; --border-strong: #6f7899;
  --text: #181c30; --text-muted: #454c6a;
  --primary: #3346c9; --primary-hover: #283aae; --on-primary: #ffffff;
  --primary-soft: #e4e8fd; --primary-soft-text: #2a3aa6; --link: #2a3aa6; --focus: #1f6fe0;
  --green-fg: #0a5c1f; --green-bg: #dafbe1; --amber-fg: #7a4b00; --amber-bg: #fff4d1;
  --red-fg: #a0111f; --red-bg: #ffebe9; --unknown-fg: #3f4560; --unknown-bg: #e9ebf3;
  --shadow: 0 1px 2px rgba(24, 28, 48, .05), 0 10px 30px rgba(24, 28, 48, .08);
  --radius: 16px; --radius-sm: 10px;
  --wrap: 1140px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11131d; --surface: #1a1d2b; --surface-alt: #242839; --canvas: #0c0e16;
    --border: #323853; --border-strong: #7f88ab;
    --text: #eceef8; --text-muted: #a9b0cc;
    --primary: #8ea0ff; --primary-hover: #a5b3ff; --on-primary: #0c1030;
    --primary-soft: #252c5a; --primary-soft-text: #c3ccff; --link: #a5b3ff; --focus: #7fb2ff;
    --green-fg: #86e2a2; --green-bg: #0f3a21; --amber-fg: #ffc85a; --amber-bg: #3a2800;
    --red-fg: #ffb4ae; --red-bg: #4a1218; --unknown-fg: #c9cee3; --unknown-bg: #2a2e42;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
  img.logo-light { display: none; }
  img.logo-dark { display: inline; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 7.5vw, 3.35rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
code, pre { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-alt); padding: .1em .38em; border-radius: 6px; overflow-wrap: anywhere; }
pre { background: var(--canvas); padding: 12px 14px; border-radius: var(--radius-sm); margin: auto 0 0; line-height: 1.5; }
pre code { background: none; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.muted { color: var(--text-muted); }
.small { font-size: .9rem; }
.mt { margin-top: 18px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 16px; }
[id] { scroll-margin-top: 16px; }
@media (min-width: 900px) { [id] { scroll-margin-top: calc(var(--header-h) + 16px); } }

/* ---------- Header: sticky on wide screens, a tap-to-open menu (no JavaScript) on phones ---------- */
.top { background: var(--bg); border-bottom: 1px solid var(--border); position: relative; z-index: 10; }
@media (min-width: 900px) {
  .top { position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); }
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 28px; width: auto; }
.nav-wide { display: none; }
@media (min-width: 900px) {
  .nav-wide { display: flex; align-items: center; gap: 4px; font-size: .95rem; }
  .nav-wide a { color: var(--text-muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
  .nav-wide a:hover { color: var(--text); background: var(--surface-alt); }
  .nav-wide a[aria-current="page"] { color: var(--text); font-weight: 600; }
  .nav-wide a.btn { margin-left: 8px; padding: 9px 16px; min-height: 0; color: var(--on-primary); background: var(--primary); }
  .nav-wide a.btn:hover { background: var(--primary-hover); color: var(--on-primary); }
}
@media (min-width: 900px) { .menu { display: none; } }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; font-weight: 600; cursor: pointer; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.menu .close-icon { display: none; }
.menu[open] .open-icon { display: none; }
.menu[open] .close-icon { display: inline; }
.menu[open] > summary { background: var(--surface-alt); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 4px 16px 18px; }
.menu-panel a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.menu-panel a[aria-current="page"] { color: var(--link); }
.menu-panel a.btn { margin-top: 14px; border-bottom: 0; justify-content: center; width: 100%; color: var(--on-primary); }

/* ---------- Buttons and chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-weight: 650; text-decoration: none; border: 1px solid transparent; text-align: center; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-alt); }
.cta { display: grid; gap: 12px; margin: 26px 0 12px; }
@media (min-width: 520px) { .cta { display: flex; flex-wrap: wrap; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-soft); color: var(--primary-soft-text); font-size: .85rem; font-weight: 650; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 750; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.chip::before { content: ""; width: 9px; height: 9px; display: inline-block; flex: none; }
.chip.green { background: var(--green-bg); color: var(--green-fg); }
.chip.green::before { background: currentColor; border-radius: 50%; }
.chip.amber { background: var(--amber-bg); color: var(--amber-fg); }
.chip.amber::before { background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.chip.red { background: var(--red-bg); color: var(--red-fg); }
.chip.red::before { background: currentColor; }
.chip.unknown { background: var(--unknown-bg); color: var(--unknown-fg); }
.chip.unknown::before { border: 2px solid currentColor; border-radius: 50%; }
.chip.info { background: var(--primary-soft); color: var(--primary-soft-text); }
.chip.info::before { display: none; }

/* ---------- Sections ---------- */
section { padding: 52px 0; }
@media (min-width: 720px) { section { padding: 84px 0; } }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 28px; }
@media (min-width: 720px) { .section-head { margin-bottom: 40px; } }
.kicker { display: block; font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-soft-text); margin-bottom: 10px; }
.section-head p { color: var(--text-muted); font-size: 1.06rem; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 44px; }
@media (min-width: 720px) { .hero { padding: 72px 0 84px; } }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.lede { font-size: 1.12rem; color: var(--text-muted); max-width: 36em; }
@media (min-width: 720px) { .lede { font-size: 1.22rem; } }
.promise { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--green-fg); border-radius: var(--radius-sm); padding: 14px 16px; margin: 22px 0 0; max-width: 36em; }
.promise svg { width: 24px; height: 24px; flex: none; stroke: var(--green-fg); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.promise p { margin: 0; }
.promise strong { display: block; }
.platforms { font-size: .9rem; color: var(--text-muted); margin: 6px 0 0; }

/* Batch report card: a list, not a table, so it reads well at every width */
.report { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.report-head { padding: 16px 18px; background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.report-title { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; margin-bottom: 10px; }
.report-title strong { font-size: 1rem; }
.report-title span { font-size: .82rem; color: var(--text-muted); }
.report-totals { display: flex; gap: 8px; flex-wrap: wrap; }
.report ul { list-style: none; margin: 0; padding: 0; }
.report li { padding: 13px 18px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.report .file { font-family: var(--mono); font-size: .86rem; overflow-wrap: anywhere; }
.report .why { grid-column: 1 / -1; color: var(--text-muted); font-size: .86rem; line-height: 1.45; }
.report figcaption { padding: 12px 18px; font-size: .8rem; color: var(--text-muted); }

/* Trust strip under the hero */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
@media (min-width: 720px) { .trust { grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; } }
.trust div { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 650; font-size: .92rem; line-height: 1.3; }
.trust svg { width: 22px; height: 22px; flex: none; stroke: var(--primary); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
@media (min-width: 720px) { .grid { gap: 20px; } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 560px) and (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
@media (min-width: 720px) { .card { padding: 24px; } }
.band .card { background: var(--bg); }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.15em; margin: 0 0 1em; }
.card li + li { margin-top: .4em; }
.icon { width: 24px; height: 24px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-tile { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); margin-bottom: 14px; }
.steps { counter-reset: step; }
.step { counter-increment: step; }
.step h3::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: .9rem; flex: none; }
.step pre { margin-top: 14px; }

/* ---------- Proof cards (security) ---------- */
.proof { display: grid; gap: 16px; }
@media (min-width: 720px) { .proof { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof > * { min-width: 0; }
.proof dl { margin: 0; display: grid; gap: 12px; }
.proof dt { font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.proof dd { margin: 3px 0 0; font-size: .95rem; }
.proof dd.check { background: var(--green-bg); border-radius: 8px; padding: 9px 11px; }

/* ---------- Comparison: a table on wide screens, labelled rows on phones ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--surface-alt); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody th { font-weight: 650; }
.compare td.us { background: color-mix(in srgb, var(--primary-soft) 50%, transparent); }
@media (max-width: 719px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tbody tr { border-bottom: 1px solid var(--border); padding: 14px 16px; }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th, .compare td { border: 0; padding: 0; }
  .compare tbody th { margin-bottom: 8px; }
  .compare td, .compare td.us { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 4px 0; background: none; }
  .compare td::before { content: attr(data-label); color: var(--text-muted); font-size: .85rem; font-weight: 500; }
}
.yes { color: var(--green-fg); font-weight: 700; }
.no { color: var(--red-fg); font-weight: 700; }
.part { color: var(--amber-fg); font-weight: 700; }

/* Questions and answers table (security page): labelled rows on phones */
.qa { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: .96rem; margin-bottom: 1em; }
.qa th, .qa td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.qa tr:last-child > * { border-bottom: 0; }
.qa th { width: 42%; font-weight: 650; }
@media (max-width: 719px) {
  .qa, .qa tbody, .qa tr, .qa th, .qa td { display: block; width: auto; }
  .qa tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .qa tr:last-child { border-bottom: 0; }
  .qa th, .qa td { padding: 0; border: 0; }
  .qa th { margin-bottom: 4px; }
}

/* ---------- Ratings ---------- */
.quote { border-left: 4px solid var(--primary); padding: 6px 0 6px 16px; margin: 28px 0 0; font-size: 1.08rem; max-width: 48em; }

/* ---------- Pricing ---------- */
.price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 6px; }
.price small { font-size: .95rem; font-weight: 500; color: var(--text-muted); }
.plan.featured { border: 2px solid var(--primary); }
.plan .tag { align-self: flex-start; margin-bottom: 10px; }
.plan .for { color: var(--text-muted); font-size: .92rem; margin-bottom: 12px; }

/* ---------- Status ---------- */
.status { display: grid; gap: 10px; }
@media (min-width: 900px) { .status { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.status-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.band .status-row { background: var(--bg); }
.status-row p { margin: 0; }
@media (max-width: 519px) { .status-row { grid-template-columns: 1fr; gap: 8px; } .status-row .chip { justify-self: start; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
details.qa-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
details.qa-item + details.qa-item { margin-top: 10px; }
details.qa-item > summary { cursor: pointer; padding: 16px 52px 16px 18px; min-height: 56px; font-weight: 650; list-style: none; position: relative; }
details.qa-item > summary::-webkit-details-marker { display: none; }
details.qa-item > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--text-muted); border-bottom: 2.5px solid var(--text-muted); transform: translateY(-70%) rotate(45deg); }
details.qa-item[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
details.qa-item .answer { padding: 14px 18px 4px; border-top: 1px solid var(--border); }

/* ---------- Final call to action ---------- */
.access { background: var(--primary); color: var(--on-primary); border-radius: var(--radius); padding: 28px 22px; display: grid; gap: 20px; }
@media (min-width: 900px) { .access { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 44px 48px; } }
.access h2 { color: var(--on-primary); }
.access p { margin: 0; opacity: .92; }
.access .btn { background: var(--on-primary); color: var(--primary); width: 100%; }
@media (min-width: 900px) { .access .btn { width: auto; justify-self: end; } }
.access .btn:hover { opacity: .92; }
.access .soon { background: rgba(255, 255, 255, .14); border-radius: 12px; padding: 16px 18px; }
.access code { background: rgba(255, 255, 255, .18); color: inherit; }

/* ---------- Long-form pages ---------- */
.doc { max-width: 800px; }
.doc h1 { margin-top: 8px; }
.doc h2 { margin-top: 2em; font-size: 1.45rem; }
.doc h3 { margin-top: 1.5em; }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: .45em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: .9rem; font-weight: 600; }
.toc a:hover { background: var(--surface-alt); }
.note { background: var(--primary-soft); color: var(--text); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 1.4em; }
.note.warn { background: var(--amber-bg); }
.doc pre { margin: 0 0 1em; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: .92rem; color: var(--text-muted); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 0 20px; flex-wrap: wrap; }
footer a { color: var(--text-muted); display: inline-flex; min-height: 44px; align-items: center; }
