:root {
  color-scheme: light;
  --ink: #14221b;
  --muted: #506158;
  --paper: #f4f1e8;
  --panel: #fffdf8;
  --line: #bdc8c0;
  --primary: #174f3a;
  --primary-dark: #0e3828;
  --accent: #9f3d20;
  --accent-dark: #742912;
  --warning-bg: #fff3c4;
  --warning-line: #8d6400;
  --success: #175e37;
  --error: #8d231d;
  --focus: #055dcc;
  --shadow: 0 12px 30px rgba(20, 34, 27, 0.08);
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
a { color: var(--primary-dark); }

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
  padding: 54px 0 28px;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 0.95; letter-spacing: -0.045em; }
h2 { margin-bottom: 10px; font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.2; }
.lede { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }
.eyebrow, .step { margin-bottom: 8px; color: var(--accent-dark); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.privacy-badge { flex: 0 0 auto; padding: 14px 18px; border: 1px solid var(--primary); border-radius: 10px; background: #e8f3ec; text-align: right; font-size: 0.9rem; }

main { display: grid; gap: 22px; }
.panel { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.test-link { font-weight: 750; white-space: nowrap; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; margin-bottom: 7px; font-weight: 800; }
.required, .optional { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
input[type="file"], input[type="text"] { width: 100%; min-height: 48px; border: 2px solid #708179; border-radius: 8px; background: #fff; color: var(--ink); }
input[type="file"] { padding: 8px; }
input[type="text"] { padding: 9px 12px; }
.hint { margin: 8px 0 0; color: var(--muted); font-size: 0.88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { min-height: 44px; padding: 9px 16px; border: 2px solid var(--primary); border-radius: 8px; background: transparent; color: var(--primary-dark); font-weight: 800; cursor: pointer; text-decoration: none; }
.button:hover:not(:disabled) { background: #e3eee7; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--primary-dark); }
.button-accent { border-color: var(--accent); background: var(--accent); color: #fff; }
.button-accent:hover:not(:disabled) { background: var(--accent-dark); }
.button-quiet { border-color: #728078; }
.button:disabled { cursor: not-allowed; opacity: 0.5; }
.button:focus-visible, input:focus-visible, a:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
.status { margin: 18px 0 0; padding: 12px 14px; border-left: 5px solid #68756e; background: #edf0ee; }
.status-success { border-color: var(--success); background: #e7f4eb; }
.status-warning { border-color: var(--warning-line); background: #fff7d6; }
.status-error { border-color: var(--error); background: #fbe9e7; }

.warning { padding: 22px 26px; border: 2px solid var(--warning-line); border-radius: 12px; background: var(--warning-bg); }
.warning h2 { font-size: 1.15rem; }
.warning p { margin-bottom: 0; }
.count { padding: 6px 10px; border-radius: 999px; background: #e3eee7; white-space: nowrap; }
.findings { display: grid; gap: 12px; padding: 0; list-style: none; }
.finding { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.finding label { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; cursor: pointer; }
.finding input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--primary); }
.finding:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(23, 79, 58, 0.16); }
.finding-content { display: grid; gap: 8px; min-width: 0; }
.finding-title, .finding-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.finding code { width: fit-content; max-width: 100%; padding: 3px 7px; border-radius: 5px; background: #edf0ee; overflow-wrap: anywhere; }
.recommendation { width: fit-content; color: var(--success); font-size: 0.78rem; font-weight: 850; text-transform: uppercase; }
.finding-empty { padding: 16px; border: 1px dashed var(--line); color: var(--muted); }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; border-color: #9eaa91; background: #f4f8ec; }
.offer p:last-child { margin-bottom: 0; }
.offer-warning { padding-left: 12px; border-left: 4px solid var(--accent); }
.offer-link { text-align: center; }
footer { padding: 28px 0 45px; color: var(--muted); font-size: 0.88rem; }
footer p { margin: 0; }

.test-shell { width: min(920px, calc(100% - 40px)); margin: 44px auto; }
.test-summary { padding: 16px; border-radius: 9px; font-size: 1.1rem; font-weight: 850; }
.test-summary.pass { border: 2px solid var(--success); background: #e7f4eb; }
.test-summary.fail { border: 2px solid var(--error); background: #fbe9e7; }
.test-results { display: grid; gap: 8px; padding-left: 26px; }
.result-pass { color: var(--success); }
.result-fail { color: var(--error); }
.result-fail pre { white-space: pre-wrap; }

@media (max-width: 800px) {
  .site-header { display: grid; padding-top: 32px; }
  .privacy-badge { width: fit-content; text-align: left; }
  .input-grid, .offer { grid-template-columns: 1fr; }
  .offer-link { width: 100%; }
}

@media (max-width: 520px) {
  .site-header, main, footer, .test-shell { width: min(100% - 24px, 1120px); }
  .section-heading { display: grid; gap: 10px; }
  .test-link { white-space: normal; }
  .actions { display: grid; }
  .button { width: 100%; }
  .finding-title, .finding-meta { display: grid; gap: 4px; }
}
