/* Instant Proof — molar.it/verify
   Self-hosted fonts (no Google Fonts). Licenses: fonts/README.md + OFL-*.txt */

/* Instrument Sans — body (OFL 1.1) */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Bricolage Grotesque — display (OFL 1.1) */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Geist Mono — code / labels (OFL 1.1) */
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #faf9f6;
  --ink: #17150f;
  --ink-2: #565144;
  /* Muted ink ≥4.5:1 on cream (#faf9f6) — WCAG AA; was #8f897a ≈3.3:1 */
  --ink-3: #5c574b;
  --line: #e7e3d8;
  --card: #ffffff;
  --signal: #e04a2f;
  /* Jade darkened so labels on --jade-soft / cream pass AA (≥4.5); was #178a5b ≈3.9:1 */
  --jade: #127a50;
  --jade-soft: #e8f5ee;
  --fail: #a9232f;
  --fail-soft: #fce9eb;
  --font: "Instrument Sans", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); }
a { color: inherit; }

.verify-shell { min-height: 100svh; display: flex; flex-direction: column; }
.verify-nav {
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 48px); border-bottom: 1px solid var(--line); background: rgba(250,249,246,.92); backdrop-filter: blur(10px);
}
.verify-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.02em; }
.verify-brand span {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px;
  background: var(--ink); color: var(--bg); font-size: 13px;
}
.verify-nav nav { display: flex; gap: 18px; align-items: center; }
.verify-nav a { text-decoration: none; color: var(--ink-2); font-size: 13px; }
.verify-nav a:hover { color: var(--ink); }
.verify-nav .btn {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; text-decoration: none;
}

.verify-main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.verify-hero { max-width: 42rem; margin-bottom: 28px; }
.verify-hero .eyebrow {
  margin: 0 0 10px; color: var(--ink-3); font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.verify-hero h1 {
  margin: 0 0 12px; font-family: var(--display); font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -.045em; line-height: 1.05; font-weight: 600;
}
.verify-hero p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 48ch; }

.instrument {
  display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr) minmax(220px, 0.75fr);
  gap: 14px; align-items: stretch;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(23,21,15,.04), 0 18px 48px -28px rgba(23,21,15,.18);
}
.instrument-head {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f6f4ef;
  font: 500 11px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em;
}
.instrument-head b { color: var(--jade); font-weight: 600; }

.panel { padding: 18px 18px 20px; }
.panel h2 { margin: 0 0 14px; font-size: 20px; letter-spacing: -.03em; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px;
  font: inherit; font-size: 14px; background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 84px; }
.primary {
  width: 100%; min-height: 42px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--bg); font: 600 14px/1 var(--font);
}
.primary:disabled { opacity: .55; cursor: not-allowed; }
.policy { margin: 10px 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.45; }
.error { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--fail-soft); color: var(--fail); font-size: 13px; }

.stage { padding: 16px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: #f3f1ec; }
.phases { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.phases span {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-3); font-size: 11px; font-weight: 600;
}
.phases span[data-active] { color: var(--ink); border-color: color-mix(in srgb, var(--jade) 35%, var(--line)); background: var(--jade-soft); }
.browser {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #111;
  min-height: 280px; display: flex; flex-direction: column;
}
.browser-bar {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 8px 10px; background: #1b1b1b; color: #bdb8ad; font: 500 11px/1.2 var(--mono);
}
.browser-bar code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame {
  flex: 1; min-height: 240px; display: grid; place-items: center; background:
    linear-gradient(180deg, #191919, #0f0f0f);
  color: #d8d4c8; text-align: center; padding: 24px;
}
.frame img { width: 100%; height: auto; display: block; background: #fff; }
.frame strong { display: block; margin-top: 8px; font-size: 16px; color: #fff; }
.frame small { display: block; margin-top: 6px; color: var(--ink-3); }

.evidence { padding: 16px 16px 18px; }
.evidence header { display: flex; justify-content: space-between; margin-bottom: 12px; font: 600 11px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.evidence ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.evidence li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; color: var(--ink-3); }
.evidence li[data-active] { color: var(--ink); }
.evidence li span { font: 600 11px/1 var(--mono); }
.evidence li b { display: block; font-size: 13px; }
.evidence li small { color: var(--ink-3); font-size: 12px; }
.verdict {
  padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; margin-bottom: 12px;
}
.verdict[data-pass] { border-color: color-mix(in srgb, var(--jade) 40%, var(--line)); background: var(--jade-soft); }
.verdict strong { display: block; font-size: 18px; margin: 4px 0 8px; letter-spacing: -.02em; }
.verdict p { margin: 0 0 10px; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.verdict code { font: 500 11px/1.3 var(--mono); color: var(--ink-3); }
.actions { display: grid; gap: 8px; margin-top: 12px; }
.actions button, .actions a {
  min-height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 600 13px/1 var(--font); text-decoration: none; cursor: pointer;
}
.actions .retain { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.evidence footer {
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 8px; color: var(--ink-3); font: 500 11px/1.3 var(--mono);
}

@media (max-width: 960px) {
  .instrument { grid-template-columns: 1fr; }
  .stage { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
}
