:root {
  --ink: #111111;
  --ink-2: #344054;
  --muted: #667085;
  --line: #eaecf0;
  --line-2: #d0d5dd;
  --bg: #f7f8fb;
  --card: #ffffff;
  --accent: #1f00ff;
  --accent-hover: #1700c2;
  --accent-soft: #eeebff;
  --orange: #ff7b1c;
  --good: #12b76a;
  --good-tint: #dcfae6;
  --good-ink: #067647;
  --fair: #f79009;
  --fair-tint: #fef0c7;
  --fair-ink: #b54708;
  --poor: #f04438;
  --poor-tint: #fee4e2;
  --poor-ink: #b42318;
  --radius: 14px;
  color-scheme: light;
}

/* A status never relies on colour alone: every tone also sets the glyph its icon shows. */
.good, .check.pass, .bot.allowed { --c: var(--good); --t: var(--good-tint); --i: var(--good-ink); --glyph: "✓"; }
.fair, .check.part { --c: var(--fair); --t: var(--fair-tint); --i: var(--fair-ink); --glyph: "!"; }
.poor, .check.fail, .bot.blocked.critical { --c: var(--poor); --t: var(--poor-tint); --i: var(--poor-ink); --glyph: "✕"; }
.check.na { --c: #98a2b3; --t: var(--line); --i: var(--ink-2); --glyph: "–"; }
/* A blocked training crawler costs no search visibility: grey, not red. */
.bot.blocked:not(.critical) { --c: #98a2b3; --glyph: "✕"; }
.tip-tone { --c: var(--accent); --t: var(--accent-soft); --i: var(--accent); --glyph: "+"; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px; }
h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 800; }
h1 span { color: var(--accent); overflow-wrap: anywhere; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 8px; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
button { font: inherit; }
[hidden] { display: none !important; }
html:not(.js) .js-only { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.meta { color: var(--muted); font-size: 13px; }
.lede { color: var(--muted); margin-bottom: 16px; max-width: 64ch; }
.label { font-weight: 600; color: var(--muted); font-size: 14px; }
.eyebrow { color: var(--orange); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Status: a tinted pill with an icon, for any good / fair / poor verdict. */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; border-radius: 999px; background: var(--t); color: var(--i); font-size: 13px; font-weight: 600; line-height: 1.5; }
.status::before, .check-icon, .access {
  flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c); color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
}
.status::before, .check-icon::before, .access::before { content: var(--glyph); }
.verdict { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.verdict::before { content: var(--glyph); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-size: 14px; font-weight: 800; }

.ring { flex: none; }
.ring-track { fill: none; stroke: var(--t, var(--line)); stroke-width: 10; }
.ring-value { fill: none; stroke: var(--c); stroke-width: 10; stroke-linecap: round; }
.ring-score { font: 800 34px Inter, sans-serif; text-anchor: middle; fill: var(--ink); }
.ring-max { font: 500 12px Inter, sans-serif; text-anchor: middle; fill: var(--muted); }

/* Meter: the fill carries the status; the track is a lighter step of the same hue. */
.meter { display: block; height: 8px; border-radius: 4px; background: var(--t, var(--line)); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--c); border-radius: 0 4px 4px 0; }
.meter.na { background: var(--line); }

.chip { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.chip.sev-critical { background: #fee4e2; color: #b42318; }
.chip.sev-high { background: #fff1e6; color: #c4320a; }
.chip.sev-medium { background: var(--accent-soft); color: var(--accent); }
.chip.sev-low, .chip.neutral { background: #f2f4f7; color: #475467; }
.chip.ok { background: #dcfae6; color: #067647; }

.button { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; padding: 14px 22px; border-radius: 10px; white-space: nowrap; border: 0; cursor: pointer; }
.button:hover { background: var(--accent-hover); }
.button.small { padding: 9px 14px; font-size: 14px; }
.ghost { font-size: 14px; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.ghost:hover { border-color: var(--ink); }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Page frame */
.top, .toc-inner, main, footer { max-width: 960px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 16px; flex-wrap: wrap; }
.top img { display: block; height: 28px; width: auto; }
.top-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.toc { position: sticky; top: 0; z-index: 10; background: rgba(247, 248, 251, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.toc-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.toc-inner::-webkit-scrollbar { display: none; }
.toc a { flex: none; padding: 12px 10px 10px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 2px solid transparent; }
.toc a:first-child { margin-left: -10px; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent); border-bottom-color: var(--accent); }

section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; scroll-margin-top: 64px; }
section.hero { background: transparent; border: 0; padding: 28px 0 8px; }
h3.sub { margin-top: 28px; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
h3.sub .meta { font-weight: 400; letter-spacing: 0; }

/* Overview */
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 24px; display: grid; gap: 24px; box-shadow: 0 16px 40px -28px rgba(17, 17, 17, 0.3); }
.hero-score { display: flex; gap: 24px; align-items: center; }
.hero-score p { color: var(--ink-2); margin: 0; max-width: 52ch; }
.hero-scale { border-top: 1px solid var(--line); padding-top: 20px; container: scale / inline-size; }
.hero-scale .label { margin-bottom: 12px; }
.hero-scale > .meta { margin: 12px 0 0; }

.scale { position: relative; }
.scale-bands { display: flex; gap: 2px; }
.band { min-width: 0; border-radius: 4px; cursor: default; }
.band-bar { display: block; height: 12px; background: var(--t); }
.band:first-child .band-bar { border-radius: 6px 0 0 6px; }
.band:last-child .band-bar { border-radius: 0 6px 6px 0; }
.band.current .band-bar { background: var(--c); }
.band-name, .band-range { display: block; text-align: center; white-space: nowrap; }
.band-name { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-top: 8px; }
.band.current .band-name { font-weight: 700; color: var(--ink); }
.band-range { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.scale-dots { position: absolute; top: 0; left: 0; right: 0; height: 12px; pointer-events: none; }
.scale-dots .dot { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--card); transition: left 0.35s ease; }
.scale-dots .you, .key.you { background: var(--ink); }
.scale-dots .plan, .key.plan { background: var(--accent); }
.scale-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.scale-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.key { width: 10px; height: 10px; border-radius: 50%; flex: none; }
@container scale (width < 520px) {
  .band-name { display: none; }
  .band-range { margin-top: 8px; }
}

.takeaways { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.takeaways li { display: flex; gap: 12px; align-items: flex-start; }
.takeaways li .check-icon { margin-top: 2px; }
.takeaways li.poor { --glyph: "!"; }
.takeaways p { margin: 0; color: var(--ink-2); }
.takeaways strong { color: var(--ink); }
.takeaways a, .takeaways .link { white-space: nowrap; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 16px 0 20px; }
.tile { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: inherit; text-decoration: none; }
a.tile:hover { border-color: var(--accent); }
.tile-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.tile-value { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.tile-sub { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 13px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.filters button { font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.filters button span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button[aria-pressed="true"] span { color: var(--line-2); }

/* Fix plan */
.report .fixes { display: grid; gap: 12px; }
.fix { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; scroll-margin-top: 80px; transition: border-color 0.15s, background-color 0.15s; }
.js .fixes.collapsed .fix.extra { display: none; }
.more-fixes { width: 100%; margin-top: 12px; padding: 10px; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--card); border: 1px dashed var(--line-2); border-radius: 12px; cursor: pointer; }
.more-fixes:hover { border-color: var(--accent); background: var(--accent-soft); }
.fix.planned { border-color: var(--accent); background: #fbfaff; }
.fix.flash { animation: flash 1.4s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 4px var(--accent-soft); } to { box-shadow: 0 0 0 0 transparent; } }
.fix-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-bottom: 6px; }
.fix h3 { margin: 0 0 6px; }
.how > summary, details.more > summary { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
.how > summary::-webkit-details-marker, details.more > summary::-webkit-details-marker { display: none; }
.how > summary::before, details.more > summary::before { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform 0.15s; }
.how[open] > summary::before, details.more[open] > summary::before { transform: rotate(45deg) translate(-2px, -1px); }
.how p { color: var(--ink-2); margin: 8px 0 0; max-width: 70ch; }
.how .where { font-size: 14px; }
.fix-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.gain { font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; font-size: 13px; white-space: nowrap; }
.pick { font-size: 14px; font-weight: 600; min-height: 36px; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.pick:hover { border-color: var(--accent); color: var(--accent); }
.pick[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.plan-bar { position: sticky; bottom: 12px; z-index: 5; margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 14px 12px 18px; box-shadow: 0 14px 32px -14px rgba(17, 17, 17, 0.55); }
.plan-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.plan-count { color: var(--line-2); font-size: 14px; }
.plan-score { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; }
.plan-score b { font-size: 20px; }
.plan-arrow { display: inline-flex; align-items: center; gap: 6px; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-bar .ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.35); }
.plan-bar .ghost:hover { border-color: #fff; }

/* Score breakdown */
.areas { display: grid; gap: 10px; }
.area { border: 1px solid var(--line); border-radius: 12px; scroll-margin-top: 80px; }
.area[open] { border-color: var(--line-2); }
.area > summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 200px) 128px 12px; gap: 16px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; border-radius: 12px; }
.area > summary::-webkit-details-marker { display: none; }
.area > summary:hover { background: var(--bg); }
.area > summary::after { content: ""; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); justify-self: end; transition: transform 0.15s; }
.area[open] > summary::after { transform: rotate(-135deg); }
.area-title strong { display: block; font-size: 16px; }
.area-title .meta { display: block; }
.area-score { display: flex; align-items: center; gap: 10px; }
.area-score .meter { flex: 1; }
.area-score b { min-width: 28px; text-align: right; font-size: 18px; font-variant-numeric: tabular-nums; }
.area-cost { text-align: right; line-height: 1.4; }
.area-cost > span { display: block; }

.checks { list-style: none; margin: 0; padding: 0 16px 8px; }
.checks .check { display: grid; grid-template-columns: 18px minmax(0, 1fr) 150px; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.checks .check-icon { margin-top: 2px; }
.check-name { font-weight: 600; font-size: 15px; }
.checks .check p { margin: 2px 0 0; }
.check-score { display: grid; gap: 4px; text-align: right; padding-top: 7px; }
.check-score .meta { font-variant-numeric: tabular-nums; }
.to-fix { font-size: 14px; font-weight: 600; }
.checks.brand { padding: 0; margin-bottom: 12px; }
.checks.brand .check:first-child { border-top: 0; }
.checks.brand .check-name { padding-top: 1px; }

/* AI crawlers */
.headline { margin: 0 0 10px; }
.headline .status { font-size: 15px; padding-right: 12px; }
.operators { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.operator { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.operator-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.bots { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bot { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 5px 6px; margin: 0 -6px; border-radius: 6px; font-size: 14px; }
.bot .access { margin-top: 1px; }
.bot-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; }
.bot:hover, .bot:focus-visible { background: var(--bg); }

/* SEO health */
.seo-head { display: flex; gap: 24px; align-items: center; }
.seo-head .lede { margin: 0; }
.tiles.cwv { margin: 0; }
.tiles.cwv .tile { gap: 4px; }
.grid-rows { display: grid; gap: 16px; }
.grid-rows.two { grid-template-columns: 1fr 1fr; column-gap: 32px; }
.row-label { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.row-label b { font-variant-numeric: tabular-nums; }
details.more { margin-top: 16px; }
details.more > summary { margin-bottom: 16px; }
.issues { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.issue { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.issue .chip { margin-top: 2px; justify-self: start; }

/* Pages */
.table-wrap { overflow-x: auto; }
table.pages { width: 100%; border-collapse: collapse; font-size: 14px; }
.pages th, .pages td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.pages th:first-child, .pages td:first-child { padding-left: 0; }
.pages thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 13px; }
.pages .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pages td a { color: var(--ink); overflow-wrap: anywhere; }

.cta { display: flex; gap: 24px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.cta h2 { color: #fff; }
.cta p { color: var(--line-2); margin: 0; max-width: 56ch; }

footer { padding-top: 8px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
.pending { padding-top: 80px; text-align: center; }
.pending .lede { margin: 0 auto; }

.tip { position: fixed; z-index: 50; max-width: 280px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; pointer-events: none; box-shadow: 0 8px 24px -8px rgba(17, 17, 17, 0.5); }

@media (max-width: 720px) {
  section { padding: 20px; }
  .hero-card { padding: 20px; }
  .hero-score { gap: 16px; }
  .hero-score .ring { width: 112px; height: 112px; }
  .verdict { font-size: 24px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-value { font-size: 26px; }
  .fix { grid-template-columns: 1fr; }
  .fix-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .area > summary { grid-template-columns: minmax(0, 1fr) 12px; }
  .area-score { grid-column: 1; }
  .area-cost { grid-column: 1; text-align: left; }
  .area-cost > span { display: inline; }
  .area-cost > span + span::before { content: " · "; }
  .area > summary::after { grid-row: 1; grid-column: 2; }
  .checks .check { grid-template-columns: 18px minmax(0, 1fr); }
  .check-score { grid-column: 2; text-align: left; padding-top: 0; }
  .grid-rows.two { grid-template-columns: 1fr; }
  .seo-head { flex-direction: column; align-items: flex-start; }
  .cta { flex-direction: column; align-items: flex-start; }
  .plan-bar { bottom: 8px; padding: 10px 12px; gap: 8px; }
  .plan-count { font-size: 13px; }
  .plan-score b { font-size: 18px; }
  .plan-actions { width: 100%; }
  .plan-actions .button { margin-left: auto; }
  .tile { padding: 14px; }
  .tile-label { font-size: 12px; }
}

@media print {
  body { background: #fff; }
  .toc, .js-only, .plan-bar, .cta.mid, .tip { display: none !important; }
  section, .hero-card, .tile, .fix, .area, .operator, .checks .check { break-inside: avoid; box-shadow: none; }
  section { border: 0; padding: 12px 0; }
  .area > summary::after, .how > summary::before { display: none; }
}
