@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/ibm-plex-mono-regular-75757bfc.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/ibm-plex-mono-medium-6ba6261a.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/ibm-plex-mono-semibold-df4e334d.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/ibm-plex-mono-bold-21023008.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #201d1d;
  --surface: #302c2c;
  --surface-raised: #383434;
  --border: #464343;
  --text: #fdfcfc;
  --muted: #c8c6c4;
  --subtle: #9a9898;
  --accent: #c8c6c4;
  --progress-track: #5b5b5b;
  --progress-fill: #91aaff;
  --pass: #30d158;
  --warn: #ff9f0a;
  --fail: #ff453a;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 400 14px/1.55 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--muted); text-decoration: none; }
a:hover { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 10;
  padding: .6rem 1rem; background: var(--text); color: var(--bg);
}
.skip-link:focus { left: 1rem; top: 1rem; }
.site-header, .site-main, .site-footer {
  width: min(var(--max), calc(100% - 3rem)); margin-inline: auto;
}
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: .48rem; color: var(--text); font-size: 1rem; font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand__mark { position: relative; display: inline-block; flex: 0 0 27px; width: 27px; height: 27px; overflow: hidden; border-radius: 5px; }
.brand__mark img { display: block; width: 100%; height: 100%; }
.brand__mark::after { position: absolute; top: 50%; left: 28%; width: 45%; height: 1px; background: var(--progress-fill); box-shadow: 0 0 5px #91aaff99; content: ""; opacity: 0; }
.brand__name { display: inline-block; white-space: nowrap; clip-path: inset(0); animation: wordmark-type .72s steps(9, end) .12s both; }
@keyframes wordmark-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes logo-scan { 0% { opacity: 0; transform: translateY(-9px); } 18% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
.brand__mark::after { animation: logo-scan 1.05s ease-in-out .15s both; }
.site-nav { display: flex; gap: 1.25rem; font-size: .82rem; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-main { min-height: 70vh; padding: 2.5rem 0 3.5rem; }
.site-footer { padding: 1rem 0 1.6rem; border-top: 1px solid var(--border); color: var(--subtle); font-size: .75rem; }
.site-footer p { margin: .2rem 0; }
.site-footer a { text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3 { line-height: 1.4; letter-spacing: 0; }
h1 { margin: 0 0 .75rem; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; }
h2 { margin: 2rem 0 .55rem; font-size: 1rem; font-weight: 700; }
h3 { margin: 0; font-size: .9rem; font-weight: 600; }
p { margin: 0 0 .8rem; }
.muted, .small { color: var(--muted); }
.small { font-size: .78rem; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.hero { max-width: 700px; }
.hero__eyebrow { margin: 0 0 .65rem; color: var(--muted); font-size: .75rem; }
.hero__lead { max-width: 60ch; color: var(--muted); font-size: .92rem; }

.hero--home { display: grid; max-width: var(--max); grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: center; gap: 2.5rem; margin: 0 auto; }
.hero--home h1 { max-width: 15ch; margin: 0 0 .55rem; font-size: clamp(1.75rem, 3.5vw, 2.35rem); line-height: 1.25; }
.hero--home .hero__lead { max-width: 58ch; font-size: .92rem; }
.hero--home .hero__eyebrow { display: flex; align-items: center; gap: .55rem; }
.hero--home .scan-form { max-width: none; margin: 0; }
.accent-text { color: var(--text); }
.status-dot, .preview-dot { display: inline-block; width: .42rem; height: .42rem; border-radius: 50%; background: var(--pass); }
.status-dot--warn { background: var(--warn); }
.status-dot--fail { background: var(--fail); }
.error-layout .brand__name { animation: none; clip-path: none; }

.scan-progress { display: grid; grid-template-columns: minmax(250px, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); min-height: 350px; padding: clamp(1.25rem, 4vw, 3rem); border: 1px solid var(--border); border-radius: 6px; background: radial-gradient(ellipse at 12% 50%, #91aaff14, transparent 55%), var(--surface); }
.scan-progress__visual { display: grid; min-height: 220px; place-items: center; }
.scan-window { position: relative; width: min(100%, 330px); padding: 0 1rem 1rem; overflow: hidden; border: 1px solid #5b5b5b; border-radius: 6px; background: #201d1d; box-shadow: 0 18px 55px #0005; transform: perspective(800px) rotateY(8deg) rotateX(2deg); }
.scan-window__chrome { display: flex; align-items: center; gap: .35rem; height: 38px; border-bottom: 1px solid var(--border); color: var(--subtle); font-size: .58rem; letter-spacing: .04em; }
.scan-window__chrome i { width: 6px; height: 6px; border-radius: 50%; background: #5b5b5b; }
.scan-window__chrome i:first-child { background: #ff6b61; }
.scan-window__chrome i:nth-child(2) { background: #f6bf4f; }
.scan-window__chrome i:nth-child(3) { background: #62c554; }
.scan-window__chrome span { margin-left: auto; }
.scan-window__page { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px; min-height: 165px; padding: 20px 8px 8px; overflow: hidden; }
.scan-window__url { grid-column: 1 / -1; width: 45%; height: 10px; margin-bottom: 3px; border-radius: 2px; background: #c8c6c466; }
.scan-window__line { display: block; width: 80%; height: 5px; border-radius: 2px; background: #5b5b5b; }
.scan-window__line--long { width: 96%; }
.scan-window__line--short { width: 58%; }
.scan-window__block { grid-column: 2; grid-row: 2 / span 3; min-height: 60px; border: 1px solid #464343; border-radius: 3px; background: linear-gradient(145deg, #91aaff22, #91aaff05); }
.scan-window__beam { position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--progress-fill); box-shadow: 0 0 14px 3px #91aaff88; animation: scan-beam 2.8s ease-in-out infinite; }
@keyframes scan-beam { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 1px); opacity: 0; } }
.scan-progress__content h1 { margin: 0 0 .55rem; font-size: clamp(1.55rem, 3vw, 2rem); }
.scan-progress__content .hero__eyebrow { display: flex; align-items: center; gap: .55rem; }
.scan-progress__content .hero__lead { font-size: .82rem; }
.scan-progress__target { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: baseline; gap: .7rem; margin: 1rem 0; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 4px; background: #201d1d88; }
.scan-progress__target > span:first-child { color: var(--subtle); font-size: .64rem; letter-spacing: .06em; }
.scan-progress__target .mono { overflow-wrap: anywhere; font-size: .75rem; }
.scan-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 1rem 0; padding: 0; list-style: none; }
.scan-steps li { display: grid; justify-items: start; gap: .4rem; color: var(--subtle); font-size: .62rem; line-height: 1.35; }
.scan-steps__marker { display: grid; width: 1.35rem; height: 1.35rem; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--subtle); font-size: .65rem; }
.scan-steps li.is-complete { color: var(--pass); }
.scan-steps li.is-complete .scan-steps__marker { border-color: var(--pass); background: #30d1581c; color: var(--pass); }
.scan-steps li.is-current { color: var(--text); }
.scan-steps li.is-current .scan-steps__marker { border-color: var(--progress-fill); background: #91aaff1c; color: var(--progress-fill); box-shadow: 0 0 12px #91aaff33; }
.scan-progress__note { margin: 0 0 .5rem; color: var(--muted); font-size: .7rem; }
.scan-progress__content > .small { margin: 0; }

.scan-form {
  max-width: 700px; margin: 1.25rem 0 .4rem; padding: .9rem;
  border: 1px solid var(--border); border-radius: 5px; background: var(--surface);
}
.scan-form label { display: block; margin: 0 0 .45rem; color: var(--text); font-size: .8rem; font-weight: 500; }
.scan-form__row { display: flex; gap: .55rem; }
.form-error { margin: .4rem 0 0; color: var(--fail); font-size: .76rem; line-height: 1.5; }
.scan-form input[type="url"], .scan-form input[type="text"] {
  flex: 1 1 300px; min-width: 0; padding: .7rem .8rem;
  border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text);
}
.scan-form input[type="url"]::placeholder, .scan-form input[type="text"]::placeholder { color: var(--subtle); }
.scan-form input[type="url"]:focus-visible, .scan-form input[type="text"]:focus-visible { outline-color: var(--muted); }
.scan-form input[type="submit"], .button {
  display: inline-block; padding: .62rem .85rem; border: 1px solid #646262; border-radius: 4px;
  background: var(--text); color: var(--bg); font-size: .82rem; font-weight: 500; cursor: pointer;
}
.scan-form input[type="submit"]:hover, .button:hover { background: #e9e7e7; color: var(--bg); text-decoration: none; }
.scan-form .hint { margin: .55rem 0 0; color: var(--muted); font-size: .72rem; }
.scan-form__pages { margin: .55rem 0 0; }
.scan-form__pages > summary { color: var(--muted); font-size: .72rem; cursor: pointer; }
.scan-form__pages > summary:hover { color: var(--text); }
.scan-form__pages label { margin-top: .45rem; color: var(--muted); font-size: .7rem; font-weight: 400; }
.scan-form textarea { width: 100%; min-height: 3.6rem; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text); font: inherit; font-size: .75rem; resize: vertical; }
.hint span { padding: 0 .25rem; color: var(--subtle); }
.button--primary { background: var(--text); color: var(--bg); }

.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin: 1.1rem auto 3.5rem; color: var(--muted); font-size: .75rem; }
.trust-strip span::before { content: "✓"; margin-right: .45rem; color: var(--pass); }
.section-block { margin: 0 auto 3.5rem; }
.section-heading { max-width: 650px; margin-bottom: 1.25rem; }
.section-heading h2, .split-section h2, .bottom-cta h2 { margin: .35rem 0 .6rem; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.section-heading .hero__lead { font-size: .85rem; }
.content-page { max-width: var(--max); margin-inline: auto; }
.content-page--message { max-width: 680px; }
.content-page__intro { max-width: 700px; margin-bottom: 1.8rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.content-page__intro h1 { margin: .1rem 0 .55rem; font-size: clamp(1.8rem, 4vw, 2.35rem); line-height: 1.25; }
.content-page__intro .hero__lead { margin-bottom: 0; font-size: .86rem; }
.content-page__section { margin-top: 1.6rem; }
.content-page__section + .content-page__section { padding-top: .15rem; border-top: 1px solid var(--border); }
.content-page__section h2 { margin: 1.15rem 0 .5rem; font-size: 1rem; }
.content-page__section h3 { margin: 1rem 0 .45rem; color: var(--muted); font-size: .82rem; }
.content-page__section p { max-width: 78ch; color: var(--muted); font-size: .82rem; line-height: 1.7; }
.content-page__section ul { max-width: 78ch; margin: .4rem 0 .8rem; padding-left: 1.2rem; color: var(--muted); font-size: .82rem; line-height: 1.7; }
.content-page__section li { margin: .22rem 0; }
.content-page__section code, .content-page__intro code { padding: .08rem .25rem; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); color: var(--text); font-size: .9em; }
.guide__body { max-width: 78ch; }
.guide__body h3 { color: var(--text); }
.guide__body a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.guide__body pre { overflow-x: auto; margin: .6rem 0 1rem; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); font-size: .76rem; line-height: 1.55; }
.guide__body pre:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.guide__body pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.guide__body .table-scroll { margin: .6rem 0 1rem; }
.guide__body .data-table code { white-space: nowrap; }
.guide-list { padding-left: 0 !important; list-style: none; }
.guide-list li + li { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.guide-list h2 { margin: 0 0 .3rem; font-size: 1rem; }
.guide-list h2 a { color: var(--text); }
.code-block { margin: .75rem 0 .95rem; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); font: .78rem/1.65 "IBM Plex Mono", ui-monospace, monospace; white-space: pre-wrap; overflow-x: auto; }
.code-block code { padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; }
.table-scroll:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.data-table th, .data-table td { padding: .55rem .65rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.data-table th { background: var(--surface); color: var(--muted); font-size: .69rem; font-weight: 500; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table--checks { min-width: 540px; }
.data-table--categories { border: 1px solid var(--border); border-radius: 6px; border-collapse: separate; border-spacing: 0; }
.data-table--categories .num { white-space: nowrap; }
.data-table--categories thead th:first-child { border-top-left-radius: 5px; }
.data-table--categories thead th:last-child { border-top-right-radius: 5px; }
.category-cell { position: relative; }
.category-name { display: inline-flex; align-items: center; gap: .35rem; }
.tooltip { position: static; display: inline-flex; align-items: center; border: 0; padding: 0; background: none; color: var(--muted); font: inherit; line-height: 1; cursor: help; }
.tooltip__icon { display: inline-grid; place-items: center; width: 1rem; height: 1rem; border: 1px solid var(--border); border-radius: 50%; font-size: .62rem; font-style: italic; font-weight: 600; line-height: 1; }
.tooltip:hover .tooltip__icon, .tooltip:focus .tooltip__icon { border-color: var(--text); color: var(--text); }
.tooltip:focus-visible { outline: none; }
.tooltip:focus-visible .tooltip__icon { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--text); }
.tooltip__bubble { display: none; position: absolute; top: calc(100% + .35rem); left: 0; z-index: 30; width: max-content; max-width: min(20rem, calc(100vw - 2rem)); padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); font-size: .72rem; font-weight: 400; line-height: 1.55; text-align: left; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); opacity: 0; transform: translateY(-.15rem); pointer-events: none; }
.tooltip:hover .tooltip__bubble, .tooltip:focus .tooltip__bubble { display: block; opacity: 1; transform: translateY(0); }
.tooltip--above .tooltip__bubble { top: auto; bottom: calc(100% + .35rem); }
@media (prefers-reduced-motion: reduce) { .tooltip__bubble { transition: none; } }
.report-page .data-table { margin-top: .35rem; }
.data-table--pages .mono, .data-table--pages .small { display: block; overflow-wrap: anywhere; }
.data-table--pages .num { white-space: nowrap; }
.audited-page-findings { margin: .6rem 0; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 4px; }
.audited-page-findings > summary { color: var(--text); font-size: .78rem; cursor: pointer; }
.audited-page-findings .check-list { margin-top: .35rem; }
.content-page--message > p { margin-top: 1rem; }
.content-page__intro .hero__lead + .hero__lead { margin-top: .6rem; }
.error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.2rem; }
.error-actions .text-link { margin-top: 0; }
.error-card { margin-top: 1.4rem; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.error-card strong { color: var(--text); font-weight: 500; }
.faq-list { display: grid; gap: .5rem; max-width: 760px; }
.faq-list details { border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.faq-list summary { padding: .6rem .8rem; color: var(--text); font-size: .82rem; cursor: pointer; }
.faq-list details > p { margin: 0; padding: 0 .8rem .7rem; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin: 1.3rem 0; }
.card, .feature-card { padding: 1rem; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.feature-card { min-height: 0; }
.feature-index { display: block; margin-bottom: 1.2rem; color: var(--muted); font-size: .72rem; }
.feature-card p { margin: .35rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2.5rem; padding: 2.2rem 0 3.3rem; border-top: 1px solid var(--border); }
.split-section > div:first-child { max-width: 460px; }
.split-section .hero__eyebrow, .bottom-cta .hero__eyebrow { margin-bottom: .45rem; }
.text-link { display: inline-block; margin-top: .5rem; color: var(--muted); font-size: .82rem; }
.text-link:hover { color: var(--text); }
.text-link span { margin-left: .2rem; }
.report-preview { padding: 1rem; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.preview-top { display: flex; align-items: center; gap: .55rem; padding-bottom: .8rem; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .72rem; }
.preview-dot { width: .38rem; height: .38rem; }
.preview-private { margin-left: auto; color: var(--pass); font-size: .65rem; }
.preview-score { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: .5rem; padding: 1rem 0 .7rem; }
.preview-score strong { grid-row: span 2; font-size: 2.35rem; line-height: 1; }
.preview-score > span, .preview-foot { color: var(--muted); font-size: .72rem; }
.preview-score b { color: var(--muted); font-size: .78rem; font-weight: 500; }
.preview-line { display: grid; grid-template-columns: 1fr minmax(60px, 1.2fr) 2rem; align-items: center; gap: .7rem; padding: .5rem 0; border-top: 1px solid var(--border); font-size: .72rem; }
.preview-line > b { text-align: right; font-weight: 500; }
.preview-track { max-width: none; min-width: 0; }
.preview-foot { margin: .7rem 0 0; font-size: .66rem; }
.bottom-cta { padding: 1.8rem 1rem; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); text-align: center; }
.bottom-cta .hero__eyebrow { justify-content: center; }
.bottom-cta p.muted { margin-bottom: .8rem; font-size: .82rem; }
.research-cta { margin-top: 1.8rem; }

.flash {
  display: flex; align-items: center; gap: .7rem; width: min(var(--max), calc(100% - 3rem)); min-height: 3.4rem;
  margin: .8rem auto 0; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: 5px;
  background: var(--surface); color: var(--text); line-height: 1.5;
}
.flash::before { content: "i"; display: grid; flex: 0 0 1.2rem; height: 1.2rem; place-items: center; border: 1px solid var(--muted); border-radius: 50%; color: var(--muted); font-size: .72rem; font-weight: 600; }
.flash--alert { border-color: #8c4540; background: #352321; color: #ffd7d4; }
.flash--alert::before { content: "!"; border-color: var(--fail); color: var(--fail); }

.report-page { max-width: var(--max); margin-inline: auto; }
.report-frame { display: block; }
.report-page h1 { margin: 0 0 .3rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.report-page h2 { margin: 1.5rem 0 .4rem; font-size: .95rem; }
.report-page h3 { margin: 1rem 0 .25rem; color: var(--muted); font-size: .82rem; }
.report-tabs { margin-top: 1.6rem; }
.report-tabs__list { display: none; gap: .25rem; margin-bottom: .85rem; border-bottom: 1px solid var(--border); }
.report-tabs[data-tabs-ready="true"] .report-tabs__list { display: flex; }
.report-tabs[data-tabs-ready="true"] .report-tabs__heading { display: none; }
.report-tabs__tab { padding: .45rem .75rem; border: 1px solid transparent; border-bottom: 0; border-radius: 4px 4px 0 0; background: none; color: var(--muted); font: inherit; font-size: .78rem; cursor: pointer; }
.report-tabs__tab:hover { color: var(--text); background: var(--surface); }
.report-tabs__tab[aria-selected="true"] { margin-bottom: -1px; border-color: var(--border); background: var(--surface); color: var(--text); font-weight: 500; box-shadow: inset 0 -2px 0 var(--text); }
.report-tabs__tab:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.report-tabs__meta { margin-left: .35rem; color: var(--subtle); font-size: .68rem; font-variant-numeric: tabular-nums; }
.report-tabs__panel { padding-top: .1rem; }
.agent-view__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .9rem; margin-bottom: .45rem; }
.agent-view__head h2 { margin: 0; }
.report-switch { display: none; align-items: center; gap: .15rem; padding: .15rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.agent-view[data-tabs-ready="true"] .report-switch { display: inline-flex; }
.agent-view[data-tabs-ready="true"] .report-tabs__heading { display: none; }
.report-switch__tab { padding: .3rem .55rem; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: .72rem; line-height: 1.2; white-space: nowrap; cursor: pointer; }
.report-switch__tab:hover { color: var(--text); }
.report-switch__tab[aria-selected="true"] { background: var(--surface-raised); color: var(--text); }
.report-switch__tab:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.report-switch__meta { margin-left: .25rem; color: var(--subtle); font-size: .66rem; font-variant-numeric: tabular-nums; }
.report-switch__tab[aria-selected="true"] .report-switch__meta { color: var(--muted); }
.agent-text--markdown { background: var(--surface); }
.report-tabs__panel:focus-visible { outline: none; }
.report-head { margin-bottom: .85rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.report-head__identity { min-width: 0; }
.report-head__url { margin: .1rem 0 .45rem; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.report-head__result { display: flex; align-items: flex-start; gap: 1rem; margin-top: .55rem; }
.report-head__result-copy { flex: 1 1 auto; min-width: 0; }
.report-screenshots { max-width: 800px; margin: 1rem 0 1.3rem; }
.report-screenshots__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .8rem; margin-bottom: .45rem; }
.report-screenshots__head h2 { margin: 0; }
.report-screenshots__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin: 0; padding: 0; list-style: none; }
.report-screenshots__tile { display: block; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); text-decoration: none; overflow: hidden; }
.report-screenshots__tile:hover { border-color: var(--muted); color: var(--text); }
.report-screenshots__tile:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.report-screenshots__tile img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; background: var(--bg); }
.report-screenshots__label { display: flex; align-items: center; justify-content: space-between; gap: .3rem; padding: .35rem .45rem; font-size: .68rem; }
.grade-range { display: inline-block; margin-left: .25rem; padding: .08rem .35rem; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); font-size: .68rem; }
.report-grade-hint { margin: .15rem 0 .45rem; max-width: 48ch; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.grade-scale { margin: .2rem 0 .5rem; color: var(--muted); font-size: .76rem; }
.grade-scale summary { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; cursor: pointer; list-style: none; }
.grade-scale summary::-webkit-details-marker { display: none; }
.grade-scale summary::before { content: "▸"; color: var(--subtle); font-size: .85em; }
.grade-scale[open] summary::before { content: "▾"; }
.grade-scale summary:hover { color: var(--text); }
.grade-scale dl { display: grid; gap: .35rem; margin: .5rem 0; }
.grade-scale dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; }
.grade-scale dt { color: var(--text); }
.grade-scale dt span { color: var(--muted); }
.grade-scale dd { margin: 0; }
.grade-scale > p { margin: .1rem 0 0; }
.meta-tooltip { display: inline-flex; align-items: center; gap: .2rem; }
.meta-tooltip .tooltip { position: relative; }
.meta-tooltip .tooltip__bubble {
  left: 50%; width: min(22rem, calc(100vw - 9rem)); max-width: calc(100vw - 9rem);
  transform: translate(-50%, -.15rem);
}
.meta-tooltip .tooltip:hover .tooltip__bubble,
.meta-tooltip .tooltip:focus .tooltip__bubble { transform: translate(-50%, 0); }
@media (max-width: 360px) {
  .meta-tooltip .tooltip__bubble {
    position: fixed; top: auto; right: 1rem; bottom: 1rem; left: 1rem;
    width: auto; max-width: none; transform: translateY(.35rem);
  }
  .meta-tooltip .tooltip:hover .tooltip__bubble,
  .meta-tooltip .tooltip:focus .tooltip__bubble { transform: translateY(0); }
}
.report-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .8rem; margin-top: .75rem; }
.report-head__actions a { font-size: .78rem; }
.report-head__actions .button { padding: .5rem .7rem; }
.score-ring { flex: 0 0 92px; width: 92px; height: 92px; }
.score-ring__track { fill: none; stroke: var(--surface-raised); stroke-width: 8; }
.score-ring__value { fill: none; stroke: var(--muted); stroke-width: 8; stroke-linecap: round; }
.score-ring--a .score-ring__value { stroke: var(--pass); }
.score-ring--c .score-ring__value { stroke: var(--warn); }
.score-ring--d .score-ring__value, .score-ring--e .score-ring__value, .score-ring--f .score-ring__value { stroke: var(--fail); }
.score-ring__score { fill: var(--text); font-size: 28px; font-weight: 600; }
.score-ring__grade { fill: var(--muted); font-size: 14px; font-weight: 500; }
.notice { margin: .7rem 0; padding: .75rem .9rem; border: 1px solid var(--border); border-left: 3px solid var(--warn); border-radius: 4px; background: var(--surface); }
.notice--info { border-left-color: var(--muted); }
.notice a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.notice--fail { border-color: #713b36; border-left-color: var(--fail); background: #30211f; }
.performance-snapshot { margin: 1.25rem 0 1.5rem; }
.performance-snapshot > h2 { margin-bottom: .25rem; }
.performance-snapshot > p { margin-bottom: .55rem; }
.performance-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .5rem; margin: 0; }
.performance-metric { display: grid; justify-items: start; gap: .28rem; min-height: 78px; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.performance-metric dt { color: var(--muted); font-size: .7rem; }
.performance-metric dd { margin: 0; font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.performance-snapshot__score { color: var(--muted); font-size: .8rem; font-weight: 500; }
.performance-metric__detail { color: var(--subtle); font-size: .67rem; line-height: 1.35; overflow-wrap: anywhere; }
.performance-metric__threshold { margin: .05rem 0 0; color: var(--subtle); font-size: .64rem; line-height: 1.45; }
.performance-metric__explanation { margin: .1rem 0 0; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.performance-resources { margin-top: .9rem; }
.performance-resources h3 { margin-bottom: .2rem; font-size: .82rem; }
.performance-resources > p { margin-bottom: .45rem; }
.resource-list { margin: 0; padding: 0; list-style: none; font-size: .75rem; }
.resource-list > li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .55rem; padding: .32rem 0; border-bottom: 1px solid var(--border); }
.resource-list__type { color: var(--subtle); text-transform: uppercase; letter-spacing: .04em; }
.resource-list__url { flex: 1 1 220px; color: var(--muted); overflow-wrap: anywhere; }
.resource-list__bytes { color: var(--text); font-variant-numeric: tabular-nums; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.bar { display: block; width: 100%; max-width: 250px; height: 7px; min-width: 80px; appearance: none; border: 0; border-radius: 2px; background: var(--progress-track); }
.bar::-webkit-progress-bar { border-radius: 2px; background: var(--progress-track); }
.bar::-webkit-progress-value { border-radius: 2px; background: var(--progress-fill); }
.bar::-moz-progress-bar { border-radius: 2px; background: var(--progress-fill); }
.badge { display: inline-block; padding: .08rem .35rem; border: 1px solid currentColor; border-radius: 3px; font-size: .67rem; font-weight: 600; white-space: nowrap; }
.badge--pass { color: var(--pass); }
.badge--warn { color: var(--warn); }
.badge--fail, .badge--error { color: var(--fail); }
.badge--na, .badge--blocked { color: var(--muted); }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list > li { padding: .62rem 0; border-bottom: 1px solid var(--border); }
.check-list > li[id^="check-"] { scroll-margin-top: 1.25rem; }
.check-list > li[id^="check-"]:target { outline: 1px solid var(--progress-fill); outline-offset: 4px; border-radius: 4px; }
.check-list__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .5rem; }
.check-list__head strong { font-size: .82rem; font-weight: 600; }
.check-list__key { color: var(--subtle); font-size: .67rem; }
.check-list__head .small { color: var(--subtle); font-size: .67rem; }
.check-list p { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.check-list details { margin-top: .22rem; }
.evidence-toggle { display: inline-flex; align-items: baseline; gap: .45rem; color: var(--muted); cursor: pointer; font-size: .75rem; }
.evidence-toggle:hover { color: var(--text); }
.evidence-toggle__hint { color: var(--subtle); font-size: .67rem; }
.check-guidance { border-left: 2px solid var(--subtle); padding-left: .75rem; }
.check-guidance a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.evidence-note { margin: .45rem 0 .55rem; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.evidence-list { display: grid; gap: .2rem; margin: .3rem 0 0; }
.evidence-row { display: grid; grid-template-columns: minmax(140px, .35fr) 1fr; gap: .2rem .8rem; padding: .28rem 0; border-bottom: 1px solid var(--border); font-size: .74rem; }
.evidence-row:last-child { border-bottom: 0; }
.evidence-row dt { color: var(--muted); }
.evidence-row dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.evidence-values { margin: 0; padding-left: 1rem; }
.evidence-values li { margin: .08rem 0; }
.evidence-raw { margin-top: .5rem; }
.evidence-raw > summary { color: var(--subtle); font-size: .7rem; cursor: pointer; }
.check-list details pre, .report-page pre { max-height: 280px; overflow: auto; margin: .3rem 0 0; padding: .7rem; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); font: .72rem/1.5 "IBM Plex Mono", ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-page .agent-text { max-height: 280px; margin: .55rem 0; }
.report-page .screenshot { margin: .6rem 0 0; }
.report-page .screenshot img { display: block; width: 100%; max-height: 560px; object-fit: contain; object-position: top; border: 1px solid var(--border); border-radius: 4px; }
.screenshot figcaption { margin-top: .3rem; color: var(--muted); font-size: .7rem; }
.report-page > ul:not(.check-list) { margin: .3rem 0 .7rem; padding-left: 1.2rem; }
.report-page > ul:not(.check-list) li { margin: .3rem 0; }
.report-page > .small.muted:last-child { margin-top: 1.4rem; padding-top: .65rem; border-top: 1px solid var(--border); }

@media (max-width: 720px) {
  .site-header, .site-main, .site-footer { width: min(var(--max), calc(100% - 2rem)); }
  .site-main { padding-top: 1.8rem; }
  .split-section { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.5rem 0 2.2rem; }
  .hero--home { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .hero--home .scan-form { margin-top: .2rem; }
  .scan-progress { grid-template-columns: 1fr; gap: .5rem; }
  .scan-progress__visual { min-height: 180px; }
  .scan-window { width: min(100%, 280px); }
  .feature-card { min-height: 0; }
  .feature-index { margin-bottom: .7rem; }
}
@media (max-width: 560px) {
  .evidence-row { grid-template-columns: 1fr; gap: .05rem; }
  .evidence-row dt { font-size: .68rem; }
  .site-nav { gap: .7rem; font-size: .72rem; }
  .hero--home h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .scan-form__row { flex-direction: column; }
  .scan-form input[type="url"], .scan-form input[type="text"] { flex: 1 1 auto; }
  .scan-form input[type="submit"] { width: 100%; }
  .trust-strip { justify-content: flex-start; margin-bottom: 2.6rem; }
  .report-head__result { flex-direction: column; gap: .45rem; }
  .report-head__result-copy { width: 100%; }
  .report-screenshots { margin: .8rem 0 1.1rem; }
  .report-screenshots__grid { gap: .35rem; }
  .report-screenshots__label { padding: .25rem .3rem; font-size: .6rem; }
  .scan-steps { gap: .25rem; }
  .scan-steps li { font-size: .58rem; }
  .score-ring { flex-basis: 76px; width: 76px; height: 76px; }
  .report-head__actions { gap: .45rem .7rem; margin-top: .55rem; }
  .report-page .data-table { font-size: .7rem; }
  .report-page .data-table th, .report-page .data-table td { padding: .35rem .25rem; }
  .grade-scale dl > div { grid-template-columns: 1fr; gap: .1rem; }
  .table-scroll {
    background:
      linear-gradient(to right, var(--surface) 40%, transparent) left center / 1.6rem 100% no-repeat local,
      linear-gradient(to left, var(--surface) 40%, transparent) right center / 1.6rem 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, #00000059, transparent) left center / .55rem 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, #00000059, transparent) right center / .55rem 100% no-repeat scroll;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
@media print {
  :root {
    color-scheme: light;
    --bg: #fff; --surface: #fff; --surface-raised: #ededed; --border: #c4c2c2;
    --text: #141212; --muted: #454040; --subtle: #6a6666; --accent: #454040;
    --progress-track: #e2e0e0; --progress-fill: #3d5afe;
    --pass: #137333; --warn: #8a5200; --fail: #b3261e;
  }
  .site-header, .site-footer, .report-head__actions, .scan-form, .flash { display: none; }
  html, body { background: #fff; color: #111; }
  .card, .notice, pre, .report-head { border-color: #ccc; background: #fff; color: #111; }
  .notice--fail { border-color: #b3261e; background: #fff; }
  .table-scroll { border-color: #ccc; background: #fff; }
  .report-screenshots__tile, .report-screenshots__tile img { border-color: #ccc; }
  .report-screenshots__label span { display: none; }
  .report-page pre, .check-list details pre, .report-page .agent-text {
    max-height: none; overflow: visible; break-inside: avoid;
  }
  .report-page .screenshot img { max-height: 420px; border-color: #ccc; }
  .check-list > li { break-inside: avoid; }
  .report-page h2, .report-page h3 { break-after: avoid; }
  .evidence-toggle__hint { display: none; }
  a { color: #111; }
  .report-tabs__list, .report-switch { display: none !important; }
  .report-tabs__heading { display: block !important; }
  .report-tabs__panel[hidden] { display: block !important; }
}

/* Research reports */
.research-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin: .6rem 0 0; }
.research-stats div { padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.research-stats dt { color: var(--muted); font-size: .74rem; }
.research-stats dd { margin: .2rem 0 0; color: var(--text); font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.research-stats dd span { margin-left: .1rem; color: var(--subtle); font-size: .8rem; font-weight: 400; }
.research-findings { display: grid; gap: .6rem; padding-left: 1.1rem; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.research-findings strong { color: var(--text); }
.research .content-page__section a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.research ul:not(.research-findings) { color: var(--muted); font-size: .82rem; line-height: 1.65; }
.histogram { margin: 1rem 0; }
.histogram figcaption { margin-bottom: .5rem; color: var(--muted); font-size: .78rem; }
.histogram__chart { display: block; width: 100%; height: auto; max-width: 640px; }
.histogram__bar { fill: var(--progress-fill); }
.histogram__grid { stroke: var(--border); stroke-width: 1; }
.histogram__tick, .histogram__value { fill: var(--subtle); font: 11px "IBM Plex Mono", ui-monospace, monospace; }
.histogram__value { fill: var(--muted); }
.histogram details { margin-top: .5rem; color: var(--muted); font-size: .78rem; }
.agent-path { margin: 1rem 0; }
.agent-path figcaption { margin-bottom: .5rem; color: var(--muted); font-size: .78rem; }
.agent-path__chart { display: block; width: 100%; height: auto; max-width: 720px; }
.agent-path__box { fill: var(--surface); stroke: var(--border); stroke-width: 1; }
.agent-path__box--end { stroke: var(--progress-fill); }
.agent-path__label { fill: var(--text); font: 600 13px "IBM Plex Mono", ui-monospace, monospace; }
.agent-path__detail { fill: var(--muted); font: 12px "IBM Plex Mono", ui-monospace, monospace; }
.agent-path__arrow { stroke: var(--subtle); stroke-width: 1.5; }
.agent-path__arrow-head { fill: var(--subtle); }
.research .research-practice-nav { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .5rem 0 .9rem; padding: 0; list-style: none; font-size: .78rem; }
.research .research-practice-nav a { color: var(--muted); }
.data-table--practices td { vertical-align: top; }
.data-table--practices td p { margin: .3rem 0 0; max-width: 70ch; line-height: 1.55; }
.data-table--practices td p a { color: var(--text); }
