:root {
  --ink: #17202f; --muted: #5b6476; --line: #e2e7ef; --bg: #f7f9fc; --brand: #1f5eff; --brand-d: #1547c7;
  --ok: #1a7f37; --warn: #a77700; --fail: #c0392b; --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; line-height: 1.55; }
a { color: var(--brand); }
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 28px 0 10px; }
h2 { font-size: 1.35rem; margin: 36px 0 12px; }
h3 { margin: 0 0 8px; }
.lead { font-size: 1.15rem; color: #333c4e; }

.top { border-bottom: 1px solid var(--line); background: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.logo { display: inline-block; width: 28px; height: 28px; border-radius: 7px; background: var(--brand); color: #fff; text-align: center; line-height: 28px; margin-right: 6px; }
nav a, nav .link { margin-left: 18px; color: var(--ink); text-decoration: none; }
nav .btn { color: #fff; }
form.inline { display: inline; }

.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 11px 20px; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-d); }
.btn.small { padding: 7px 14px; font-size: .92rem; }
.btn.ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; }

.hero { text-align: center; padding: 40px 0 20px; }
.hero h1 { font-size: 2.4rem; }
.scanform { display: flex; gap: 10px; max-width: 560px; margin: 22px auto 8px; }
.scanform input { flex: 1; font-size: 1.15rem; padding: 12px 14px; border: 1.5px solid #c9d1de; border-radius: 8px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; margin: 30px 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.card.soft { background: var(--bg); }

.flash { padding: 12px 16px; border-radius: 8px; margin: 18px 0 0; background: #eef3ff; border: 1px solid #cfdcff; }
.flash.error { background: #fdeeee; border-color: #f2c4c0; }
.flash.success { background: #ebf7ee; border-color: #bfe3c8; }

.resulthead { display: flex; gap: 22px; align-items: center; margin-top: 24px; }
.resulthead h1 { margin: 0; }
.grade { width: 96px; height: 96px; border-radius: 16px; color: #fff; font-size: 3.2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.gA { background: #1a7f37; } .gB { background: #4d8f1f; } .gC { background: #b58105; } .gD { background: #c4580a; } .gE { background: #c0392b; } .gF { background: #9b1c1c; }
.gradechip { display: inline-block; width: 24px; height: 24px; border-radius: 6px; color: #fff; text-align: center; font-weight: 700; line-height: 24px; font-size: .9rem; }

.finding { border: 1px solid var(--line); border-left: 5px solid var(--warn); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.finding.fail { border-left-color: var(--fail); }
.finding p { margin: 6px 0 0; }
.ftitle { font-weight: 650; }
.fix { background: #eef7ef; border-radius: 6px; padding: 7px 10px; }
.tag { font-size: .72rem; color: #fff; border-radius: 4px; padding: 2px 7px; vertical-align: 2px; margin-left: 6px; font-weight: 600; }
.sev-critical { background: #9b1c1c; } .sev-high { background: #c0392b; } .sev-medium { background: #c4780a; } .sev-low { background: #7a869a; } .sev-info { background: #5b6476; }

.cta { display: flex; gap: 20px; align-items: center; justify-content: space-between; background: #0f1c3f; color: #fff; border-radius: var(--radius); padding: 22px 26px; margin: 30px 0; }
.cta .btn { background: #fff; color: #0f1c3f; white-space: nowrap; }
.okdetails { margin: 20px 0; } .okdetails summary { cursor: pointer; font-weight: 600; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; position: relative; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); }
.plan ul { padding-left: 18px; flex: 1; }
.price { font-size: 1.7rem; font-weight: 800; margin: 6px 0 2px; }
.price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.badge { position: absolute; top: -12px; left: 18px; background: var(--brand); color: #fff; font-size: .75rem; padding: 3px 9px; border-radius: 20px; font-weight: 600; }
.faq h3 { margin-top: 18px; font-size: 1.02rem; }

.narrow { max-width: 460px; margin: 0 auto; }
.form label { display: block; margin: 14px 0; font-weight: 550; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input:not([type]) { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1.5px solid #c9d1de; border-radius: 8px; font-size: 1rem; }
.form .check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.form .check input { margin-top: 5px; }
.inlineform { display: flex; gap: 10px; margin: 18px 0; max-width: 480px; }
.inlineform input { flex: 1; padding: 10px 12px; border: 1.5px solid #c9d1de; border-radius: 8px; font-size: 1rem; }

.table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.dnsrec code { background: var(--bg); padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.t-ok { color: var(--ok); font-weight: 600; } .t-warn { color: var(--warn); font-weight: 600; } .t-err { color: var(--fail); }
.danger { margin-top: 40px; } .danger .link { color: var(--fail); }

.prose { max-width: 760px; } .prose h2 { font-size: 1.12rem; margin-top: 26px; }

.foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 22px 0; font-size: .88rem; background: var(--bg); }

@media (max-width: 820px) {
  .grid3, .grid2, .split, .plans { grid-template-columns: 1fr; }
  .scanform, .cta, .inlineform { flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: 1.8rem; }
  nav a { margin-left: 10px; }
}
.plan .btn { width: 100%; text-align: center; } .plan form { margin: 0; }
.center-cta { text-align: center; margin-top: 28px; } .mt6 { margin-top: 6px; }

/* ---------- administrace ---------- */
.admin h1 { margin-bottom: 4px; }
.periods a { margin-right: 10px; text-decoration: none; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--line); color: var(--ink); font-size: .9rem; }
.periods a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 18px 0; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.kpi b { display: block; font-size: 1.5rem; line-height: 1.2; }
.kpi span { font-size: .82rem; color: var(--muted); }
.chart { width: 100%; height: 160px; display: block; }
.chart .bar { fill: #c9d7ff; } .chart .bar2 { fill: var(--brand); } .chart text { font-size: 10px; fill: var(--muted); }
.legend { font-size: .82rem; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 12px; vertical-align: -1px; }
.legend .l1 { background: #c9d7ff; } .legend .l2 { background: var(--brand); }
.funnel td.n { font-weight: 700; text-align: right; } .funnel td.r { color: var(--muted); text-align: right; white-space: nowrap; }
.funnel .meter { height: 8px; background: var(--brand); border-radius: 4px; display: block; }
.meterwrap { width: 100%; }
.steps { list-style: none; padding: 0; margin: 4px 0 0; font-size: .86rem; }
.steps li { padding: 2px 0; } .steps .act { color: var(--ok); font-weight: 600; }
.pill { display: inline-block; font-size: .75rem; padding: 1px 8px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); margin-left: 4px; }
.pill.cust { background: #eaf1ff; border-color: #c6d6ff; color: var(--brand-d); }
.table.compact td, .table.compact th { padding: 6px; font-size: .9rem; }
@media (max-width: 820px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.w12 { width: 12%; } .w15 { width: 15%; } .w22 { width: 22%; } .w40 { width: 40%; }
.inlinefield { display: flex; gap: 8px; margin-top: 5px; } .inlinefield input { margin-top: 0 !important; flex: 1; }
.row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.narrow.wide { max-width: 560px; }
.paytable th { width: 40%; color: var(--muted); font-weight: 500; }
.adminact { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; } .adminact input { padding: 4px; border: 1px solid var(--line); border-radius: 6px; }
