/* CompliancePilot SaaS — shared styles */
:root {
  --brand: #4f7cff;
  --brand-dark: #3a5fd9;
  --ink: #16213a;
  --muted: #5b6579;
  --line: #e3e8f2;
  --bg: #f7f9fd;
  --card: #ffffff;
  --green: #1f9d55; --yellow: #d9a400; --orange: #e07a1f; --red: #cc3344;
}
* { box-sizing: border-box; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 22px; }

/* nav */
nav { background: #fff; border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-weight: 800; font-size: 19px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 9px; }
.logo svg { flex-shrink: 0; }
.logo .lt { color: var(--ink); }
.logo .lt > span { color: var(--brand); }
.nav-cta { background: var(--brand); color: #fff; padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.nav-cta:hover { background: var(--brand-dark); }

/* hero */
.hero { padding: 58px 0 56px; text-align: center; }
.stakes { display: inline-block; background: #fdf0f1; border: 1px solid #f0c4c9; color: #8f2330;
  font-size: 13.5px; font-weight: 600; padding: 7px 16px; border-radius: 999px; margin-bottom: 18px; }
.preview-card { max-width: 620px; margin: 26px auto 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px; text-align: left; box-shadow: 0 8px 24px rgba(22,33,58,.05); }
.preview-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); margin-bottom: 10px; }
.preview-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.preview-score .num { font-size: 34px; font-weight: 800; line-height: 1; }
.preview-score .num span { font-size: 14px; color: var(--muted); font-weight: 600; }
.preview-band { display: inline-block; background: var(--red); color: #fff; font-size: 11.5px;
  font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-top: 6px; }
.preview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; font-size: 13.5px; color: var(--muted); }
.preview-stats b { color: var(--ink); }
.preview-finding { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px;
  font-size: 13px; color: var(--muted); font-style: italic; }
.preview-finding .sev { color: var(--red); font-weight: 700; font-style: normal; font-size: 11.5px; }
.preview-finding .fix { color: var(--green); font-weight: 600; font-style: normal; }
.framework-strip { margin-top: 22px; font-size: 12.5px; color: var(--muted); letter-spacing: .2px; }
.hero h1 { font-size: 42px; line-height: 1.15; letter-spacing: -0.5px; max-width: 760px; margin: 0 auto 16px; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p.sub { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 34px; }

/* scan form */
.scan-form { max-width: 620px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px; box-shadow: 0 10px 30px rgba(22,33,58,.06); text-align: left; }
.scan-form label { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin: 10px 0 4px; }
.scan-form input { width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid var(--line);
  border-radius: 9px; outline: none; }
.scan-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,124,255,.15); }
.scan-form button { width: 100%; margin-top: 16px; background: var(--brand); color: #fff; border: 0;
  padding: 14px; font-size: 16px; font-weight: 700; border-radius: 9px; cursor: pointer; }
.scan-form button:hover { background: var(--brand-dark); }
.scan-form button:disabled { opacity: .6; cursor: default; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.form-error { color: var(--red); font-size: 14px; margin-top: 10px; display: none; }

/* sections */
section.band { padding: 56px 0; }
section.band.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.sec { font-size: 28px; text-align: center; margin-bottom: 8px; }
p.sec-sub { text-align: center; color: var(--muted); margin-bottom: 36px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--muted); }
.step-num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--brand);
  color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 12px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.check { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-size: 14px; font-weight: 600; }
.check::before { content: "✓ "; color: var(--green); font-weight: 800; }

/* footer */
footer { padding: 36px 0 48px; text-align: center; color: var(--muted); font-size: 13px; }

/* report page */
.report-head { padding: 40px 0 8px; text-align: center; }
.report-head h1 { font-size: 26px; }
.report-head .site { color: var(--muted); font-size: 15px; margin-top: 4px; }
.spinner-box { text-align: center; padding: 70px 0; }
.spinner { width: 46px; height: 46px; border: 4px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; margin: 0 auto 22px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin-msg { color: var(--muted); font-size: 16px; }

.score-row { display: grid; grid-template-columns: 260px 1fr; gap: 20px; margin: 26px 0; }
@media (max-width: 720px) { .score-row { grid-template-columns: 1fr; } }
.gauge-card { text-align: center; }
.band-chip { display: inline-block; padding: 4px 14px; border-radius: 999px; color: #fff;
  font-weight: 700; font-size: 14px; margin-top: 8px; }
.reg-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; font-size: 14px; }
.reg-name { width: 150px; color: var(--muted); flex-shrink: 0; }
.reg-track { flex: 1; height: 9px; background: var(--line); border-radius: 6px; overflow: hidden; }
.reg-fill { height: 100%; border-radius: 6px; }
.reg-score { width: 34px; text-align: right; font-weight: 700; }

.sev-counts { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.sev { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px;
  text-align: center; min-width: 92px; }
.sev b { display: block; font-size: 22px; }
.sev span { font-size: 12.5px; color: var(--muted); }

.finding { border-left: 4px solid var(--line); margin-bottom: 14px; }
.finding.Critical { border-left-color: var(--red); }
.finding.High { border-left-color: var(--orange); }
.finding.Moderate { border-left-color: var(--yellow); }
.finding.Advisory { border-left-color: var(--brand); }
.finding .meta { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.finding .meta .reg { color: var(--muted); font-weight: 600; }
.finding blockquote { font-style: italic; color: var(--ink); margin: 8px 0; font-size: 15px; }
.finding .src { font-size: 12.5px; color: var(--muted); margin: -2px 0 8px; }
.finding .src a { color: var(--brand); word-break: break-all; }
.finding .why { font-size: 14px; color: var(--muted); }
.action { margin-top: 12px; padding: 12px 14px; border-radius: 9px; font-size: 14px; }
.action.rewrite { background: #eefaf1; border: 1px solid #bfe6cb; }
.action.escalate { background: #fdf0f1; border: 1px solid #f0c4c9; color: #8f2330; }
.lock-note { background: linear-gradient(rgba(247,249,253,0), var(--bg)); text-align: center;
  padding: 26px 0 6px; margin-top: -40px; position: relative; }
.blurred { filter: blur(5px); user-select: none; pointer-events: none; }
.cta-box { background: var(--ink); color: #fff; border-radius: 14px; padding: 30px; text-align: center; margin: 26px 0 50px; }
.cta-box h3 { font-size: 22px; margin-bottom: 8px; }
.cta-box p { color: #b9c2d8; margin-bottom: 18px; font-size: 15px; }
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 12px 24px;
  border-radius: 9px; font-weight: 700; }
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }

/* admin */
table.leads { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; font-size: 14px; margin: 24px 0 60px; }
table.leads th, table.leads td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.leads th { background: #eef1f7; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; }
