/* Dotfile Audit: the only stylesheet. */
:root {
  --fg: #1b1f24;
  --muted: #57606a;
  --bg: #ffffff;
  --panel: #f6f8fa;
  --border: #d0d7de;
  --accent: #0b5cad;
  --accent-fg: #ffffff;
  --high: #b42318;
  --medium: #8a5a00;
  --low: #57606a;
  --pass: #1a7f37;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6edf3;
    --muted: #9aa5b1;
    --bg: #0d1117;
    --panel: #161b22;
    --border: #30363d;
    --accent: #4c9be8;
    --accent-fg: #0d1117;
    --high: #ff7b72;
    --medium: #e3b341;
    --low: #9aa5b1;
    --pass: #56d364;
  }
}

* { box-sizing: border-box; }

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
}

body { margin: 0; }

a { color: var(--accent); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 0.3em;
  word-break: break-all;
}

.wrap { max-width: 920px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 680px; }

.site-header { border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); }
.site-header nav a { margin-left: 1rem; }

.hero { padding: 2.5rem 0 1rem; }
.hero h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.75rem; }
.sub { font-size: 1.1rem; color: var(--muted); margin: 0; max-width: 46rem; }

.mode-line { color: var(--muted); margin: 1rem 0 0.5rem; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 10rem;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
  text-align: center;
  padding: 1.5rem;
}
.dropzone:hover, .dropzone:focus, .dropzone.is-over { border-color: var(--accent); outline: none; }
.dz-title { font-size: 1.2rem; font-weight: 600; }
.dz-hint { color: var(--muted); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.options { margin: 0.75rem 0 0; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.options label { color: var(--muted); }

select, input[type="text"], input[type="email"], textarea {
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
}

.results { margin: 1.5rem 0; }
.busy { color: var(--muted); }

.result, .msg {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  background: var(--bg);
}
.msg-error { border-color: var(--high); }
.msg-locked { border-color: var(--accent); }

.result-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.status { font-weight: 800; font-size: 1.4rem; letter-spacing: 0.05em; }
.status-pass { color: var(--pass); }
.status-fail { color: var(--high); }
.result-summary, .counts { color: var(--muted); }

.files summary { cursor: pointer; color: var(--muted); }
.notes { color: var(--muted); padding-left: 1.2rem; }

.findings { list-style: none; padding: 0; margin: 1rem 0; }
.finding {
  border: 1px solid var(--border);
  border-left: 4px solid var(--low);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.finding.sev-high { border-left-color: var(--high); }
.finding.sev-medium { border-left-color: var(--medium); }
.finding-top { display: flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; }
.badge { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.05em; }
.badge-high { color: var(--high); }
.badge-medium { color: var(--medium); }
.badge-low { color: var(--low); }
.where { color: var(--muted); word-break: break-all; }
.match, .why { margin: 0.4rem 0; }
.fix-title { font-weight: 600; margin: 0.5rem 0 0.2rem; }
.fix { margin: 0; padding-left: 1.3rem; }

.more { font-weight: 600; }
.guarantee { color: var(--muted); font-size: 0.95rem; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  border: 0;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:disabled { opacity: 0.6; cursor: wait; }
.button-secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

.plans, .what { margin: 2.5rem 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.plan { border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; background: var(--panel); }
.plan h3 { margin-top: 0; }
.small { font-size: 0.9rem; color: var(--muted); }
.unlocked-note { font-weight: 600; color: var(--pass); }

/* Locked/unlocked visibility, toggled by a class on body. */
.unlocked-only { display: none; }
body.is-unlocked .unlocked-only { display: block; }
body.is-unlocked span.unlocked-only { display: inline; }
body.is-unlocked .locked-only { display: none; }

.contact-form .field { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1rem; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.is-ok { color: var(--pass); }
.form-status.is-error { color: var(--high); }

/* Honeypot: hidden from people, visible to naive bots. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.5rem 0; color: var(--muted); }

@media print {
  :root { --fg: #000; --bg: #fff; --muted: #333; --border: #999; --panel: #fff; }
  .site-header nav, #scanner, .plans, .what, .button, .site-footer a[href="/contact.html"], noscript { display: none !important; }
  body { font-size: 11pt; }
  .finding { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .result, .msg { border: 0; padding: 0; }
}
