/* Module A2 — public site, scan progress, report. Builds on app.css tokens. */
.break { overflow-wrap: anywhere; word-break: break-word; }
.pre-line { white-space: pre-line; }
.tiny { font-size: .76rem; line-height: 1.45; }
.lead-sm { font-size: 1.08rem; max-width: 820px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-head { padding-bottom: 8px; }
.container.prose-wide { max-width: var(--container); }
.prose-wide > * { max-width: 900px; }
.prose-wide ul { padding-left: 1.3em; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }


/* ---------- Landing ---------- */
.hero-sm { padding: 56px 0 40px; }
.hero-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.hero-notes .icon { color: var(--green); width: 16px; height: 16px; }
.scan-form .btn-lg { flex-shrink: 0; }
.stats .kpi-value { color: var(--primary); }
.check-card h3 { font-size: 1.05rem; }
.how-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.how-steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.how-steps h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.how-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }
.plans-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.plans-row .price-card { padding: 18px; }
.plans-row .price { font-size: 1.45rem; }
.plans-row .price-card ul { margin: 10px 0 0; }
.plans-row .price-card li { font-size: .86rem; }
.faq-item summary strong { font-weight: 600; }
.cta-band { display: flex; gap: 24px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #f3f6ff, #f6f1ff); }
.cta-band-actions { display: flex; flex-direction: column; gap: 6px; align-items: center; flex-shrink: 0; }
@media (max-width: 1080px) { .plans-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .plans-row, .how-steps { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: stretch; }
  .scan-form .btn-lg { width: 100%; }
}

/* ---------- Responsive tables (cards on mobile) ---------- */
@media (max-width: 680px) {
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .rtable tr:last-child { border-bottom: 0; }
  .rtable td { border: 0; padding: 4px 14px; }
  .rtable td[data-th]::before { content: attr(data-th); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
}

/* ---------- Scan progress ---------- */
.scan-progress h1 { font-size: 1.7rem; }
.scan-progress .progress { height: 14px; }
.scan-current { max-width: 60%; text-align: right; font-family: var(--mono); font-size: .8rem; }
.scan-now { margin-top: 4px; }
.scan-now .spinner { width: 14px; height: 14px; border-width: 2px; margin-right: 6px; }
.scan-fact { color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; min-height: 3em; }
.scan-fact .icon { color: var(--primary); margin-top: 2px; }
@media (max-width: 560px) { .scan-current { max-width: 100%; text-align: left; } }

/* ---------- Report ---------- */
.report h2 { font-size: 1.35rem; }
.report-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(220px, 300px); gap: 24px; align-items: center; }
.report-domain { font-size: 1.9rem; margin: 2px 0 6px; }
.report-meta a { white-space: nowrap; }
.report-meta .icon { width: 14px; height: 14px; }
.report-counters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.report-score { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 150px; }
.report-fine { border-left: 1px solid var(--line); padding-left: 20px; }
.report-fine-value { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
@media (max-width: 980px) { .report-head { grid-template-columns: minmax(0, 1fr) auto; } .report-fine { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; } }
@media (max-width: 600px) { .report-head { grid-template-columns: 1fr; } .report-score { flex-direction: row; gap: 14px; text-align: left; justify-content: flex-start; } .report-domain { font-size: 1.45rem; } }
/* The report is also rendered inside the narrow cabinet column: adapt to the report's own width, not the viewport. */
.report { container-type: inline-size; container-name: report; }
@container report (max-width: 900px) { .report-head { grid-template-columns: minmax(0, 1fr) auto; } .report-fine { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; } }
@container report (max-width: 560px) { .report-head { grid-template-columns: minmax(0, 1fr); } .report-score { flex-direction: row; gap: 14px; text-align: left; justify-content: flex-start; } .report-domain { font-size: 1.45rem; } }
@container report (max-width: 820px) { .top-list { grid-template-columns: minmax(0, 1fr); } }
@container report (max-width: 600px) { details.item > summary { flex-wrap: wrap; } .finding-badges { width: 100%; } }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cat-tile { display: grid; grid-template-columns: 12px 1fr; gap: 2px 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text); }
.cat-tile:hover { text-decoration: none; box-shadow: var(--shadow); }
.cat-tile .cat-title { font-weight: 600; font-size: .93rem; }
.cat-tile .cat-sub { grid-column: 2; color: var(--text-2); }
.cat-red { border-left-color: var(--red); } .cat-yellow { border-left-color: #e8a90f; } .cat-green { border-left-color: var(--green); }

.top-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.top-list li { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.top-title { font-weight: 700; color: var(--text); }
@media (max-width: 860px) { .top-list { grid-template-columns: 1fr; } }

.finding > summary { align-items: center; }
.finding-badges { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; width: 210px; }
.finding-head { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.finding-fail { border-left: 4px solid var(--red); }
.finding-warn { border-left: 4px solid #e8a90f; }
.finding-manual { border-left: 4px solid var(--primary); }
@media (max-width: 640px) { details.item > summary { flex-wrap: wrap; } .finding-badges { width: 100%; } }
.finding-kv { grid-template-columns: 170px 1fr; }
.fine-list { list-style: none; padding: 0; margin: 4px 0; font-size: .9rem; }
.fine-list li { margin: 2px 0; }
.url-list { list-style: none; padding: 0; margin: 0; }
.url-list li { margin: 3px 0; }
pre.evidence { max-height: 260px; font-size: .8rem; }
.conf { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-2); }
.conf-confirmed { background: var(--green-50); color: var(--green); }
.conf-practice { background: var(--primary-50); color: var(--primary); }
.conf-inferred { background: var(--yellow-50); color: #9a6a05; }

.snippet { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--bg); }
.snip-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.snip-tabs button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: .8rem; cursor: pointer; color: var(--text-2); }
.snip-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.snip-steps { margin: 10px 0 8px; padding-left: 1.3em; }
.snip-panel pre { margin: 0; padding-top: 40px; max-height: 420px; }
.passed-list li { margin: 6px 0; }

.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cta-card { display: flex; flex-direction: column; }
.cta-card p { flex: 1; }
.cta-card form { margin: 0; }
.email-form .check { font-size: .85rem; }
.tz-list li { margin: 10px 0; }

/* ---------- Replacements ---------- */
.repl-head { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.4fr); gap: 12px; align-items: start; }
.repl-head > div > span { display: block; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; font-weight: 700; }
.repl-from strong { font-size: 1.1rem; }
.repl-arrow { color: var(--primary); padding-top: 18px; text-align: center; }
.repl-to > div { margin: 2px 0; }
.repl-card pre { padding-top: 40px; }
@media (max-width: 640px) { .repl-head { grid-template-columns: 1fr; } .repl-arrow { transform: rotate(90deg); padding-top: 0; width: 24px; } }

@media print {
  .report .item-body { display: block !important; }
  details.item > summary::after { display: none; }
  .snip-panel.hidden { display: block !important; }
}
.badge-wrap { white-space: normal; line-height: 1.4; padding: 3px 10px; border-radius: 10px; }
.toc a { white-space: normal; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats .kpi-sub { font-size: .75rem; } }
.repl-card li, .repl-card p, .snip-steps li { overflow-wrap: anywhere; }
