:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #121826;
  --muted: #5a6476;
  --border: #dde2ea;
  --accent: #1f5eff;
  --accent-ink: #ffffff;
  --high: #c62828;
  --high-bg: #fdecec;
  --med: #b45309;
  --med-bg: #fff4e0;
  --low: #2563a8;
  --low-bg: #e8f1fc;
  --pass: #1b7a43;
  --pass-bg: #e6f5ec;
  --radius: 12px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1218;
    --surface: #161b23;
    --surface-2: #1e2530;
    --text: #e8ecf2;
    --muted: #9aa5b5;
    --border: #2b3340;
    --accent: #5b8cff;
    --accent-ink: #0b1020;
    --high: #ff7a7a;
    --high-bg: #3a1a1c;
    --med: #f5b14c;
    --med-bg: #3a2a12;
    --low: #7fb2ff;
    --low-bg: #16263d;
    --pass: #5fd394;
    --pass-bg: #12301f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { padding: 8px 14px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: var(--muted); font-size: .92rem; padding: 0; list-style: none; }
.trust li::before { content: "✓ "; color: var(--pass); font-weight: 700; }

/* Chat mock */
.chat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.chat-title { font-size: .85rem; color: var(--muted); margin-bottom: 12px; display: flex; justify-content: space-between; gap: 8px; }
.bubble { padding: 10px 14px; border-radius: 14px; margin: 8px 0; max-width: 92%; font-size: .95rem; }
.bubble.user { background: var(--surface-2); margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--high-bg); border: 1px solid color-mix(in srgb, var(--high) 35%, transparent); border-bottom-left-radius: 4px; }
.flag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--high); margin-top: 6px; }

/* Cards */
.grid { display: grid; gap: 16px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.c3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
section.alt .card { background: var(--bg); }
.card .icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; }
.card .eg { margin-top: 10px; font-size: .88rem; color: var(--text); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }

/* Risk list */
.risk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.risk-list li { display: flex; gap: 12px; align-items: flex-start; }
.risk-list .dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--high); }

/* Severity */
.sev { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.sev.high { color: var(--high); background: var(--high-bg); }
.sev.med { color: var(--med); background: var(--med-bg); }
.sev.low { color: var(--low); background: var(--low-bg); }
.sev.pass { color: var(--pass); background: var(--pass-bg); }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { white-space: nowrap; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }

/* Pricing */
.price-card { max-width: 520px; margin: 0 auto; text-align: left; border: 2px solid var(--accent); }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; }
.price s { font-size: 1.3rem; color: var(--muted); font-weight: 500; margin-left: 8px; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checks li::before { content: "✓"; color: var(--pass); font-weight: 700; margin-right: 10px; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
section.alt .steps li { background: var(--bg); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 10px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Form */
form { display: grid; gap: 16px; }
label { font-weight: 600; display: block; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type=text], input[type=url], input[type=email], textarea, select {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 84px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); }
.consent label { font-weight: 500; margin: 0; }
.field-error { color: var(--high); font-size: .88rem; margin-top: 6px; display: none; }
.invalid .field-error { display: block; }
.invalid input, .invalid textarea { border-color: var(--high); }
.notice { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); }
.notice.ok { background: var(--pass-bg); border-color: color-mix(in srgb, var(--pass) 40%, transparent); }
.notice.err { background: var(--high-bg); border-color: color-mix(in srgb, var(--high) 40%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Footer */
footer { padding: 32px 0 48px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }

/* Legal pages */
.doc { max-width: 760px; }
.doc h2 { font-size: 1.3rem; margin-top: 1.6em; }
.doc ul { padding-left: 1.2em; }
