:root {
  --bg: #fbfaf7; --fg: #1d1b18; --muted: #6b665e; --line: #e4e0d8; --card: #fff;
  --accent: #b4361f; --accent-fg: #fff; --ok: #2f6b3a; --warn-bg: #fff4e5;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161513; --fg: #ece8e1; --muted: #a39d93; --line: #2f2c28; --card: #1e1c1a; --accent: #e0664c; --warn-bg: #2b2217; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 Georgia, "Iowan Old Style", serif; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
h1, h2, h3, .brand, .button, nav, label, .points, .price, .eyebrow { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin: 1.2em 0 .4em; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; }
nav a { margin-left: 16px; color: var(--muted); text-decoration: none; }
.lead { font-size: 1.12rem; color: var(--muted); }
.claim { border-left: 3px solid var(--ok); padding-left: 12px; }
.check-form { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 24px 0; }
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .95rem; }
label.checkbox { font-weight: 400; }
input[type=text], textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; }
textarea { resize: vertical; }
.button { display: inline-block; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 8px; padding: 12px 20px; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; margin-top: 16px; }
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.hint, .note { color: var(--muted); font-size: .9rem; }
.error { color: var(--accent); font-size: .9rem; margin: 4px 0; }
.flash, .rule-note { background: var(--warn-bg); padding: 10px 14px; border-radius: 8px; }
.criteria { display: grid; gap: 14px; margin: 20px 0; }
.criterion { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.criterion header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.criterion h2 { font-size: 1.02rem; margin: 0; }
.points { font-weight: 700; white-space: nowrap; }
.evidence { color: var(--muted); font-style: italic; }
.fix { margin-bottom: 0; }
.tag { font-family: system-ui, sans-serif; font-size: .75rem; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; margin-right: 6px; }
.eyebrow { color: var(--muted); font-size: .9rem; margin: 1.5em 0 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.price { font-size: 2rem; font-weight: 700; margin: 0; }
.grid-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.grid-table th, .grid-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 6px; }
.spinner { width: 36px; height: 36px; 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; } }
.dispute { margin: 24px 0; }
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; color: var(--muted); font-size: .9rem; }
select, input[type=number] { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; }
fieldset.scores { border: 1px solid var(--line); border-radius: 8px; margin: 16px 0; padding: 4px 14px 14px; }
.photo-form { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.photo-form summary { cursor: pointer; font-weight: 600; }
.button-secondary { background: transparent; color: var(--ink, inherit); border: 1px solid var(--line); }
form.inline { display: inline; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; }
