/* ServIndy free SEO grader. Light theme only in v1: every colour is set
   explicitly so an OS dark mode can't invert it. 375 px first. */
:root {
  color-scheme: light;
  --brand: #7c3aed; --brand2: #9333ea; --brand-ink: #5b21b6;
  --bg: #f4f3fb; --surface: #fff; --surface2: #faf9ff; --tint: #efeafb;
  --ink: #191235; --text: #39354f; --muted: #5f5b79;
  --border: #e7e3f4; --border2: #d8d2ec;
  --good: #047857; --good-bg: #e6f5ee;
  --fair: #b45309; --fair-bg: #fdf2e3;
  --poor: #b91c1c; --poor-bg: #fdecec;
  --comp: #c2410c;
  --shadow-sm: 0 4px 14px rgba(40, 20, 90, .06);
  --shadow: 0 10px 30px rgba(40, 20, 90, .08);
  --shadow-lg: 0 26px 60px rgba(40, 20, 90, .15);
  --r: 16px;
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  background-image: radial-gradient(800px 420px at 6% -8%, rgba(124, 58, 237, .10), transparent 60%), radial-gradient(700px 420px at 98% -4%, rgba(147, 51, 234, .06), transparent 58%);
  background-repeat: no-repeat; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--brand-ink); }
a:hover { color: var(--brand); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.01em; }
code { font-family: var(--mono); font-size: .88em; background: var(--tint); padding: 1px 5px; border-radius: 6px; color: var(--ink); word-break: break-all; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.print-only { display: none; }
.skiplink { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 12px 0; font-weight: 800; }
.skiplink:focus { left: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--border2); background: #fff; color: var(--ink); font: inherit; font-weight: 750;
  cursor: pointer; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .14s, border-color .14s, color .14s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.btn.primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 12px 26px rgba(124, 58, 237, .30); }
.btn.primary:hover { color: #fff; filter: brightness(1.06); }
.btn.lg { min-height: 54px; padding: 14px 26px; font-size: 1.04rem; font-weight: 800; }
.btn.sm { min-height: 44px; padding: 8px 14px; font-size: .92rem; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn .ico { flex: 0 0 auto; }
.linkbtn { background: none; border: 0; padding: 10px 2px; min-height: 44px; font: inherit; font-weight: 700; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 0; }
.ico { display: inline-block; vertical-align: -3px; flex: 0 0 auto; }

/* top bar */
.top { max-width: 1240px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand img { width: 34px; height: 34px; display: block; }
.brand-word { font-weight: 900; font-size: 1.16rem; letter-spacing: -.01em; }
.brand-word b { color: var(--brand); font-weight: 900; }
.brand-tool { display: none; font-weight: 700; color: var(--muted); font-size: .9rem; padding-left: 10px; border-left: 1px solid var(--border2); }
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: .92rem; text-decoration: none; }
.top-nav a:hover { background: var(--surface); color: var(--brand-ink); }
@media (min-width: 560px) { .brand-tool { display: inline; } }
@media (max-width: 420px) { .top { padding: 10px 12px; } .top-nav a { padding: 8px 7px; font-size: .86rem; white-space: nowrap; } .brand img { width: 30px; height: 30px; } .brand-word { font-size: 1.06rem; } }

/* landing */
.landing { max-width: 1080px; margin: 0 auto; padding: 8px 16px 40px; }
.hero { text-align: center; padding: 18px 0 8px; }
.eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.hero h1 { margin: 0 auto; max-width: 20ch; font-size: clamp(1.85rem, 6.4vw, 3.1rem); font-weight: 860; letter-spacing: -.025em; }
.hero-sub { margin: 14px auto 0; max-width: 46ch; font-size: clamp(1.02rem, 2.6vw, 1.2rem); color: var(--text); }
.lang-prompt { margin: 10px 0 0; font-size: .95rem; }
.formcard { margin: 22px auto 0; max-width: 760px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 18px 16px 14px; text-align: left; }
.row1 { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .fieldlabel { font-weight: 750; color: var(--ink); font-size: .95rem; }
.field input, .field select {
  width: 100%; min-height: 50px; border: 1.5px solid var(--border2); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 1.04rem;
  color: var(--ink); background: #fff;
}
.field select { appearance: auto; }
.field input::placeholder { color: #8a86a3; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124, 58, 237, .16); }
.field input[aria-invalid="true"] { border-color: var(--poor); }
.ferr { margin: 0; color: var(--poor); font-weight: 650; font-size: .92rem; }
.checkline { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; min-height: 44px; font-weight: 650; color: var(--ink); cursor: pointer; }
.checkline input { width: 22px; height: 22px; accent-color: var(--brand); margin: 0; }
details.more { margin-top: 6px; border-top: 1px solid var(--border); padding-top: 6px; }
details.more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 750; color: var(--brand-ink); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-right: 12px; transition: transform .15s; }
details.more[open] > summary::before { transform: rotate(45deg); }
.grid3 { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 4px 0 6px; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.formerr { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--poor-bg); color: var(--poor); font-weight: 650; }
.formerr p { margin: 0 0 8px; }
.trust { margin: 12px 2px 0; font-size: .9rem; color: var(--muted); }
.notice { max-width: 760px; margin: 0 auto 14px; padding: 14px 16px; border-radius: 14px; background: var(--fair-bg); border: 1px solid #f3d9b5; color: #7a3a06; text-align: left; }
.notice p { margin: 0 0 6px; }
.notice-title { font-weight: 800; color: #6a3205; }
main > noscript .notice { margin-top: 18px; }
.modeoff { text-align: center; padding: 10px 4px; }
.modeoff p { margin: 0 0 10px; }
.modeoff .lead { font-weight: 800; color: var(--ink); font-size: 1.1rem; }
form.is-nosite .row1 { flex-direction: column; }

.tiles { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 38px 0 0; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm); }
.tile h2 { margin: 6px 0 6px; font-size: 1.12rem; }
.tile p { margin: 0; color: var(--text); }
.tile-pts { font-size: .82rem; font-weight: 800; color: var(--brand-ink); background: var(--tint); border-radius: 999px; padding: 3px 10px; display: inline-block; }
.section { margin: 38px 0 0; }
.section > h2 { font-size: clamp(1.35rem, 3.6vw, 1.75rem); margin: 0 0 12px; }
.wecheck { display: grid; grid-template-columns: 1fr; gap: 6px 22px; padding: 0; margin: 0; list-style: none; }
.wecheck li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--border2); }
.wecheck li::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: var(--brand); }
.example { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); position: relative; }
.example-label { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #7a3a06; background: var(--fair-bg); border: 1px solid #f3d9b5; border-radius: 999px; padding: 4px 10px; margin-bottom: 12px; }
.ex-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ex-side { background: linear-gradient(160deg, #f6f1ff, #fff6ea); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ex-ring { width: 120px; height: 120px; border-radius: 50%; border: 12px solid #e7e3f4; border-top-color: #b45309; border-right-color: #7c3aed; }
.ex-line { height: 10px; border-radius: 6px; background: #ece8f7; width: 100%; }
.ex-line.w60 { width: 60%; } .ex-line.w80 { width: 80%; } .ex-line.w40 { width: 40%; }
.ex-main { display: flex; flex-direction: column; gap: 10px; }
.ex-row { display: flex; gap: 10px; align-items: center; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.ex-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--poor); flex: 0 0 auto; }
.ex-dot.f { background: var(--fair); } .ex-dot.g { background: var(--good); }
.example-note { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.faq dt { font-weight: 800; color: var(--ink); margin-top: 14px; }
.faq dd { margin: 4px 0 0; }

@media (min-width: 768px) {
  .formcard { padding: 22px 22px 16px; }
  .row1 { flex-direction: row; align-items: flex-end; }
  .row1 .field { flex: 1 1 auto; }
  .row1 .btn { flex: 0 0 auto; }
  .grid3 { grid-template-columns: 1fr 1fr 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .wecheck { grid-template-columns: 1fr 1fr; }
  .ex-grid { grid-template-columns: 240px 1fr; }
}

/* footer */
.foot { max-width: 1240px; margin: 20px auto 0; padding: 22px 16px 34px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--brand-ink); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------- scanning */
body[data-view="scanning"] .foot { display: none; }
.scan { max-width: 1440px; margin: 0 auto; padding: 0 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.scan-panel { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; }
.scan-eyebrow { margin: 0; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.scan-title { margin: 2px 0 0; font-size: .98rem; font-weight: 650; color: var(--muted); word-break: break-word; }
.strip { margin-top: 10px; }
.strip-step { margin: 0; font-weight: 750; color: var(--ink); }
.strip-time { display: none; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: none; }
.step { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 8px 0 10px; }
.step + .step::before { content: ""; position: absolute; left: 10px; top: -8px; height: 14px; width: 2px; background: var(--border2); }
.step[data-state="done"] + .step::before, .step[data-state="skipped"] + .step::before, .step[data-state="failed"] + .step::before { background: #2a2440; }
.step-ico { position: relative; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfc9e6; background: #fff; margin-top: 1px; }
.step[data-state="running"] .step-ico { border-color: #e2ddf2; border-top-color: var(--ink); border-right-color: var(--ink); animation: spin 1s linear infinite; }
.step[data-state="done"] .step-ico { background: #2a2440; border-color: #2a2440; }
.step[data-state="done"] .step-ico::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.step[data-state="skipped"] .step-ico { background: #8a86a3; border-color: #8a86a3; }
.step[data-state="skipped"] .step-ico::after { content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 2px; background: #fff; }
.step[data-state="failed"] .step-ico { background: var(--poor); border-color: var(--poor); }
.step[data-state="failed"] .step-ico::before, .step[data-state="failed"] .step-ico::after { content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 2px; background: #fff; transform: rotate(45deg); }
.step[data-state="failed"] .step-ico::after { transform: rotate(-45deg); }
.step-text { display: flex; flex-direction: column; min-width: 0; }
.step-label { color: #8a86a3; font-weight: 600; word-break: break-word; }
.step[data-state="running"] .step-label, .step[data-state="done"] .step-label { color: var(--ink); }
.step[data-state="skipped"] .step-label, .step[data-state="failed"] .step-label { color: var(--text); }
.step-reason { font-size: .85rem; color: var(--muted); }
.scan-bottom { margin-top: 12px; }
.timer { background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.timer-bar { height: 4px; background: var(--border); }
.timer-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand2)); transition: width .5s linear; }
.timer-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-weight: 750; color: var(--ink); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #e2ddf2; border-top-color: var(--brand); animation: spin .9s linear infinite; flex: 0 0 auto; }
.spinner.big { width: 34px; height: 34px; border-width: 4px; }
.skip { display: inline-flex; margin-top: 4px; }
.skip-wait { margin: 0; font-size: .88rem; color: var(--muted); }
.trouble { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--poor-bg); color: var(--poor); font-weight: 650; }
.trouble p { margin: 0 0 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

.stage { position: relative; height: 440px; border-radius: 22px; overflow: hidden; background: #f8f6fd; border: 1px solid var(--border); box-shadow: var(--shadow); }
.stage-map { position: absolute; left: 0; right: 0; top: 0; height: 260px; transition: opacity .5s, filter .5s; opacity: 0; }
.stage[data-v="locate"] .stage-map, .stage[data-v="listing"] .stage-map { opacity: 1; }
.stage[data-v="listing"] .stage-map { filter: saturate(.8); }
.stage-map .gm-box { position: absolute; inset: 0; }
.stage-layers { position: absolute; inset: 0; }
.layer { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.layer.in { opacity: 1; transform: none; }
.layer.out { opacity: 0; transform: translateY(-8px); }
.scanline { position: absolute; left: 0; right: 0; height: 2px; top: 10%; background: linear-gradient(90deg, transparent, var(--brand) 18%, var(--brand2) 82%, transparent); box-shadow: 0 0 22px 8px rgba(124, 58, 237, .18); animation: sweep 5.5s ease-in-out infinite; pointer-events: none; z-index: 5; }
@keyframes sweep { 0% { top: 8%; } 50% { top: 90%; } 100% { top: 8%; } }

.vis { position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; align-items: center; }
.vis-center { justify-content: center; }
.vis-start { justify-content: center; gap: 18px; }
.vis-map { justify-content: space-between; pointer-events: none; }
.vis-map .vchip-bottom { margin-top: auto; }
.vpill { display: flex; align-items: center; gap: 10px; max-width: 100%; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 11px 16px; color: var(--ink); font-weight: 600; border: 1px solid var(--border); }
.vpill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vchip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm); margin: 0; max-width: 100%; }
.vis-caption { margin: 0; font-weight: 700; color: var(--ink); text-align: center; }
.radar { position: relative; width: 120px; height: 120px; }
.radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(124, 58, 237, .35); animation: ping 2.4s ease-out infinite; }
.radar span:nth-child(2) { animation-delay: .8s; } .radar span:nth-child(3) { animation-delay: 1.6s; }
.radar i { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px #fff, 0 4px 12px rgba(124, 58, 237, .4); }
@keyframes ping { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.vcard { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 16px 18px; width: 100%; max-width: 520px; }
.veyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
.vbig { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--ink); line-height: 1.25; word-break: break-word; }
.vsub { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.vline { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 0; color: var(--text); word-break: break-word; }
.vline .ico { color: var(--muted); margin-top: 3px; }
.vcount { margin: 12px 0 6px; font-weight: 800; color: var(--ink); }
.vmsg { text-align: center; }
.vmsg-ico { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; align-items: center; justify-content: center; background: var(--tint); color: var(--brand-ink); margin-bottom: 8px; }
.vmsg-title { margin: 0; font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.vmsg-sub { margin: 6px 0 0; color: var(--muted); }
.vlisting { max-width: 460px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.fchip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 10px; font-size: .85rem; font-weight: 700; }
.fchip.ok { background: var(--good-bg); color: var(--good); }
.fchip.no { background: var(--poor-bg); color: var(--poor); }
.vis-reviews { justify-content: flex-start; overflow: hidden; gap: 10px; }
.vreviews { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 10px; }
.vreview { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; animation: rise .5s both; animation-delay: calc(var(--i, 0) * 160ms); }
.vreview:nth-child(even) { transform: rotate(.8deg); }
.vreview:nth-child(odd) { transform: rotate(-.6deg); }
.vreview-head { display: flex; align-items: center; gap: 8px; }
.vreview-src { font-weight: 750; color: var(--ink); font-size: .92rem; flex: 1 1 auto; }
.vavatar { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--tint); color: var(--brand-ink); flex: 0 0 auto; }
.vreview-text { margin: 8px 0 0; color: var(--text); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.pchip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-weight: 700; color: var(--ink); font-size: .9rem; }
.pchip .ico { color: var(--good); }
.pchips-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pchips-cap { margin: 0; font-size: .8rem; font-weight: 700; color: var(--muted); text-align: center; }
.vmsg .pchips-wrap { margin-top: 12px; }
.vis-photos { gap: 10px; }
.collage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 760px; }
.ctile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; background: #e9e5f5; border: 5px solid #fff; box-shadow: var(--shadow); overflow: hidden; animation: rise .5s both; animation-delay: calc(var(--i, 0) * 120ms); }
.ctile:nth-child(4n+1) { transform: rotate(-2.2deg); } .ctile:nth-child(4n+2) { transform: rotate(1.8deg); }
.ctile:nth-child(4n+3) { transform: rotate(1.2deg); } .ctile:nth-child(4n) { transform: rotate(-1.4deg); }
.collage.still .ctile { transform: none; animation: none; }
.ctile img { width: 100%; height: 100%; min-width: 0; object-fit: cover; display: block; }
.ctile.broken img { display: none; }
.ctile.noimg, .ctile.broken { display: flex; align-items: center; justify-content: center; }
.ctile-note { padding: 8px; text-align: center; font-size: .8rem; color: var(--muted); font-weight: 650; }
.ctile-badges { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.badge { display: inline-block; background: rgba(25, 18, 53, .86); color: #fff; font-size: .74rem; font-weight: 750; border-radius: 6px; padding: 2px 7px; margin: 1px 3px 1px 0; }
.vis-photos .collage .ctile:nth-child(n+7) { display: none; }
.vbrowser { padding: 0 0 14px; overflow: hidden; }
.vbrowser-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface2); border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.dots { width: 34px; height: 10px; background: radial-gradient(circle at 5px 5px, #f87171 4px, transparent 4.5px), radial-gradient(circle at 17px 5px, #fbbf24 4px, transparent 4.5px), radial-gradient(circle at 29px 5px, #34d399 4px, transparent 4.5px); flex: 0 0 auto; }
.vbrowser-url { font-family: var(--mono); font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbrowser .veyebrow { padding: 0 16px; }
.vchecks { list-style: none; margin: 0; padding: 0 16px; display: grid; grid-template-columns: 1fr; gap: 4px 18px; }
.vcheck { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-weight: 650; color: var(--ink); font-size: .93rem; animation: rise .35s both; animation-delay: calc(var(--i, 0) * 170ms); }
.vis-mobile { flex-direction: row; justify-content: center; align-items: center; gap: 18px; }
.vmobile-side { max-width: 220px; }
.vcompare { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vcmp { display: grid; grid-template-columns: minmax(0, 1fr) 90px 34px; align-items: center; gap: 10px; animation: rise .4s both; animation-delay: calc(var(--i, 0) * 180ms); }
.vcmp.you .vcmp-name { color: var(--brand-ink); font-weight: 800; }
.vcmp-name { font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbar { height: 10px; border-radius: 6px; background: var(--border); overflow: hidden; }
.vbar-fill { display: block; height: 100%; background: var(--comp); border-radius: 6px; }
.vcmp.you .vbar-fill { background: var(--brand); }
.vbar-fill.vb-good { background: var(--good); }
.vbar-fill.vb-fair { background: var(--fair); }
.vbar-fill.vb-poor { background: var(--poor); }
.vcmp-score { font-weight: 800; text-align: right; color: var(--ink); }
.vnote { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }

/* phone frame (CSS only) */
.phone { position: relative; width: 196px; aspect-ratio: 412 / 860; border-radius: 34px; background: #1d1a2e; padding: 9px; box-shadow: var(--shadow-lg); flex: 0 0 auto; }
.phone-notch { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 34%; height: 16px; background: #1d1a2e; border-radius: 0 0 12px 12px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.phone-na { margin: 0; padding: 16px; text-align: center; color: var(--muted); font-weight: 650; font-size: .9rem; }
.lhrings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lhring { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.lhring-wrap, .ring-wrap { position: relative; display: inline-flex; }
.lhring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 850; color: var(--ink); font-size: 1.05rem; }
.lhring-label { font-size: .82rem; font-weight: 700; color: var(--text); }

@media (min-width: 560px) {
  .collage { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vis-photos .collage .ctile:nth-child(n+7) { display: block; }
  .vchecks { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .scan { flex-direction: row; align-items: stretch; min-height: calc(100vh - 90px); padding-bottom: 16px; }
  .scan-panel { flex: 0 0 320px; width: 320px; padding: 26px 22px 18px; }
  .scan-eyebrow { font-size: 1.2rem; }
  .strip { display: none; }
  .steps { display: block; }
  .scan-bottom { margin-top: auto; padding-top: 18px; }
  .stage { flex: 1 1 auto; height: auto; min-height: 600px; }
  .stage-map { height: 100%; bottom: 0; }
  .vis { padding: 26px; }
  .vis-map { padding-top: 22px; }
  .vpill { min-width: 420px; }
  .phone { width: 250px; }
  .vmobile-side { max-width: 260px; }
  .collage { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .vis-mobile { gap: 10px; padding-left: 12px; padding-right: 12px; }
  .vis-mobile .phone { width: 122px; padding: 7px; border-radius: 26px; }
  .vis-mobile .phone-screen { border-radius: 20px; }
  .vis-mobile .vmobile-side { flex: 1 1 auto; min-width: 0; max-width: 180px; }
  .vis-mobile .lhrings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 4px; }
  .vis-mobile .lhring-label { font-size: .7rem; line-height: 1.2; overflow-wrap: anywhere; }
  .vis-mobile .lhring-num { font-size: .92rem; }
  .phone { width: 150px; }
  .lhrings { gap: 8px; }
  .vis-map { padding-top: 10px; }
  .stage[data-v="locate"] .vis-map .vchip-bottom { margin-top: 212px; }
  .stage .gm-comp-chip, .rmap .gm-comp-chip { display: none; }
}
@media (max-width: 767px) {
  .vis-map { justify-content: flex-start; }
  .vis-map .vchip-bottom { margin-top: auto; margin-bottom: 120px; }
}

/* map markers (MapLibre + Leaflet) */
.gm-box { width: 100%; height: 100%; }
.gm-you { display: flex; flex-direction: column; align-items: center; pointer-events: auto; }
.gm-you-chip { background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 10px; box-shadow: 0 6px 16px rgba(91, 33, 182, .35); white-space: nowrap; margin-bottom: 4px; font-family: var(--font); }
.gm-you-pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); border: 4px solid #fff; box-shadow: 0 4px 12px rgba(25, 18, 53, .35); margin-bottom: 4px; }
.gm-comp { display: flex; flex-direction: column; align-items: center; pointer-events: auto; }
.gm-comp-chip { background: #fff; color: var(--ink); font-weight: 700; font-size: 12.5px; padding: 5px 10px; border-radius: 10px; box-shadow: 0 4px 14px rgba(25, 18, 53, .18); white-space: nowrap; margin-bottom: 4px; border: 1px solid var(--border); font-family: var(--font); }
.gm-comp-chip.gm-chip-off { visibility: hidden; }
.gm-comp-ring { width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--comp); background: #fff; box-shadow: 0 2px 6px rgba(25, 18, 53, .25); }
.gm-leaflet-icon { background: none; border: 0; }
.gm-leaflet-icon > div { position: absolute; transform: translate(-50%, -100%); }
.gm-listmode { overflow: auto; padding: 14px; background: #fff; }
.gm-list-note { margin: 0 0 8px; color: var(--muted); font-weight: 650; }
.gm-list { margin: 0; padding-left: 20px; }
.gm-list li { margin: 4px 0; }
.gm-li-you { font-weight: 800; color: var(--brand-ink); }
.gm-li-dist { color: var(--muted); }
.maplibregl-ctrl-attrib { font-family: var(--font); font-size: 11px; }

/* --------------------------------------------------------------- report */
.loading { max-width: 600px; margin: 60px auto; text-align: center; padding: 0 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); font-weight: 700; }
.report { max-width: 1240px; margin: 0 auto; padding: 0 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.rp-side { position: relative; background: linear-gradient(170deg, #f3edff 0%, #fbf4ff 45%, #fff5e8 100%); border: 1px solid var(--border); border-radius: 22px; padding: 18px 16px; box-shadow: var(--shadow-sm); }
.rp-biz { text-align: center; }
.rp-biz-name { margin: 0; font-weight: 850; color: var(--ink); font-size: 1.1rem; word-break: break-word; }
.rp-biz-host { margin: 2px 0 0; font-size: .92rem; word-break: break-all; }
.rp-biz-cat { margin: 4px 0 0; display: inline-block; font-size: .8rem; font-weight: 750; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; color: var(--text); }
.grade { display: flex; flex-direction: column; align-items: center; margin: 14px 0 6px; text-align: center; }
.grade-ring { position: relative; display: inline-flex; }
.grade-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.grade-num b { font-size: 3.1rem; font-weight: 860; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.grade-num small { color: var(--muted); font-weight: 650; margin-top: 4px; }
.grade-label { margin: 10px 0 0; color: var(--text); font-weight: 650; }
.grade-band { margin: 2px 0 0; font-size: 1.6rem; font-weight: 800; }
.band-poor { color: var(--poor); } .band-fair { color: var(--fair); } .band-good { color: var(--good); } .band-excellent { color: var(--brand-ink); }
.grade-none { display: flex; flex-direction: column; align-items: center; }
.grade-none-text { margin: 10px 0 0; font-weight: 800; color: var(--ink); }
.grade-none-sub { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.cats { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cat { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 6px; border-top: 1px solid rgba(124, 58, 237, .12); }
.cat-text { display: flex; flex-direction: column; min-width: 0; }
.cat-name { font-weight: 800; color: var(--ink); }
.cat-sub { font-size: .78rem; color: var(--muted); }
.cat-band { font-weight: 750; font-size: .92rem; }
.cat-score { font-weight: 700; color: var(--text); font-size: .92rem; white-space: nowrap; }
.cat-partly { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.cat-partly-tip { font-size: .78rem; color: var(--muted); }
.tag { display: inline-block; align-self: flex-start; font-size: .76rem; font-weight: 800; border-radius: 999px; padding: 2px 9px; background: var(--tint); color: var(--brand-ink); }
.tag-partly { background: var(--fair-bg); color: #7a3a06; }
/* James 2026-10-10: not enough data (no score, no band) and the 24 hour PageSpeed snapshot */
.grade-nodata .grade-none-sub { text-align: center; max-width: 30ch; }
.cat-nodata .cat-band { color: var(--muted); }
.cat-nodata-pts { margin-top: 2px; }
.grade-based { margin: 8px 0 0; text-align: center; font-size: .84rem; }
.tag-snapshot { margin: 0 0 10px; }
.jump { display: none; margin-top: 14px; border-top: 1px solid rgba(124, 58, 237, .12); padding-top: 10px; }
.jump-title { margin: 0 0 4px; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.jump ul { list-style: none; margin: 0; padding: 0; }
.jump a { display: block; padding: 5px 6px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: .93rem; }
.jump a:hover { background: rgba(255, 255, 255, .7); color: var(--brand-ink); }
.rp-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rp-head { padding: 4px 2px 0; }
.rp-head h1 { margin: 0; font-size: clamp(1.5rem, 4.8vw, 2.2rem); font-weight: 850; word-break: break-word; }
.rp-head p { margin: 4px 0 0; word-break: break-all; }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 18px 16px; min-width: 0; scroll-margin-top: 14px; }
.card-head h2 { margin: 0; font-size: clamp(1.18rem, 3.4vw, 1.42rem); font-weight: 820; }
.card-sub { margin: 6px 0 0; color: var(--muted); }
.card-head .tag { margin-top: 8px; }
.card-body { margin-top: 12px; }
.card h3 { font-size: 1rem; margin: 16px 0 6px; }
.sub-h { margin-top: 18px !important; }
.lead { font-size: 1.04rem; font-weight: 650; color: var(--ink); margin: 0 0 10px; }
.note { margin: 10px 0 0; font-size: .86rem; color: var(--muted); }
.alert { padding: 10px 12px; border-radius: 12px; background: var(--fair-bg); color: #6a3205; font-weight: 650; margin: 0 0 10px; }

.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: .82rem; font-weight: 750; background: var(--tint); color: var(--brand-ink); white-space: nowrap; }
.chip.st-pass, .chip.rate-good, .chip.tone-positive, .chip.bot-allowed { background: var(--good-bg); color: var(--good); }
.chip.st-warn, .chip.rate-ni, .chip.bot-partial { background: var(--fair-bg); color: var(--fair); }
.chip.st-fail, .chip.rate-poor, .chip.tone-negative, .chip.bot-blocked { background: var(--poor-bg); color: var(--poor); }
.chip.st-not_measured, .chip.st-na, .chip.tone-neutral, .chip.bot-unknown { background: #f0eef6; color: var(--muted); }
.chip.sev-critical { background: var(--poor); color: #fff; }
.chip.sev-important { background: var(--poor-bg); color: var(--poor); }
.chip.sev-minor { background: var(--fair-bg); color: var(--fair); }
.chip.theme { background: #f3f1f9; color: var(--text); font-weight: 650; }
.chip.mini-chip { margin-top: 4px; }

.probs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.prob { border: 1px solid var(--border); border-radius: 14px; background: var(--surface2); }
.prob > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; min-height: 48px; }
.prob > summary::-webkit-details-marker { display: none; }
.prob-title { flex: 1 1 200px; font-weight: 750; color: var(--ink); min-width: 0; }
.prob-pts { font-size: .85rem; font-weight: 750; color: var(--muted); white-space: nowrap; }
.chev { display: inline-flex; color: var(--muted); transition: transform .15s; }
.prob[open] .chev { transform: rotate(90deg); }
.prob-body { padding: 0 14px 14px; border-top: 1px solid var(--border); }
.prob-body h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 4px; }
.prob-body p { margin: 0 0 6px; word-break: break-word; }
.prob-src { font-size: .85rem; color: var(--muted); margin-top: 12px !important; }
.howlist { margin: 4px 0 0; padding-left: 22px; }
.howlist li { margin: 4px 0; }
details.fold { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 4px; }
details.fold > summary, details.mini > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 750; color: var(--brand-ink); }
details.mini > summary { min-height: 36px; font-size: .9rem; }
details.fold > summary, details.mini > summary { list-style: none; gap: 10px; }
details.fold > summary::-webkit-details-marker, details.mini > summary::-webkit-details-marker { display: none; }
details.fold > summary::before, details.mini > summary::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin: 0 4px 0 2px; transition: transform .15s; }
details.fold[open] > summary::before, details.mini[open] > summary::before { transform: rotate(45deg); }
.wg-title { flex: 1 1 auto; }
.crows { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.crow { padding: 10px 0; border-top: 1px solid var(--border); }
.crow:first-child { border-top: 0; }
.crow-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.crow-title { font-weight: 750; color: var(--ink); }
.crow-found { margin: 4px 0 0; color: var(--text); font-size: .95rem; word-break: break-word; }
.crows.compact .crow { padding: 8px 0; }

.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)), linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 70%) 100% 0, radial-gradient(farthest-side at 100% 50%, rgba(25, 18, 53, .14), transparent); background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%; background-position: 0 0, 100% 0, 100% 0; background-attachment: local, local, scroll; }
.scroll-hint { margin: 0 0 6px; font-size: .85rem; color: var(--muted); }
table { border-collapse: collapse; width: 100%; }
.gap { min-width: 760px; font-size: .9rem; }
.gap th, .gap td { padding: 9px 8px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.gap thead th { font-size: .76rem; font-weight: 800; color: var(--muted); text-transform: none; line-height: 1.2; }
.gap .th-biz { text-align: left; position: sticky; left: 0; background: #fff; min-width: 150px; max-width: 200px; z-index: 1; }
.gap tr.you .th-biz, .gap tr.you td { background: #f6f1ff; }
.cmp-name { display: block; font-weight: 800; color: var(--ink); }
.cmp-sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 184px; }
.tk.yes { color: var(--good); } .tk.no { color: var(--poor); } .tk.na { color: #a19dba; }
.tk.num { font-weight: 750; color: var(--ink); white-space: nowrap; }
.cmp-score b { font-size: 1.05rem; color: var(--ink); }
.others { list-style: none; margin: 6px 0 0; padding: 0; }
.others li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--border); }
.o-name { font-weight: 750; color: var(--ink); }
.o-dist, .o-note { color: var(--muted); font-size: .9rem; }

.queries { list-style: none; margin: 0; padding: 0; }
.q { padding: 10px 0; border-top: 1px solid var(--border); }
.q:first-child { border-top: 0; }
.q-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text text" "bar num" "band band"; gap: 6px 10px; align-items: center; }
.q-text { grid-area: text; display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: var(--ink); word-break: break-word; }
.q-text .ico { color: var(--muted); margin-top: 3px; }
.qbar { grid-area: bar; height: 10px; border-radius: 6px; background: var(--border); overflow: hidden; display: block; }
.qbar-fill { display: block; height: 100%; border-radius: 6px; }
.qb-ready { background: var(--good); } .qb-partial { background: var(--fair); } .qb-not_ready { background: var(--poor); }
.chip.qb-ready { background: var(--good-bg); color: var(--good); } .chip.qb-partial { background: var(--fair-bg); color: var(--fair); } .chip.qb-not_ready { background: var(--poor-bg); color: var(--poor); }
.q-num { grid-area: num; font-weight: 800; color: var(--ink); min-width: 28px; text-align: right; }
.qband { grid-area: band; justify-self: start; }
.signals { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 2px 16px; font-size: .9rem; }
.signals li { display: flex; gap: 6px; align-items: center; }
.signals .yes .ico { color: var(--good); } .signals .no .ico { color: var(--poor); }

.rmap { position: relative; height: 340px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #f2f0f8; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; font-size: .9rem; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg-you { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--brand); }
.lg-comp { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--comp); background: #fff; }
.lg-radius { width: 18px; height: 12px; border: 1.5px dashed var(--brand); border-radius: 6px; background: rgba(124, 58, 237, .06); }
.maplist { margin: 4px 0 0; padding-left: 22px; }
.maplist li { margin: 3px 0; }

.kv { display: grid; grid-template-columns: 1fr; gap: 2px 14px; margin: 10px 0 0; }
.kv dt { font-weight: 750; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }
.lst-state { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 0; }
.lst-state.ok { color: var(--good); } .lst-state.no { color: var(--poor); }
.lst-name { margin: 6px 0 0; font-size: 1.2rem; font-weight: 820; color: var(--ink); word-break: break-word; }
.linklist { margin: 4px 0 0; padding-left: 20px; }
.linklist li { margin: 2px 0; }
.linklist a { display: inline-flex; min-height: 36px; align-items: center; }

.reviews { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.review { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; background: var(--surface2); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.review-text { margin: 8px 0 4px; word-break: break-word; }
.card .pchips { justify-content: flex-start; }
.selfcheck { margin-top: 18px; padding: 14px; border-radius: 14px; border: 1px dashed var(--border2); background: #fcfbff; }
.selfcheck-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.selfcheck-head h3 { margin: 0; }
.selfcheck .btnrow { margin-top: 8px; }
.sc-list-title { margin: 14px 0 4px; font-weight: 800; color: var(--ink); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; min-height: 44px; border-top: 1px solid var(--border); }
.checklist input { width: 22px; height: 22px; accent-color: var(--brand); flex: 0 0 auto; margin: 0; }
.checklist label { cursor: pointer; flex: 1 1 auto; padding: 8px 0; }

.collage.rcollage { margin-top: 4px; }
.table-wrap { position: relative; overflow-x: auto; }
.ptable { font-size: .9rem; }
.ptable th { text-align: left; font-size: .78rem; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--border); }
.ptable td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: middle; word-break: break-word; }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; display: block; background: #eee; }
.thumb.none { display: flex; align-items: center; justify-content: center; color: var(--poor); }
.ptable .badge { background: var(--poor-bg); color: var(--poor); }
.wgroup { padding-top: 0; margin-top: 0 !important; }
.wgroup > summary { color: var(--ink) !important; }
.wg-title { font-weight: 800; }
.wgroup[open] > summary { margin-bottom: 4px; }
.pages { list-style: none; margin: 0; padding: 0; }
.pages li { margin: 2px 0; word-break: break-all; }
.links a { word-break: break-all; }
.schema-ex { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface2); }
.schema-ex-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.schema-ex-head h3 { margin: 0 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--ink) !important; font-size: .95rem !important; }
.schema-ex pre { margin: 8px 0 0; max-height: 300px; overflow: auto; background: #1d1a2e; color: #f4f1ff; border-radius: 10px; padding: 12px; font-size: .8rem; line-height: 1.45; }
.schema-ex pre code { background: none; color: inherit; padding: 0; white-space: pre; word-break: normal; }
.mob { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mob-side { width: 100%; }
.metrics { font-size: .92rem; margin-top: 4px; }
.metrics th { text-align: left; font-weight: 650; color: var(--text); padding: 7px 8px 7px 0; border-bottom: 1px solid var(--border); }
.metrics td { padding: 7px 0 7px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; text-align: right; font-weight: 750; color: var(--ink); }
.opps { list-style: none; margin: 0; padding: 0; }
.opps li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--border); }
.ai-meter { display: flex; align-items: center; gap: 14px; }
.ai-meter .lead { margin: 0; font-size: 1.3rem; }
.bots code { font-size: .85rem; }
.sources { margin: 0; padding-left: 20px; }
.sources li { margin: 6px 0; }
.sources li.strong { font-weight: 700; color: var(--ink); }
.cta { background: linear-gradient(135deg, #2a1660, #5b21b6 60%, #7c3aed); color: #f4f1ff; border: 0; text-align: left; }
.cta h2 { color: #fff; margin: 0; }
.cta-text { margin: 8px 0 0; font-size: 1.04rem; color: #ece6ff; }
.cta .btn { box-shadow: none; }
.cta .btn.primary { background: #fff; color: var(--brand-ink); }
.cta .btn.primary:hover { color: var(--brand); }
.cta .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.cta .linkbtn { color: #fff; }
.actions { padding: 6px 2px 0; }
.actions .btnrow { margin-top: 0; }
.found-site { border-color: var(--brand); }
.found-site h2 { font-size: 1.15rem; }
.fs-err { color: var(--poor); font-weight: 650; }
.eyebrow.left { text-align: left; }

@media (max-width: 639px) {
  table.stack thead { display: none; }
  table.stack tr { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  table.stack td { border: 0; padding: 2px 0; }
  table.stack td:first-child { grid-row: span 5; }
  table.stack td:not(:first-child)::before { content: attr(data-l) ": "; font-weight: 750; color: var(--muted); font-size: .8rem; }
}
@media (min-width: 640px) {
  .q-row { grid-template-columns: minmax(0, 1fr) 160px 36px 130px; grid-template-areas: "text bar num band"; }
  .qband { justify-self: end; }
  .signals { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 190px minmax(0, 1fr); }
  .kv dt { margin-top: 0; padding-top: 6px; }
  .kv dd { padding-top: 6px; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .mob { flex-direction: row; align-items: flex-start; }
  .phone.big, .mob .phone { width: 240px; }
  .lhrings { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 22px 22px; }
  .rmap { height: 420px; }
}
@media (min-width: 1024px) {
  .report { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; gap: 22px; }
  .rp-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; padding: 22px 18px; }
  .jump { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .scanline, .radar span { display: none; }
  .ctile, .vreview { transform: none !important; }
  .step[data-state="running"] .step-ico { border-color: var(--ink); border-style: dotted; }
}

/* ---------------------------------------------------------------- print */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; background-image: none !important; color: #000; }
  .top-nav, .foot, .toast, .jump, .actions .btnrow, .btn, .linkbtn, .rmap, .legend, .copybtn, .selfcheck .btnrow, .scroll-hint, .skiplink, #landing { display: none !important; }
  .cta { background: #fff !important; color: #000; border: 1px solid #ccc; }
  .cta h2, .cta-text { color: #000 !important; }
  .print-only { display: block; }
  .print-head { font-weight: 700; margin-bottom: 8px !important; }
  .report { display: block; padding: 0; }
  .rp-side { position: static; max-height: none; box-shadow: none; background: #fff !important; border: 1px solid #ccc; break-inside: avoid; margin-bottom: 12px; }
  .card { box-shadow: none; border: 1px solid #ccc; margin-bottom: 12px; break-inside: auto; }
  .prob, .crow, .q, .review, .others li, .opps li, tr { break-inside: avoid; }
  .card-head { break-after: avoid; }
  .table-scroll { overflow: visible; border: 0; background: none; }
  .gap { min-width: 0; font-size: 8pt; }
  .gap .th-biz { position: static; }
  .collage { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ctile { transform: none !important; animation: none !important; box-shadow: none; }
  .phone { box-shadow: none; }
  .schema-ex pre { max-height: none; background: #f6f6f6; color: #000; }
  a { color: #000; text-decoration: underline; }
  details > summary { list-style: none; }
}

/* ------------------------------------------------------- how we score */
.how { max-width: 1080px; margin: 0 auto; padding: 0 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.how-head { padding: 10px 2px 4px; }
.how-head h1 { margin: 0; font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 860; letter-spacing: -.02em; }
.how-head .hero-sub { margin: 10px 0 0; max-width: 60ch; }
.how-toc { margin-top: 14px; }
.how-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.how-toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); text-decoration: none; color: var(--ink); font-weight: 650; font-size: .92rem; }
.how-toc a:hover { border-color: var(--brand); color: var(--brand-ink); }
.how h2 { margin: 0 0 10px; font-size: clamp(1.2rem, 3.4vw, 1.5rem); }
.how h3 { margin: 18px 0 6px; font-size: 1.05rem; }
.how p { margin: 0 0 8px; }
.how-list { margin: 0; padding-left: 20px; }
.how-list li { margin: 6px 0; }
.how-dl dt { font-weight: 800; color: var(--ink); margin-top: 12px; }
.how-dl dd { margin: 4px 0 0; }
.how-pre { background: #1d1a2e; color: #f4f1ff; border-radius: 10px; padding: 12px 14px; overflow-x: auto; }
.how-pre code { background: none; color: inherit; padding: 0; }
.hw-sub { font-size: .9rem; font-weight: 650; color: var(--muted); }
.hw-small-h { font-weight: 800; color: var(--ink); margin-top: 10px !important; }
.hw-table { font-size: .92rem; min-width: 820px; }
.hw-table th, .hw-table td { text-align: left; vertical-align: top; padding: 10px 10px; border-bottom: 1px solid var(--border); }
.hw-table thead th { font-size: .78rem; color: var(--muted); font-weight: 800; }
.hw-table tbody th { color: var(--ink); font-weight: 750; min-width: 170px; }
.hw-id { display: inline-block; font-family: var(--mono); font-size: .78rem; background: var(--tint); color: var(--brand-ink); border-radius: 6px; padding: 1px 6px; margin-right: 4px; }
.hw-pts { font-weight: 800; color: var(--ink); text-align: center !important; }
.hw-why { color: var(--muted); font-size: .86rem; margin-top: 6px !important; }
.hw-variant { font-size: .86rem; margin-top: 6px !important; }
@media (max-width: 759px) {
  .hw-table { min-width: 0; }
  .hw-table thead { display: none; }
  .hw-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .hw-table th, .hw-table td { display: block; border: 0; padding: 3px 0; }
  .hw-table td::before { content: attr(data-l) ": "; font-weight: 750; color: var(--muted); font-size: .8rem; }
  .hw-pts { text-align: left !important; }
  .table-scroll:has(.hw-table) { border: 0; background: none; overflow: visible; }
}
