/* ProvenFound website. System fonts only (no external requests). */
:root {
  --ink: #0f2742;
  --ink-2: #33475e;
  --muted: #5f6f82;
  --line: #dfe4ea;
  --paper: #f6f4ef;
  --white: #ffffff;
  --accent: #17725d;
  --accent-ink: #0d5545;
  --mint: #7fd1b9;
  --fail: #b42318;
  --fail-bg: #fdecea;
  --warn: #9a5a00;
  --warn-bg: #fff3dc;
  --pass: #1f7a4d;
  --pass-bg: #e6f4ec;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3, .h3 { font-family: var(--sans); font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: #eef1f4; padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
pre { background: var(--ink); color: #e8f1f8; padding: 16px 18px; border-radius: 10px; overflow-x: auto; }
pre code { background: none; color: inherit; padding: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.narrow-wide { max-width: 920px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: .86rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46em; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* Banners */
.env-banner { background: #fff3dc; color: #5c3b00; border-bottom: 1px solid #f0c98a; text-align: center; font-size: .88rem; padding: 8px 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 750; font-size: 1.14rem; letter-spacing: .005em; }
.brand-name span { color: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a, .menu nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 2px; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; min-width: 220px; box-shadow: 0 12px 30px rgba(15,39,66,.12); }
.menu nav a { padding: 9px 10px; border-radius: 8px; }
.menu nav a:hover { background: var(--paper); }

/* Buttons */
.btn { display: inline-block; border: 1px solid transparent; border-radius: 10px; padding: 12px 20px; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: #c8d0da; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mint); color: var(--ink); }
.btn-small { padding: 9px 14px; font-size: .92rem; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Sections */
.hero { padding: 72px 0 64px; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 15em; }
.hero-form { display: flex; gap: 10px; margin: 26px 0 10px; max-width: 560px; }
.hero-form input { flex: 1; min-width: 0; }
.page-head { padding: 60px 0 36px; background: var(--paper); border-bottom: 1px solid var(--line); }
.band { padding: 72px 0; }
.band-tight { padding: 48px 0 64px; }
.band-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-ink { background: var(--ink); color: #fff; padding: 56px 0; }
.band-ink h2 { color: #fff; }
.band-ink p { color: #c9d6e3; margin: 0; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card-plain { background: transparent; border: 0; border-top: 3px solid var(--ink); border-radius: 0; padding: 20px 0 0; }
.card-kicker { font-family: var(--mono); font-size: .8rem; color: var(--accent); font-weight: 700; margin-bottom: .4em; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " \2192"; }

/* Evidence card */
.evidence-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(15,39,66,.08); }
.evidence-card figcaption { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.evidence-card dl { margin: 0; }
.evidence-card dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.evidence-card dt { color: var(--muted); }
.evidence-card dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.evidence-card .fine { margin: 12px 0 0; }
.tag { display: inline-block; font-size: .76rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: #eef1f4; color: var(--ink-2); }
.tag-fail { background: var(--fail-bg); color: var(--fail); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }

/* Steps and lists */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 58px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 700; color: var(--accent); border: 1px solid #b9dccf; background: #fff; border-radius: 10px; width: 42px; height: 34px; display: grid; place-items: center; font-size: .9rem; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--ink-2); }
.steps-compact li { padding-left: 52px; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.checklist-muted li::before { width: 10px; height: 0; border-left: 0; border-bottom: 2.5px solid #9aa7b6; transform: none; top: .8em; }
.promise { margin-top: 20px; padding: 20px 22px; border-left: 4px solid var(--ink); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.promise h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: .4em; }
.promise p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* Pricing */
.plan { display: flex; flex-direction: column; }
.plan .btn { margin-top: auto; }
.plan-featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.price { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin-bottom: .4em; }
.price span { display: block; font-family: var(--sans); font-size: .88rem; color: var(--muted); font-weight: 500; }

/* Forms */
.audit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.audit-side h2 { font-size: 1.35rem; }
.form h2 { font-size: 1.5rem; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c5ced8; border-radius: 10px; padding: 11px 13px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid rgba(127,209,185,.45); outline-offset: 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--fail); }
.field-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 4px; }
.field-check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.field-check label { font-weight: 400; margin: 0; }
.field-error, .form-error { color: var(--fail); font-size: .86rem; margin: 4px 0 0; min-height: 0; }
.form-error:empty, .field-error:empty { display: none; }
.form-success { background: var(--pass-bg); color: var(--pass); border-radius: 10px; padding: 14px 16px; font-weight: 600; }
.notice { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .93rem; }
.notice ul { margin: 6px 0 0; padding-left: 1.2em; }
.form .notice { margin-bottom: 18px; }
.pricing { margin-bottom: 28px; }
.notice-demo, .notice-draft { background: var(--warn-bg); border-color: #f0c98a; color: #5c3b00; }

/* Results */
.progress-card { text-align: center; padding: 40px 28px; }
.progress-failed { border-color: #f3c7c2; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid #d9e6e1; border-top-color: var(--accent); margin: 0 auto 18px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.result-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 14px; }
.result-site { overflow-wrap: anywhere; margin-bottom: .2em; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.totals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 18px 0 6px; }
.total { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .86rem; color: var(--muted); }
.total span { display: block; font-size: 1.8rem; font-weight: 700; color: var(--ink); line-height: 1.15; }
.total-fail span { color: var(--fail); }
.total-warn span { color: var(--warn); }
.total-na span { color: #8592a3; }
.score-line { font-family: var(--serif); font-size: 1.35rem; margin: 0; }
.priorities { padding-left: 1.3em; }
.priorities li { margin-bottom: .8em; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 52px 0 24px; margin-top: 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid a { display: block; color: var(--ink-2); text-decoration: none; margin-bottom: 6px; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid .brand { display: inline-flex; margin-bottom: 8px; }
.footer-h { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.footer-tag { font-family: var(--serif); font-size: 1.1rem; margin-bottom: .4em; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; color: var(--muted); font-size: .85rem; }

/* Responsive */
@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .menu { display: block; }
  .hero-grid, .two-col, .audit-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards.three { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 44px 0 40px; }
  .band { padding: 52px 0; }
  .hero-form { flex-direction: column; }
  .field-row, .cards.two { grid-template-columns: 1fr; }
  .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}
@media print {
  .site-header, .site-footer, .band-ink, .env-banner, .result-actions { display: none; }
}
