/* One column, light and dark themes. Colours are tokens so a rebrand is one block. */
:root {
  --bg: #f6f8f7; --fg: #14211c; --muted: #56655f; --line: #dbe3df; --card: #ffffff; --tint: #e8f3ee;
  --accent: #0d7a55; --accent-fg: #ffffff; --accent-2: #0b5f43;
  --ok: #157347; --ok-bg: #e6f4ec; --bad: #b42318; --bad-bg: #fdecea; --warn: #8a5a00; --warn-bg: #fff6df;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1513; --fg: #e6eeea; --muted: #9fb0a8; --line: #24332d; --card: #141e1b; --tint: #16261f;
    --accent: #4fd1a1; --accent-fg: #0e1513; --accent-2: #7fe0bc;
    --ok: #5dd39e; --ok-bg: #12291f; --bad: #ff8a80; --bad-bg: #2f1715; --warn: #f2c45a; --warn-bg: #261f0e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1513; --fg: #e6eeea; --muted: #9fb0a8; --line: #24332d; --card: #141e1b; --tint: #16261f;
  --accent: #4fd1a1; --accent-fg: #0e1513; --accent-2: #7fe0bc;
  --ok: #5dd39e; --ok-bg: #12291f; --bad: #ff8a80; --bad-bg: #2f1715; --warn: #f2c45a; --warn-bg: #261f0e; color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font); }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 2em 0 .6em; }
h3 { font-size: 1.1rem; margin: 1.2em 0 .4em; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
main.wrap { padding-block: 24px 56px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

header.top { border-bottom: 1px solid var(--line); background: var(--card); }
header.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--fg); text-decoration: none; letter-spacing: -0.02em; }
.brand b { color: var(--accent); }
header nav { margin-left: auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .95rem; }
header nav a { color: var(--fg); text-decoration: none; }
header nav a:hover { color: var(--accent); }
.langs a { color: var(--muted); font-size: .85rem; text-transform: uppercase; }
.langs a[aria-current] { color: var(--accent); font-weight: 700; }
.theme-btn { background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); cursor: pointer; padding: 4px 8px; font: inherit; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 12px; }
.tool { display: block; }
.hero ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.lead { font-size: 1.1rem; max-width: 70ch; }

.tool { background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius); padding: 32px 20px; text-align: center; transition: border-color .15s, background .15s; }
.tool.over { border-color: var(--accent); background: var(--tint); }
.tool .drop { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; }
.tool input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tool .privacy { margin: 14px 0 0; color: var(--muted); font-size: .9rem; }
.tool-status { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: var(--tint); }
.tool-status.bad { background: var(--bad-bg); color: var(--bad); }
.pw label { display: block; margin-bottom: 8px; }
.pw input { display: block; margin: 8px auto; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; width: min(320px, 100%); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

.btn { display: inline-block; background: var(--accent); color: var(--accent-fg); border: 1px solid var(--accent); border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.link { background: none; border-color: transparent; color: var(--accent); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

.result { margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.verdict { border-radius: 10px; padding: 12px 16px; }
.verdict p { margin: 4px 0 0; }
.verdict.ok { background: var(--ok-bg); color: var(--ok); }
.verdict.bad { background: var(--bad-bg); color: var(--bad); }
.verdict.warn { background: var(--warn-bg); color: var(--warn); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.tx { border-collapse: collapse; width: 100%; font-size: .9rem; }
table.tx th, table.tx td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.tx th { background: var(--tint); font-weight: 700; white-space: nowrap; }
table.tx td:first-child { white-space: nowrap; font-family: var(--mono); font-size: .85rem; }
table.tx .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
table.tx .neg { color: var(--bad); }
table.tx tr.row-bad td { background: var(--bad-bg); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 800; margin-bottom: 8px; }
.steps strong { display: block; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
summary { cursor: pointer; font-weight: 700; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
dl.facts dt { font-weight: 700; }
dl.facts dd { margin: 0; }
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: .9rem; }
footer a { color: var(--muted); }
.legal h2 { font-size: 1.25rem; }
