:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1d1b26;
  --muted: #5f5b6e;
  --line: #e6e2ec;
  --brand: #5b3fd1;
  --brand-ink: #ffffff;
  --accent: #0e9f8a;
  --soft: #f1edfd;
  --radius: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121019;
    --surface: #1b1824;
    --ink: #ece9f5;
    --muted: #a6a1b8;
    --line: #2d2939;
    --brand: #9d86ff;
    --brand-ink: #121019;
    --accent: #3dd6bf;
    --soft: #241f36;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 16px; }
a { color: var(--brand); text-underline-offset: 2px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; overflow-x: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo { color: var(--brand); font-size: 1.3rem; }
.top nav { display: flex; gap: 16px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--ink); }
main { padding: 28px 16px 56px; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; margin: 0.3em 0 0.4em; letter-spacing: -0.01em; }
h1 em { font-style: normal; color: var(--brand); }
h2 { font-size: 1.3rem; margin: 1.8em 0 0.6em; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); font-size: 0.9rem; }
.crumbs { color: var(--muted); font-size: 0.9rem; margin: 0; }
.hero { padding: 24px 0 8px; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 24px 0; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 1.9rem; }
.stats span { color: var(--muted); font-size: 0.9rem; }
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; margin: 4px 8px 4px 0; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 36px; }
.cols > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 10px; }
.cities { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 20px; }
.cities span { color: var(--muted); font-size: 0.85rem; display: block; }
.agentbox { background: var(--soft); border-radius: var(--radius); padding: 10px 14px; font-size: 0.92rem; overflow-wrap: anywhere; }
.filter { width: 100%; max-width: 480px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1rem; margin: 8px 0 12px; }
.jump { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.9rem; }
.grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.card .name { font-weight: 600; text-decoration: none; color: var(--ink); }
.card .name:hover { color: var(--brand); }
.card .meta, .card .addr, .card .phone { font-size: 0.88rem; color: var(--muted); }
.badges { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 0.75rem; background: var(--soft); color: var(--brand); padding: 2px 8px; border-radius: 999px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 18px 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.facts b { font-size: 0.8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.plain { padding-left: 1.2em; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 0.88rem; }
.prices { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: 0.92rem; }
.prices th, .prices td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices th { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.prices td:nth-child(2) { white-space: nowrap; font-weight: 600; }
.claim { border-left: 3px solid var(--accent); padding-left: 12px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; padding: 18px 0 28px; }
@media (max-width: 560px) {
  .prices td:nth-child(3), .prices th:nth-child(3) { display: none; }
}

/* Free AI-readiness check */
.check { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 20px; margin: 24px 0; }
.checkform { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.checkform label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.92rem; }
.checkform .full { grid-column: 1 / -1; }
.checkform .opt { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.checkform input[type="text"], .checkform input[type="email"], .checkform select {
  font: inherit; font-weight: 400; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%;
}
.checkform input[name="url"] { font-size: 1.05rem; }
.checkform .consent { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.checkform button[disabled] { opacity: 0.6; cursor: progress; }
.checkform .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.check-status { margin-top: 12px; color: var(--muted); min-height: 1.5em; }
.check-result h2 { margin-top: 1.2em; }
.score { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.big-score { display: flex; flex-direction: column; }
.big-score b { font-size: 3rem; line-height: 1; }
.grade { font-size: 1.3rem; font-weight: 700; padding: 4px 14px; border-radius: 10px; background: var(--soft); color: var(--brand); }
.bar-row { font-size: 0.88rem; margin: 4px 0; }
.bar { height: 8px; width: 220px; max-width: 60vw; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); }
.f { border: 1px solid var(--line); border-left-width: 5px; border-radius: 10px; padding: 10px 14px; margin: 10px 0; background: var(--bg); }
.f h3, .f h4 { margin: 0 0 4px; font-size: 1rem; }
.f p { margin: 4px 0; }
.f.critical { border-left-color: #d92d20; } .f.high { border-left-color: #e8590c; } .f.medium { border-left-color: #d29a0a; } .f.low { border-left-color: var(--muted); }
.sev { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-right: 8px; color: var(--muted); }
.fix b { color: var(--accent); }
ul.ok { columns: 2; padding-left: 1.2em; }
.seen { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.seen dt { font-weight: 600; color: var(--muted); }
.seen dd { margin: 0; overflow-wrap: anywhere; }
.seen ul { margin: 0; }
@media (max-width: 640px) {
  .checkform { grid-template-columns: 1fr; }
  ul.ok { columns: 1; }
  .seen { grid-template-columns: 1fr; }
  .seen dd { margin-bottom: 6px; }
}
