:root {
  color-scheme: light;
  --ink: #14181d;
  --ink-2: #41474f;
  --ink-3: #6b7280;
  --bg: #ffffff;
  --bg-2: #f7f7f4;
  --bg-3: #eef0ea;
  --dark: #101512;
  --dark-2: #18201b;
  --brand: #1d5c3f;
  --brand-strong: #154730;
  --brand-tint: #e8f1ec;
  --gold: #b08742;
  --gold-tint: #f6efe2;
  --red: #a63d32;
  --red-tint: #f8ebe8;
  --amber: #94630d;
  --amber-tint: #fbf3dd;
  --line: #dfe3dc;
  --shadow: 0 18px 55px rgba(20, 24, 29, .08);
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.55; }
button, input { font: inherit; }
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(-150%); z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { transform: translateY(0); }

.topbar { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); }
.topbar-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 18px; letter-spacing: -.01em; }
.brand b { color: var(--brand); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--brand); border-radius: 10px; font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.topbar-meta { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.report-link { color: var(--brand); font-size: 12px; font-weight: 800; text-decoration: none; }
.report-link:hover { text-decoration: underline; }
.prototype-badge { padding: 6px 9px; color: var(--brand-strong); background: var(--brand-tint); border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }

.hero { color: #fff; background: linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 70%, #223b2d 100%); padding: 82px 0 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 72px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { color: #9cc7af; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(48px, 7vw, 78px); line-height: .98; letter-spacing: -.055em; max-width: 780px; }
.hero-copy { max-width: 690px; color: #d8e1db; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.principles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.principles span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.19); border-radius: 999px; color: #e7eee9; font-size: 12px; }
.strict-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); padding: 28px; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.card-kicker { margin-bottom: 20px; color: #a7b4ac; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.strict-card ol { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.strict-card li { counter-increment: steps; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.1); }
.strict-card li::before { content: counter(steps); display: grid; place-items: center; width: 25px; height: 25px; color: #e6d4ad; background: rgba(176,135,66,.18); border-radius: 50%; font-size: 11px; font-weight: 800; }
.strict-card li b, .strict-card li span { grid-column: 2; }
.strict-card li b { line-height: 1.2; }
.strict-card li span { color: #bfcac3; font-size: 13px; margin-top: -7px; }

.scan-section { background: var(--bg-2); padding: 48px 0 62px; border-bottom: 1px solid var(--line); }
.scan-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow); margin-top: -92px; position: relative; z-index: 2; }
.scan-heading, .section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.scan-heading h2, .section-title h3 { margin: 0; letter-spacing: -.035em; }
.scan-heading h2 { font-size: clamp(28px, 4vw, 40px); }
.safe-label { color: var(--brand); background: var(--brand-tint); border-radius: 999px; padding: 8px 11px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.scan-form { margin-top: 30px; }
.scan-form label { display: block; font-weight: 750; margin-bottom: 8px; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.input-row input { width: 100%; min-height: 56px; padding: 0 17px; color: var(--ink); border: 1px solid #c9cfc7; border-radius: 11px; outline: none; }
.input-row input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29,92,63,.11); }
.input-row button, .secondary-button { border: 0; border-radius: 11px; cursor: pointer; font-weight: 800; }
.input-row button { padding: 0 24px; color: #fff; background: var(--brand); }
.input-row button:hover { background: var(--brand-strong); }
.input-row button:disabled { opacity: .68; cursor: wait; }
.form-note, .section-note { margin: 10px 0 0; color: var(--ink-3); font-size: 12px; }
.progress { margin-top: 20px; display: flex; gap: 14px; align-items: center; padding: 15px; border-radius: 11px; color: var(--brand-strong); background: var(--brand-tint); }
.progress[hidden], .error[hidden], .report[hidden] { display: none; }
.progress div { display: grid; }
.progress span:last-child { color: var(--ink-2); font-size: 12px; }
.spinner { width: 22px; height: 22px; border: 2px solid #b4cbbb; border-top-color: var(--brand); border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { margin-top: 18px; color: var(--red); background: var(--red-tint); border: 1px solid #edc6c0; border-radius: 10px; padding: 13px 15px; font-size: 14px; }

.report { padding: 70px 0 90px; background: #fff; scroll-margin-top: 70px; }
.report-head { display: grid; grid-template-columns: 152px 1fr auto; gap: 30px; align-items: center; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.score-ring { --score: 0deg; width: 146px; height: 146px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) var(--score), var(--bg-3) 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.score-ring > div { position: relative; z-index: 1; display: grid; text-align: center; }
.score-ring strong { font-size: 43px; line-height: 1; letter-spacing: -.05em; }
.score-ring span { color: var(--ink-3); font-size: 12px; }
.report-summary h2 { margin: 0; font-size: clamp(32px, 5vw, 50px); letter-spacing: -.045em; }
.target-line { margin: 5px 0 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.grade-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.grade-level { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; background: var(--brand); border-radius: 8px; font-weight: 900; }
.score-cap { color: var(--ink-3); font-size: 12px; }
.scan-meta { margin: 10px 0 0; color: var(--ink-3); font-size: 12px; }
.secondary-button { color: var(--brand); background: var(--brand-tint); padding: 12px 15px; }
.secondary-button:hover { background: #dcebe2; }

.report-section { padding-top: 54px; }
.section-title { align-items: center; margin-bottom: 22px; }
.section-title h3 { font-size: clamp(24px, 3vw, 33px); }
.section-title.compact { margin-bottom: 12px; }
.count-badge { border-radius: 999px; padding: 7px 10px; font-size: 11px; font-weight: 800; }
.count-badge.good { color: var(--brand); background: var(--brand-tint); }
.count-badge.danger { color: var(--red); background: var(--red-tint); }
.gate-list { display: grid; gap: 10px; }
.gate-card { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 15px; padding: 17px 18px; color: #6e2d25; background: var(--red-tint); border: 1px solid #edc6c0; border-radius: 12px; }
.gate-card.gate-clear { grid-template-columns: 34px 1fr; color: var(--brand-strong); background: var(--brand-tint); border-color: #c4d9cc; }
.gate-icon { display: grid; place-items: center; width: 29px; height: 29px; color: #fff; background: var(--red); border-radius: 50%; font-weight: 900; }
.gate-clear .gate-icon { background: var(--brand); }
.gate-card h4 { margin: 0; font-size: 15px; }
.gate-card p { margin: 3px 0 0; color: #8e514a; font-size: 12px; }
.gate-cap { white-space: nowrap; padding: 6px 8px; color: var(--red); background: #fff; border-radius: 7px; font-size: 11px; font-weight: 800; }

.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.category-card { border: 1px solid var(--line); border-radius: 15px; padding: 20px; background: #fff; }
.category-card.pass { box-shadow: inset 3px 0 var(--brand); }
.category-card.partial { box-shadow: inset 3px 0 var(--amber); }
.category-card.fail { box-shadow: inset 3px 0 var(--red); }
.category-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.category-head h4 { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.category-head p { margin: 5px 0 0; color: var(--ink-3); font-size: 12px; }
.category-score { min-width: 58px; text-align: right; }
.category-score strong { display: block; font-size: 24px; line-height: 1; }
.category-score span { color: var(--ink-3); font-size: 11px; }
.category-bar { height: 5px; margin: 16px 0; overflow: hidden; background: var(--bg-3); border-radius: 999px; }
.category-bar span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.partial .category-bar span { background: var(--amber); }
.fail .category-bar span { background: var(--red); }
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 19px 1fr; gap: 9px; align-items: start; }
.check-mark { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 900; }
.check-pass .check-mark { color: var(--brand); background: var(--brand-tint); }
.check-fail .check-mark { color: var(--red); background: var(--red-tint); }
.check-list b, .check-list span { display: block; }
.check-list b { font-size: 12px; line-height: 1.35; }
.check-list div span { margin-top: 2px; color: var(--ink-3); font-size: 11px; overflow-wrap: anywhere; }

.report-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.claim-list { display: grid; gap: 10px; margin-top: 18px; }
.claim-card { padding: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; }
.claim-card p { margin: 0; font-size: 12px; }
.claim-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.claim-tags span { padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tag-pass { color: var(--brand); background: var(--brand-tint); }
.tag-fail { color: var(--red); background: var(--red-tint); }
.empty-note { color: var(--ink-3); font-size: 13px; }
.untested-list { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
.untested-list li { display: grid; grid-template-columns: 20px 1fr; gap: 9px; color: var(--ink-2); font-size: 13px; }
.untested-mark { color: var(--gold); font-weight: 900; }

.manifest-hash { display: block; max-width: 310px; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); font-size: 10px; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--ink-3); background: var(--bg-2); text-transform: uppercase; letter-spacing: .07em; font-size: 9px; }
tbody tr:last-child td { border-bottom: 0; }
.artifact-name { font-weight: 800; }
.status-ok { color: var(--brand); font-weight: 900; }
.status-warn { color: var(--amber); font-weight: 900; }
.status-fail { color: var(--red); font-weight: 900; }
.hash { color: var(--ink-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.number { font-variant-numeric: tabular-nums; }

.benchmark-section { padding: 76px 0; color: #fff; background: var(--dark); }
.benchmark-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.benchmark-section h2 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.04em; }
.benchmark-section p { color: #c5d0c9; }
.benchmark-list { display: grid; gap: 9px; }
.benchmark-list a { display: flex; justify-content: space-between; gap: 20px; padding: 15px 17px; text-decoration: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; }
.benchmark-list a:hover { background: rgba(255,255,255,.1); }
.benchmark-list span { color: #aebbb3; font-size: 12px; }

footer { color: var(--ink-3); background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; padding: 24px 0; font-size: 11px; }

@media (max-width: 900px) {
  .hero-grid, .benchmark-grid, .report-columns { grid-template-columns: 1fr; }
  .hero-grid { gap: 38px; }
  .report-head { grid-template-columns: 126px 1fr; }
  .score-ring { width: 122px; height: 122px; }
  .secondary-button { grid-column: 2; justify-self: start; }
  .category-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 24px, 1160px); }
  .ruleset { display: none; }
  .hero { padding: 60px 0 86px; }
  h1 { font-size: 49px; }
  .strict-card { padding: 22px; }
  .scan-panel { margin-top: -72px; padding: 22px 17px; }
  .scan-heading, .section-title { align-items: flex-start; flex-direction: column; gap: 8px; }
  .input-row { grid-template-columns: 1fr; }
  .input-row button { min-height: 51px; }
  .report { padding-top: 52px; }
  .report-head { grid-template-columns: 1fr; text-align: center; }
  .score-ring { margin-inline: auto; }
  .grade-row { justify-content: center; }
  .secondary-button { grid-column: 1; justify-self: center; }
  .gate-card { grid-template-columns: 30px 1fr; align-items: start; }
  .gate-cap { grid-column: 2; justify-self: start; }
  .manifest-hash { max-width: 100%; }
  .benchmark-list a, .footer-inner { flex-direction: column; }
  .footer-inner { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .spinner { animation-duration: 1.8s; }
}

.preview-evidence-note{color:var(--amber);background:var(--amber-tint);border-radius:9px;padding:10px 12px;font-size:12px}
