:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #14181f;
  --ink-2: #4a5361;
  --muted: #7a8494;
  --line: #e3e6eb;
  --brand: #2f5bea;
  --brand-ink: #ffffff;
  --side: #0f1726;
  --side-ink: #c5ccd8;
  --side-active: #1d2a42;
  --a: #1f9d55;
  --b: #6aa84f;
  --c: #d69e2e;
  --d: #dd6b20;
  --f: #d43f3a;
  --critical: #a4161a;
  --high: #d43f3a;
  --medium: #dd6b20;
  --low: #d69e2e;
  --info: #7a8494;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 15px; margin: 0 0 12px; }
h3 { font-size: 13px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; padding: 4px 10px 18px; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #3d6bff, #23c4a0); display: grid; place-items: center; font-size: 13px; }
.side a.nav { color: var(--side-ink); padding: 8px 10px; border-radius: 7px; display: flex; justify-content: space-between; }
.side a.nav:hover { background: var(--side-active); text-decoration: none; color: #fff; }
.side a.nav.active { background: var(--side-active); color: #fff; font-weight: 600; }
.side .nav-section { margin: 14px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6f7d95; }
.side .org { margin-top: auto; border-top: 1px solid #22304a; padding: 14px 10px 0; font-size: 12px; }
.side .org strong { color: #fff; display: block; font-size: 13px; }
.side .org button { margin-top: 8px; background: none; border: 0; color: var(--side-ink); padding: 0; cursor: pointer; font-size: 12px; }
.main { padding: 28px 32px 48px; max-width: 1240px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }

/* ---------- panels ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: 300px 1fr 1fr; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.stat { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.stat-row { display: flex; gap: 28px; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { border-color: #c7ccd4; text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: #244bd0; }
.btn.danger { color: var(--f); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
input[type=text], input[type=email], input[type=password], input[type=search], select {
  font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%;
}
input:focus, select:focus { outline: 2px solid rgba(47, 91, 234, .25); border-color: var(--brand); }
label { display: block; font-weight: 600; font-size: 12.5px; margin: 14px 0 6px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { max-width: 340px; }

/* ---------- flash ---------- */
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid; }
.flash.success { background: #ecf8f1; border-color: #b7e3c8; color: #17663a; }
.flash.error { background: #fdeeee; border-color: #f3c3c1; color: #8f1f1b; }
.flash.info { background: #eef3ff; border-color: #c8d6ff; color: #213f9a; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfc; }
.table-card { padding: 0; overflow: hidden; }
.table-card .table-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- badges ---------- */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.sev-critical { background: var(--critical); color: #fff; }
.sev-high { background: #fdeceb; color: var(--high); border-color: #f6c9c7; }
.sev-medium { background: #fdf1e7; color: var(--medium); border-color: #f6d4b8; }
.sev-low { background: #fcf6e6; color: #a77712; border-color: #f0dfaa; }
.sev-info { background: #f0f2f5; color: var(--info); border-color: var(--line); }
.st-verified, .st-completed { background: #ecf8f1; color: #17663a; }
.st-pending, .st-queued { background: #f0f2f5; color: var(--ink-2); }
.st-running { background: #eef3ff; color: #213f9a; }
.st-lapsed, .st-failed, .st-rejected { background: #fdeeee; color: #8f1f1b; }
.chip { display: inline-block; background: #f0f2f5; border-radius: 6px; padding: 1px 7px; margin: 1px 2px 1px 0; font-size: 12px; }

/* ---------- grades ---------- */
.grade { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 17px; }
.grade.lg { width: 56px; height: 56px; font-size: 28px; border-radius: 12px; }
.grade-a { --g: var(--a); } .grade-b { --g: var(--b); } .grade-c { --g: var(--c); }
.grade-d { --g: var(--d); } .grade-f { --g: var(--f); } .grade-none { --g: #b4bcc8; }
.grade { background: var(--g); }

.gauge { width: 100%; max-width: 240px; display: block; margin: 0 auto; }
.gauge-bg { fill: none; stroke: #edf0f3; stroke-width: 16; stroke-linecap: round; }
.gauge-fg { fill: none; stroke: var(--g); stroke-width: 16; stroke-linecap: round; }
.gauge-score { font-size: 38px; font-weight: 800; text-anchor: middle; fill: var(--ink); letter-spacing: -.02em; }
.gauge-axis { font-size: 10px; fill: var(--muted); }
.spark { width: 100%; height: 64px; }
.spark-line { fill: none; stroke: var(--brand); stroke-width: 2; }
.spark-dot { fill: var(--brand); }

.vectors { display: grid; gap: 8px; }
.vector { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; }
.vector .grade { width: 26px; height: 26px; font-size: 13px; border-radius: 6px; }
.bar { height: 6px; background: #edf0f3; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.bar > span { display: block; height: 100%; background: var(--g); }

.sev-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sev-strip a { text-align: center; padding: 10px 4px; border-radius: 8px; text-decoration: none; font-size: 12px; }
.sev-strip strong { display: block; font-size: 22px; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--info); }
.dot.high, .dot.critical { background: var(--high); } .dot.medium { background: var(--medium); } .dot.low { background: var(--low); }

.scan-banner { display: flex; align-items: center; gap: 12px; background: #eef3ff; border: 1px solid #c8d6ff; color: #213f9a; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.spinner { width: 14px; height: 14px; border: 2px solid #b8c8ff; border-top-color: var(--brand); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.txt-box { background: #0f1726; color: #d6deeb; border-radius: 8px; padding: 12px 14px; display: grid; grid-template-columns: 70px 1fr auto; gap: 6px 12px; align-items: center; margin-top: 10px; }
.txt-box .k { color: #8c9ab0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.txt-box code { color: #fff; word-break: break-all; }
.copy { background: #22304a; color: #d6deeb; border: 0; border-radius: 6px; padding: 4px 8px; font-size: 11.5px; cursor: pointer; }
.domain-card { margin-bottom: 14px; }
.domain-card .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.domain-card .name { font-size: 16px; font-weight: 700; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters select, .filters input { width: auto; }
details summary { cursor: pointer; }
details .detail-body { padding: 8px 0 2px; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }

/* ---------- public pages ---------- */
.public { min-height: 100vh; display: flex; flex-direction: column; }
.public-nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 36px; }
.public-nav .brand { color: var(--ink); padding: 0; }
.hero { max-width: 980px; margin: 40px auto; padding: 0 24px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 14px; }
.hero p.lead { font-size: 17px; color: var(--ink-2); }
.steps { max-width: 980px; margin: 24px auto 60px; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps .num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 10px; }
.auth { max-width: 420px; margin: 40px auto; width: 100%; padding: 0 16px; }
.auth .card { padding: 28px; }
.auth .btn.primary { width: 100%; justify-content: center; margin-top: 20px; padding: 10px; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side .org { margin-top: 0; border: 0; padding: 0 10px; }
  .grid.cols-3, .grid.cols-2, .hero, .steps { grid-template-columns: 1fr; }
  .main { padding: 20px 16px; }
}

/* ---------- admin ---------- */
.log-table td { font-size: 12px; padding: 6px 8px; }
.log-table td.uri { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; max-width: 420px; }
.log-table td.ua { color: var(--muted); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-2 { color: #17663a; } .code-3 { color: #213f9a; } .code-4 { color: #a77712; } .code-5 { color: var(--f); font-weight: 700; }
.toplist { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.toplist li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.toplist li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.cols-4 { grid-template-columns: 1fr 1fr; } }

/* ---------- NIS2, workflow, reports ---------- */
a.card.kpi { color: inherit; text-decoration: none; }
a.card.kpi:hover { border-color: #c7ccd4; }
.stat .unit { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.stat.bad { color: var(--f); } .stat.warn { color: var(--d); } .stat.good { color: var(--a); }
tr.row-overdue td:first-child { box-shadow: inset 3px 0 0 var(--f); }
.nis2-chip { background: #eef3ff; color: #213f9a; text-decoration: none; font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
.nis2-chip:hover { background: #dfe8ff; text-decoration: none; }
.wf { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; display: grid; gap: 8px; }
.wf details.accept summary { color: var(--brand); }
.wf details.accept form { margin-top: 6px; max-width: 520px; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
label.check input { margin-top: 3px; }

.measures { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.measure { border-left: 4px solid var(--line); }
.measure.st-action { border-left-color: var(--f); } .measure.st-attention { border-left-color: var(--d); }
.measure.st-good { border-left-color: var(--a); } .measure.st-manual { border-left-color: #9aa5b8; }
.measure-head { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; }
.measure-head h2 { font-size: 14.5px; line-height: 1.3; }
.measure-letter { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #0f1726; color: #fff; font-weight: 800; font-family: ui-monospace, Menlo, monospace; }
.measure-letter.sm { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
.measure-status { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #f0f2f5; white-space: nowrap; }
.st-action .measure-status { background: #fdeeee; color: #8f1f1b; } .st-attention .measure-status { background: #fdf1e7; color: #9c4a12; }
.st-good .measure-status { background: #ecf8f1; color: #17663a; }
.cov { font-weight: 600; } .cov-automated { color: var(--a); } .cov-partial { color: var(--c); } .cov-organisational { color: var(--muted); }
ul.evidence { margin: 0 0 8px; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.pill { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f0f2f5; white-space: nowrap; }
.pill-action { background: #fdeeee; color: #8f1f1b; } .pill-attention { background: #fdf1e7; color: #9c4a12; } .pill-good { background: #ecf8f1; color: #17663a; }

.report { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow); }
.report section { margin-top: 26px; }
.report h2 { font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.report-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; border-bottom: 2px solid var(--ink); padding-bottom: 16px; }
.report-head h1 { font-size: 22px; margin-top: 6px; }
.brand-inline { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ink-2); }
.report-grade { display: flex; gap: 12px; align-items: center; }
.report-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.report-kpis div { background: #f6f7f9; border-radius: 8px; padding: 10px; text-align: center; }
.report-kpis strong { display: block; font-size: 22px; }
.report-kpis span { font-size: 11.5px; color: var(--muted); }
.report-kpis .bad strong { color: var(--f); }
.report-table td, .report-table th { padding: 6px 8px; }
.signed { background: #ecf8f1; border: 1px solid #b7e3c8; color: #17663a; padding: 10px 12px; border-radius: 8px; margin-bottom: 10px; }
.signoff-form { max-width: 720px; }

@media (max-width: 960px) { .measures { grid-template-columns: 1fr; } .report-kpis { grid-template-columns: repeat(3, 1fr); } .report { padding: 20px; } }
@media print {
  body { background: #fff; }
  .side, .no-print, .flash { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; max-width: none; }
  .report { border: 0; box-shadow: none; padding: 0; }
  .report section { break-inside: avoid; }
  a { color: inherit; }
}
.nis2-strip { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; color: inherit; text-decoration: none; }
.nis2-strip:hover { text-decoration: none; border-color: #c7ccd4; }
.tiles { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.tile { border-radius: 8px; padding: 6px 4px; text-align: center; background: #f0f2f5; color: var(--ink-2); }
.tile b { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 15px; }
.tile small { display: block; font-size: 9.5px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-action { background: #fdeeee; color: #8f1f1b; } .tile-attention { background: #fdf1e7; color: #9c4a12; } .tile-good { background: #ecf8f1; color: #17663a; }
@media (max-width: 960px) { .nis2-strip { grid-template-columns: 1fr; } .tiles { grid-template-columns: repeat(5, 1fr); } }

/* ---------- landing page ---------- */
.lp-top { background: radial-gradient(1200px 600px at 85% -10%, rgba(61,107,255,.45), transparent 60%),
                      radial-gradient(900px 500px at -10% 110%, rgba(35,196,160,.25), transparent 60%), #0b1220;
          color: #e7ecf5; padding-bottom: 72px; }
.lp-nav { max-width: 1180px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 24px; }
.lp-brand { color: #fff; padding: 0; }
.lp-links { display: flex; gap: 22px; margin-left: auto; }
.lp-links a { color: #b8c2d6; font-weight: 500; }
.lp-links a:hover { color: #fff; text-decoration: none; }
.btn.lp-ghost { background: rgba(255,255,255,.06); color: #e7ecf5; border-color: rgba(255,255,255,.18); }
.btn.lp-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.lp-hero { max-width: 1180px; margin: 0 auto; padding: 56px 24px 0; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lp-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #9fe8d6; background: rgba(35,196,160,.12);
              border: 1px solid rgba(35,196,160,.35); padding: 5px 12px; border-radius: 999px; }
.lp-hero h1 { font-size: 50px; line-height: 1.04; letter-spacing: -.035em; margin: 20px 0 18px; color: #fff; }
.lp-grad { background: linear-gradient(90deg, #7ea2ff, #3ee0b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 18px; line-height: 1.55; color: #b8c2d6; max-width: 580px; }
.lp-lead strong { color: #fff; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.lp-btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 10px; }
.lp-trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 20px; flex-wrap: wrap; color: #8e9ab0; font-size: 13px; }
.lp-trust li::before { content: "✓"; color: #3ee0b8; font-weight: 800; margin-right: 6px; }

.lp-mock { background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
           overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.lp-mock-bar { background: #f2f4f7; padding: 10px 14px; display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.lp-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d7dce3; display: inline-block; }
.lp-mock-bar span { margin-left: 10px; font-weight: 600; }
.lp-mock-body { padding: 18px; display: grid; gap: 10px; }
.lp-mock-score { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.lp-mock-score .gauge { max-width: 210px; margin: 0; }
.lp-mock-grade { text-align: center; } .lp-mock-grade small { display: block; color: var(--a); font-weight: 700; margin-top: 6px; }
.lp-mock-tiles { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.lp-mock-tiles .tile { padding: 7px 0; }
.lp-mock-row { display: grid; grid-template-columns: 74px 1fr auto auto; gap: 10px; align-items: center; font-size: 12.5px;
               padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.lp-overdue { color: var(--f); font-size: 12px; }
.lp-mock-sign { font-size: 12.5px; color: #17663a; background: #ecf8f1; border-radius: 8px; padding: 8px 10px; }

.lp-why { max-width: 1180px; margin: -36px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.lp-why-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.lp-why-item strong { display: block; font-size: 22px; letter-spacing: -.02em; margin-bottom: 4px; }
.lp-why-item span { color: var(--ink-2); font-size: 13px; }

.lp-section { max-width: 1180px; margin: 0 auto; padding: 80px 24px 10px; }
.lp-alt { max-width: none; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 70px; padding-bottom: 70px; }
.lp-alt > * { max-width: 1132px; margin-left: auto; margin-right: auto; }
.lp-section-head { max-width: 760px; margin-bottom: 30px; }
.lp-alt .lp-section-head { margin-left: auto; margin-right: auto; }
.lp-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.lp-section h2 { font-size: 34px; letter-spacing: -.025em; line-height: 1.12; margin: 8px 0 12px; }
.lp-section-head p { font-size: 16px; color: var(--ink-2); }
.lp-legend { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.lp-legend span.lp-leg { display: inline-flex; align-items: center; gap: 6px; }
.cov-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cov-dot.automated { background: var(--a); } .cov-dot.partial { background: var(--c); } .cov-dot.organisational { background: #9aa5b8; }

.lp-coverage { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.lp-cov-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; border-top: 4px solid #9aa5b8; }
.lp-cov-card.cov-card-automated { border-top-color: var(--a); } .lp-cov-card.cov-card-partial { border-top-color: var(--c); }
.lp-cov-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lp-cov-card h3 { font-size: 13.5px; text-transform: none; letter-spacing: 0; color: var(--ink); line-height: 1.3; margin-bottom: 6px; }
.lp-cov-card p { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.lp-cov-badge { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #f0f2f5; color: var(--muted); }
.lp-cov-badge.automated { background: #ecf8f1; color: #17663a; } .lp-cov-badge.partial { background: #fcf6e6; color: #8a6510; }

.lp-beyond { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.lp-beyond > div { background: #0b1220; color: #c9d2e3; border-radius: 12px; padding: 18px; }
.lp-beyond h3 { color: #fff; text-transform: none; letter-spacing: 0; font-size: 14px; margin: 8px 0 6px; }
.lp-beyond p { font-size: 13px; margin: 0; }
.lp-tick { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #23c4a0; color: #04261d; font-weight: 900; }
.lp-tick.soon { background: #2f5bea; color: #fff; }

.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-step { background: var(--bg); border-radius: 12px; padding: 22px; }
.lp-step h3, .lp-feature h3, .lp-who h3 { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 16px; margin: 10px 0 6px; }
.lp-step p, .lp-feature p, .lp-who p { color: var(--ink-2); margin: 0; }
.lp-step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-feature { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.lp-feature h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #3d6bff, #23c4a0); margin-bottom: 12px; }
.lp-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lp-faq { max-width: 820px; display: grid; gap: 10px; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.lp-faq summary { font-weight: 700; font-size: 15px; }
.lp-faq p { color: var(--ink-2); margin: 10px 0 0; }
.lp-final { margin: 80px auto 0; max-width: 1132px; text-align: center; padding: 56px 24px; border-radius: 18px; color: #fff;
            background: radial-gradient(700px 300px at 80% 0%, rgba(62,224,184,.35), transparent 60%), linear-gradient(135deg, #1b3fd1, #0b1220); }
.lp-final h2 { font-size: 32px; letter-spacing: -.02em; margin: 0 0 8px; }
.lp-final p { color: #c9d2e3; margin: 0 0 22px; }
.lp-footer { max-width: 1132px; margin: 40px auto; padding: 0 24px 40px; color: var(--muted); font-size: 12.5px; display: grid; gap: 8px; }
.lp-footer div { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ink-2); }

@media (max-width: 1100px) { .lp-coverage { grid-template-columns: repeat(2, 1fr); } .lp-beyond { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; padding-top: 30px; } .lp-hero h1 { font-size: 36px; }
  .lp-mock { transform: none; } .lp-links { display: none; }
  .lp-why, .lp-steps, .lp-features, .lp-who, .lp-beyond { grid-template-columns: 1fr; }
  .lp-section h2 { font-size: 26px; }
}
@media (max-width: 600px) {
  .lp-coverage { grid-template-columns: 1fr; }
  .lp-nav { padding: 14px 16px; gap: 10px; }
  .lp-nav .btn { padding: 7px 10px; white-space: nowrap; font-size: 13px; }
  .lp-nav .lp-ghost { display: none; }
  .lp-hero, .lp-section, .lp-why { padding-left: 16px; padding-right: 16px; }
  .lp-mock-row { grid-template-columns: 70px 1fr; }
  .lp-mock-row > :nth-child(n+3) { display: none; }
}

/* ---------- phase 2: assessment, incidents, suppliers, applicability ---------- */
textarea { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; width: 100%; resize: vertical; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grid.cols-3-eq { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; }
.linkbtn:hover { text-decoration: underline; }

.assess-card { margin-bottom: 14px; }
.maturity { min-width: 110px; text-align: right; }
.maturity .bar { margin-top: 6px; }
.q-row { display: grid; grid-template-columns: 1fr 340px; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.q-row:first-of-type { margin-top: 12px; }
.q-text > div + div { margin-top: 4px; }
.ans-form { display: flex; flex-wrap: wrap; gap: 4px; }
.ans-btn { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 9px; font: inherit; font-size: 12.5px; cursor: pointer; }
.ans-btn:hover { border-color: #c7ccd4; }
.ans-btn.on { font-weight: 700; }
.ans-note { margin-top: 4px; font-size: 12.5px; padding: 5px 8px; }
.ans { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: #f0f2f5; }
.ans-yes { background: #ecf8f1; color: #17663a; border-color: #b7e3c8; } .ans-partial { background: #fcf6e6; color: #8a6510; border-color: #f0dfaa; }
.ans-no { background: #fdeeee; color: #8f1f1b; border-color: #f3c3c1; } .ans-na { background: #f0f2f5; color: var(--muted); }
.upload-form { margin-top: 6px; }

.deadlines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.deadline { border-top: 4px solid var(--line); }
.dl-card-done { border-top-color: var(--a); } .dl-card-overdue { border-top-color: var(--f); background: #fff7f7; }
.dl-card-due_soon { border-top-color: var(--d); } .dl-card-pending { border-top-color: var(--brand); }
.dl-big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.dl-card-overdue .dl-big { color: var(--f); } .dl-card-done .dl-big { color: var(--a); }
.sent-form { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; } .sent-form input { font-size: 12px; padding: 5px 7px; flex: 1 1 150px; min-width: 0; }
.dl { font-size: 12.5px; font-weight: 600; } .dl-overdue { color: var(--f); } .dl-due_soon { color: var(--d); }
.sig-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.sig-opts { display: flex; gap: 10px; white-space: nowrap; font-size: 12.5px; }
.sig-opts label { display: inline-flex; gap: 4px; align-items: center; margin: 0; font-weight: 500; }
.sig-yes { color: #8f1f1b; font-weight: 600; }
pre.draft { background: #0f1726; color: #d6deeb; padding: 14px; border-radius: 8px; white-space: pre-wrap; font-size: 12.5px; }
.copy-light { border: 1px solid var(--line); background: #fff; border-radius: 5px; font-size: 11px; padding: 1px 6px; cursor: pointer; }
.qn-row { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }

.check-wrap { max-width: 1080px; margin: 30px auto 60px; padding: 0 24px; }
.check-head { max-width: 720px; margin-bottom: 20px; }
.check-head h1 { font-size: 34px; letter-spacing: -.025em; margin: 6px 0 8px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.result { border-top: 5px solid var(--muted); }
.result-essential { border-top-color: var(--f); } .result-important { border-top-color: var(--d); } .result-out_of_scope { border-top-color: var(--a); }
.result-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.result h2 { font-size: 22px; margin: 4px 0 10px; }
.result h3 { margin-top: 14px; }
.result-cta { background: #eef3ff; border-radius: 10px; padding: 14px; margin-top: 12px; }
@media (max-width: 960px) {
  .q-row, .check-grid, .deadlines, .grid.cols-3-eq { grid-template-columns: 1fr; }
  .sig-row { grid-template-columns: 1fr; }
}

/* ---------- phase 3 ---------- */
.org-switch { background: #1d2a42; color: #fff; border-color: #2c3c5c; font-weight: 700; padding: 6px 8px; margin-bottom: 4px; }
.chain-card.chain-ok { border-left: 4px solid var(--a); } .chain-card.chain-bad { border-left: 4px solid var(--f); background: #fff7f7; }
.invite-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }

/* ---------- pricing ---------- */
.price-wrap { max-width: 1000px; margin: 30px auto 60px; padding: 0 24px; }
.price-head { max-width: 720px; margin-bottom: 24px; }
.price-head h1 { font-size: 38px; letter-spacing: -.03em; margin: 6px 0 10px; }
.price-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { padding: 26px; position: relative; display: flex; flex-direction: column; }
.plan-pro { border: 2px solid var(--brand); box-shadow: 0 12px 40px rgba(47, 91, 234, .15); }
.plan-badge { position: absolute; top: -12px; right: 20px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.plan-name { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plan-price { margin: 8px 0 2px; } .plan-price strong { font-size: 44px; letter-spacing: -.03em; } .plan-price span { color: var(--muted); margin-left: 4px; }
.plan-sub { color: var(--ink-2); }
.plan-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; flex: 1; }
.plan-list li::before { content: "✓"; color: var(--a); font-weight: 800; margin-right: 8px; }
.plan-cta { justify-content: center; }
.calc { margin-top: 18px; }
.calc-row { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: center; }
.calc-row input[type=range] { width: 100%; accent-color: var(--brand); }
.calc-out { font-size: 18px; margin: 12px 0; }
.calc-table td { padding: 6px 8px; }
@media (max-width: 760px) { .price-plans { grid-template-columns: 1fr; } .price-head h1 { font-size: 28px; } }

/* ---------- legal pages ---------- */
.legal-wrap { max-width: 900px; margin: 24px auto 60px; padding: 0 24px; }
.legal-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.legal-tabs a { padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.legal-tabs a.on { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.legal { padding: 32px 36px; line-height: 1.6; }
.legal h1 { font-size: 28px; } .legal h2 { font-size: 17px; margin-top: 26px; }
.legal li { margin-bottom: 6px; }
.legal-table { margin: 8px 0 12px; font-size: 13px; } .legal-table th, .legal-table td { vertical-align: top; text-align: left; }
.legal-table th { text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--ink); width: 180px; }
.site-footer { max-width: 1132px; margin: 0 auto; padding: 18px 24px 30px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.site-footer a { color: var(--ink-2); }
@media (max-width: 700px) { .legal { padding: 20px; } .legal-table th { width: auto; } }

/* ---------- language toggle ---------- */
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 12px; font-weight: 700; }
.lang-toggle a { padding: 5px 8px; color: var(--ink-2); text-decoration: none; }
.lang-toggle a.on { background: var(--ink); color: #fff; }
.lp-top .lang-toggle, .side .lang-toggle { border-color: rgba(255,255,255,.25); }
.lp-top .lang-toggle a, .side .lang-toggle a { color: #c5ccd8; }
.lp-top .lang-toggle a.on, .side .lang-toggle a.on { background: #fff; color: #0b1220; }
.public-nav .lang-toggle { margin-right: 4px; }

.cve-table { width: auto; min-width: 360px; margin: 6px 0; font-size: 12.5px; }
.cve-table th, .cve-table td { padding: 3px 10px 3px 0; }
