/* JustAudit — one stylesheet for every page.
   Previously each page carried its own copy of the CSS; they had already started to drift.
   Ledger-paper palette, serif display type, generous space. Adapts to dark mode. */

:root {
  --paper:      #f6f2ea;
  --surface:    #ffffff;
  --surface-2:  #fbf8f2;
  --ink:        #1a1714;
  --ink-2:      #4a443d;
  --muted:      #7a736a;
  --line:       #e2dad0;
  --line-2:     #cfc4b6;
  --accent:     #8a2b16;
  --accent-ink: #ffffff;
  --accent-sub: #fdf1ec;
  --ok:         #0f6b47;
  --ok-bg:      #e9f7f0;
  --warn:       #97591a;
  --warn-bg:    #fdf3e3;
  --bad:        #a51f1f;
  --bad-bg:     #fceeee;
  --radius:     10px;
  --shadow:     0 1px 2px rgba(26,23,20,.05), 0 8px 24px -12px rgba(26,23,20,.18);
  --shadow-lg:  0 2px 4px rgba(26,23,20,.06), 0 24px 48px -20px rgba(26,23,20,.28);
  --serif:      "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:       ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:       ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #14120f;
    --surface:   #1d1a16;
    --surface-2: #232019;
    --ink:       #f2ece2;
    --ink-2:     #cdc4b7;
    --muted:     #9a9084;
    --line:      #322c25;
    --line-2:    #453d33;
    --accent:    #d4643f;
    --accent-ink:#1a1714;
    --accent-sub:#2a1d17;
    --ok:        #5fc79b;  --ok-bg:   #16241e;
    --warn:      #e0a355;  --warn-bg: #2a2015;
    --bad:       #f08a8a;  --bad-bg:  #2b1818;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 48px -20px rgba(0,0,0,.7);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.wrap  { max-width: 680px; margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.section { padding: 56px 0; }
.section-tight { padding: 34px 0; }

/* ── Site header ────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .bar {
  display: flex; align-items: center; gap: 18px;
  padding: 13px 22px; max-width: 1180px; margin: 0 auto;
}
.brand {
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  letter-spacing: -.01em; color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-sub);
}
.site-head nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-head nav a {
  color: var(--ink-2); text-decoration: none; font-size: 14.5px;
  padding: 7px 12px; border-radius: 7px;
}
.site-head nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-head nav a.cta {
  background: var(--accent); color: var(--accent-ink);
}
.site-head nav a.cta:hover { background: var(--accent); filter: brightness(1.08); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: 74px 0 44px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-sub);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px; font-weight: 600;
}
h1.display {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(34px, 6vw, 54px); line-height: 1.1; margin: 0 0 18px;
}
.lede { font-size: clamp(17px, 2.2vw, 19.5px); color: var(--ink-2); margin: 0 auto 30px; max-width: 33em; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 9px; border: 1px solid transparent;
  font: 600 15.5px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn-lg { padding: 17px 30px; font-size: 17px; width: 100%; }
.btn:disabled, .btn.is-off { opacity: .55; pointer-events: none; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Cards ──────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.feature h3 { font-family: var(--serif); font-size: 18.5px; margin: 12px 0 6px; font-weight: 600; }
.feature p  { color: var(--ink-2); font-size: 15px; margin: 0; }
.feature .ic { font-size: 22px; height: 28px; line-height: 28px; display: block; }

/* ── Steps ──────────────────────────────────────────────────────────── */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 22px 48px; color: var(--ink-2);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-sub); color: var(--accent);
  font: 600 15px/32px var(--sans); text-align: center;
}
.steps li::after {
  content: ""; position: absolute; left: 15.5px; top: 34px; bottom: 4px; width: 1px;
  background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps strong { color: var(--ink); display: block; font-size: 16px; }

/* ── Type ───────────────────────────────────────────────────────────── */
h2.title { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 31px); font-weight: 600;
           letter-spacing: -.015em; margin: 0 0 8px; }
h3.sub   { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 10px; }
.muted   { color: var(--muted); font-size: 14.5px; }
.center  { text-align: center; }
.rule    { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

/* ── Forms ──────────────────────────────────────────────────────────── */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
/* Styled with a LOW-specificity selector on purpose: an <input> with no type attribute
   still needs field styling (that is how the name field lost its width), but page-level
   rules must be able to override it without a specificity fight. */
input, select, textarea {
  width: 100%; padding: 12px 14px; font: 15.5px var(--sans);
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 8px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-sub);
}
input[type=checkbox], input[type=radio], input[type=submit], input[type=button], input[type=hidden] {
  width: auto; padding: 0; border: 0; background: none; box-shadow: none;
}
input::placeholder { color: var(--muted); }

/* ── Notices ────────────────────────────────────────────────────────── */
.note { border-radius: 9px; padding: 13px 16px; font-size: 14.5px; margin: 14px 0;
        border: 1px solid transparent; }
.note-err  { background: var(--bad-bg);  border-color: color-mix(in srgb, var(--bad) 30%, transparent);  color: var(--bad); }
.note-ok   { background: var(--ok-bg);   border-color: color-mix(in srgb, var(--ok) 30%, transparent);   color: var(--ok); }
.note-warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }

/* ── Product key ────────────────────────────────────────────────────── */
.keybox {
  font: 600 clamp(19px, 4.4vw, 27px)/1.35 var(--mono); letter-spacing: .07em;
  background: var(--surface); border: 2px dashed var(--accent);
  color: var(--accent);
  padding: 22px 16px; border-radius: var(--radius); text-align: center;
  user-select: all; word-break: break-all; margin: 20px 0 10px;
}

/* ── Pills ──────────────────────────────────────────────────────────── */
.pill {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font: 600 12.5px/1.5 var(--sans); border: 1px solid currentColor;
  white-space: nowrap;
}
.pill-ok { color: var(--ok); } .pill-warn { color: var(--warn); }
.pill-bad { color: var(--bad); } .pill-mut { color: var(--muted); }

/* ── Device rows ────────────────────────────────────────────────────── */
.device {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.device .name { font-weight: 600; }
.device .meta { font-size: 13.5px; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--line); margin-top: 60px; padding: 30px 0 46px;
  color: var(--muted); font-size: 14px;
}
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.site-foot .bar { display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
                  max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.site-foot .spacer { margin-left: auto; }

a { color: var(--accent); }

/* Respect a user's reduced-motion setting. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
