:root {
  color: #172033;
  background: #f6f8fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #3157d5; text-decoration: none; }
a:hover { text-decoration: underline; }
main { min-height: 100vh; }
.hero { padding: 28px 7vw 72px; background: radial-gradient(circle at top right, #dce8ff, transparent 30%), linear-gradient(135deg, #eef4ff, #fff); }
nav { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 64px; }
.brand { color: #172033; font-weight: 900; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 48px; align-items: center; }
h1 { margin: 0 0 20px; font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 1; letter-spacing: -.04em; }
h2 { margin-top: 36px; }
h3 { margin-top: 0; }
.lede { max-width: 760px; color: #536173; font-size: 1.25rem; line-height: 1.6; }
.lede.small { font-size: 1rem; }
.eyebrow { color: #3157d5; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.scan-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 12px; max-width: 780px; margin-top: 28px; }
.scan-form input, .auth input { width: 100%; padding: 16px 18px; border: 1px solid #d5ddec; border-radius: 14px; color: #172033; font-size: 1rem; background: #fff; }
button { padding: 16px 24px; border: 0; border-radius: 14px; background: #172033; color: #fff; font-weight: 900; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .7; }
.secondary { border: 1px solid #cbd5e1; background: #fff; color: #172033; }
.link-button { margin-top: 18px; padding: 0; color: #3157d5; background: transparent; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.error { grid-column: 1 / -1; margin: 0; color: #b42318; font-weight: 800; }
.progress { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.progress span { position: relative; padding: 10px 12px; border-radius: 999px; color: #3157d5; background: #e8eefc; font-size: .85rem; font-weight: 800; text-align: center; overflow: hidden; }
.progress span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffff99, transparent); animation: shimmer 1.3s infinite; }
.cards, .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: 40px 7vw; }
.page { padding: 36px 7vw; }
.narrow { max-width: 820px; margin: 0 auto; }
.card, .finding, .result-head, .empty, details, .loading-card, .summary-grid article, .table { border: 1px solid #e3e8f2; border-radius: 22px; background: #fff; box-shadow: 0 18px 45px #1720330d; }
.card, .finding, .empty, details, .loading-card, .summary-grid article { padding: 24px; }
.preview { max-width: 420px; }
.score { color: #3157d5; font-size: 4.5rem; font-weight: 950; line-height: 1; }
.score span { color: #536173; font-size: 1.4rem; }
.warn { color: #b45309; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 28px 0; padding: 28px; }
.result-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.score-label { font-size: 1.2rem; font-weight: 900; }
.score-ring { display: grid; place-items: center; width: 148px; height: 148px; flex: 0 0 auto; border-radius: 999px; color: #172033; background: conic-gradient(var(--score-color, #23a36b) calc(var(--score, 72) * 1%), #e9edf5 0); border: 10px solid #fff; box-shadow: inset 0 0 0 1px #d8e0ed, 0 18px 45px #17203314; }
.score-ring span { font-size: 3rem; font-weight: 950; }
.score-ring small { margin-top: -30px; color: #536173; font-weight: 800; }
.score-ring.good { --score-color: #23a36b; }
.score-ring.ok { --score-color: #f79009; }
.score-ring.weak { --score-color: #f97316; }
.score-ring.risk { --score-color: #d92d20; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.summary-grid strong { display: block; font-size: 2rem; }
.summary-grid span { color: #536173; font-weight: 800; }
.bar { height: 10px; overflow: hidden; border-radius: 999px; background: #e9edf5; }
.bar span { display: block; height: 100%; border-radius: 999px; background: #23a36b; }
.findings { display: grid; gap: 16px; }
.finding span, .badge { font-size: .75rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.finding.failed { border-left: 7px solid #d92d20; }
.finding.warning { border-left: 7px solid #f79009; }
.evidence { color: #536173; font-size: .92rem; }
.recommendations { display: grid; gap: 10px; padding: 24px 24px 24px 44px; border: 1px solid #e3e8f2; border-radius: 22px; background: #fff; box-shadow: 0 18px 45px #1720330d; }
details { margin: 28px 0; }
summary { cursor: pointer; font-weight: 900; }
.table { overflow: hidden; }
.row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 110px; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #e3e8f2; }
.row:last-child { border-bottom: 0; }
.row a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-block; padding: 6px 8px; border-radius: 999px; text-align: center; }
.badge.passed { color: #027a48; background: #ecfdf3; }
.badge.warning { color: #b54708; background: #fffaeb; }
.badge.failed { color: #b42318; background: #fef3f2; }
.empty { margin: 18px 0; }
.empty h3 { margin-bottom: 6px; }
.empty p { margin-bottom: 0; color: #536173; }
.empty-error { border-color: #fecdca; background: #fff7f7; }
.disclaimer { margin-top: 36px; padding-top: 20px; border-top: 1px solid #e3e8f2; color: #667085; }
.auth { display: grid; gap: 12px; margin-top: 20px; }
.skeleton, .spinner { background: linear-gradient(90deg, #edf2f7, #fff, #edf2f7); background-size: 220% 100%; animation: shimmer 1.3s infinite; }
.skeleton { height: 96px; border-radius: 22px; }
.spinner { width: 54px; height: 54px; border-radius: 999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (max-width: 800px) {
  .hero { padding: 22px 5vw 48px; }
  nav, .result-head { align-items: flex-start; }
  .hero-grid, .result-head, .summary-grid { display: grid; grid-template-columns: 1fr; }
  .scan-form, .progress, .row { grid-template-columns: 1fr; }
  .cards, .grid, .page { padding-left: 5vw; padding-right: 5vw; }
  .score-ring { width: 120px; height: 120px; }
}
