:root {
  --ink: #181818;
  --muted: #6f6f6f;
  --line: #e7e7e7;
  --soft: #f7f7f4;
  --accent: #ef5a3c;
  --accent-dark: #d7462d;
  --ok: #1f8a59;
  --warn: #b47b05;
  --risk: #b9362a;
  --info: #62748a;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0,0,0,.07);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--soft); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 80px; }
.hero { background: var(--white); padding: clamp(28px, 6vw, 74px); border-radius: 28px; box-shadow: var(--shadow); }
.brand { font-weight: 900; letter-spacing: -2px; font-size: 30px; margin-bottom: 48px; }
.brand span { color: var(--accent); }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .13em; color: var(--accent); }
h1 { max-width: 760px; margin: 0; font-size: clamp(38px, 6vw, 72px); line-height: .98; letter-spacing: -.045em; }
h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.025em; }
.intro { max-width: 760px; margin: 26px 0 36px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.scan-form label:not(.consent) { display: block; font-size: 13px; font-weight: 800; margin-bottom: 9px; }
.url-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input[type="text"] { width: 100%; border: 1px solid #d6d6d6; background: #fff; padding: 17px 18px; border-radius: 12px; outline: none; min-height: 58px; }
input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(239,90,60,.1); }
button { border: 0; cursor: pointer; min-height: 58px; padding: 0 24px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; }
button:hover { background: #333; }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); min-height: 44px; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); line-height: 1.5; font-size: 13px; margin-top: 16px; }
.consent input { margin-top: 3px; }
.progress { display: flex; align-items: center; gap: 15px; margin-top: 26px; padding: 18px 20px; background: #faf4f1; border-radius: 14px; }
.progress span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #f3c7be; border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { margin-top: 22px; padding: 16px 18px; border-left: 4px solid var(--risk); background: #fff0ee; color: #7b2119; border-radius: 8px; }
.hidden { display: none !important; }
.report { margin-top: 28px; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.score-card { display: flex; align-items: center; gap: 22px; }
.score-ring { width: 118px; height: 118px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(var(--accent) var(--score-angle, 0deg), #ececec 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: white; }
.score-ring strong, .score-ring span { position: relative; z-index: 1; }
.score-ring strong { font-size: 37px; letter-spacing: -2px; line-height: 1; }
.score-ring span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.muted { margin: 8px 0 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 14px 0 0; }
.stat { background: #fff; padding: 18px; border-radius: 14px; border: 1px solid var(--line); }
.stat strong { display: block; font-size: 24px; }
.stat span { color: var(--muted); font-size: 12px; }
.section-block { margin-top: 28px; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.check-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.check h3 { margin: 0; font-size: 16px; }
.check p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.badge.pass { background: #e8f5ee; color: var(--ok); }
.badge.warning { background: #fff3d8; color: var(--warn); }
.badge.risk { background: #fde9e6; color: var(--risk); }
.badge.info { background: #edf1f5; color: var(--info); }
.mini-bar { height: 5px; border-radius: 999px; background: #eee; margin-top: 15px; overflow: hidden; }
.mini-bar > span { display: block; height: 100%; width: var(--pct); background: var(--accent); border-radius: inherit; }
.findings { display: grid; gap: 10px; }
.finding { border: 1px solid var(--line); border-left-width: 5px; padding: 16px 18px; border-radius: 12px; }
.finding.critical, .finding.high { border-left-color: var(--risk); }
.finding.medium { border-left-color: var(--warn); }
.finding.low { border-left-color: #8a7650; }
.finding.info { border-left-color: var(--info); }
.finding-head { display: flex; justify-content: space-between; gap: 16px; }
.finding h3 { margin: 0; font-size: 15px; }
.finding p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; font-size: 13px; }
.recommendation { color: var(--ink) !important; }
.notice { margin-top: 18px; background: #181818; color: white; border-radius: 16px; padding: 20px 22px; }
.notice p { margin: 7px 0 0; opacity: .7; line-height: 1.5; font-size: 13px; }
@media (max-width: 760px) {
  .page-shell { width: min(100% - 20px, 1180px); padding-top: 10px; }
  .hero { border-radius: 18px; }
  .brand { margin-bottom: 34px; }
  .url-row, .check-grid { grid-template-columns: 1fr; }
  .report-head { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .score-card { align-items: flex-start; }
}
@media print {
  body { background: white; }
  .page-shell { width: 100%; padding: 0; }
  .hero { display: none; }
  .report { margin: 0; }
  .report-head, .section-block { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  button { display: none !important; }
  .finding, .check { break-inside: avoid; }
}
