/* Pikkola Speed & Search Studio.
   A measurement sheet: cool paper, hairline rules, a signal green for what is
   healthy, chartreuse for the marks, monospace for anything that came off the
   wire. Weights stay at 400, 500, 600 and 700. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/inter.woff2) format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/jetbrains-mono.woff2) format("woff2");
}

:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --r: 12px;
  --r-sm: 6px;
}

html[lang="ko"] {
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  word-break: keep-all;
}
html[lang="ja"] {
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  word-break: normal;
}
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] p,
html[lang="ja"] li,
html[lang="ja"] summary,
html[lang="ja"] .finding-detail { word-break: auto-phrase; line-break: strict; overflow-wrap: break-word; }
html[lang="ja"] .hero h1 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
html[lang="ko"] .hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.85rem); }
html[lang="ko"] .section-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }

html[data-theme="light"] {
  --bg: #f3f5f2;
  --bg-2: #eaeee7;
  --surface: #fdfefb;
  --surface-2: #f5f8f2;
  --ink: #11171a;
  --ink-2: #3c4643;
  --ink-3: #6b7672;
  --line: #d9dfd6;
  --line-2: #c2cbc0;
  --accent: #0d6b4d;
  --accent-ink: #f3fdf7;
  --accent-soft: #dcefe4;
  --marker: #d8ef8a;
  --marker-ink: #23310a;
  --pass: #256a4b;
  --pass-soft: #e1efe7;
  --warn: #8a5a0d;
  --warn-soft: #f7edd6;
  --fail: #a13221;
  --fail-soft: #f8e4de;
  --code-bg: #101714;
  --code-ink: #dde8da;
  --code-dim: #8ca191;
  --code-line: #26332b;
  --shadow: 0 1px 2px rgba(17, 23, 26, .05), 0 26px 60px -46px rgba(17, 23, 26, .5);
  --grid: rgba(17, 23, 26, .045);
}

html[data-theme="dark"] {
  --bg: #0b100f;
  --bg-2: #0f1614;
  --surface: #121a18;
  --surface-2: #0f1614;
  --ink: #e7eee6;
  --ink-2: #b2beb2;
  --ink-3: #849087;
  --line: #24302b;
  --line-2: #33413a;
  --accent: #6fd3a4;
  --accent-ink: #08130d;
  --accent-soft: #122720;
  --marker: #cee97a;
  --marker-ink: #1b2408;
  --pass: #6fd3a4;
  --pass-soft: #12251d;
  --warn: #e0b263;
  --warn-soft: #2a2213;
  --fail: #ef9078;
  --fail-soft: #2c1714;
  --code-bg: #070c0a;
  --code-ink: #d8e4d6;
  --code-dim: #7d9184;
  --code-line: #1d2823;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 30px 70px -50px rgba(0, 0, 0, .9);
  --grid: rgba(231, 238, 230, .05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.022em; line-height: 1.16; color: var(--ink); }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }
img, svg { display: block; max-width: 100%; }
code, pre, .mono { font-family: var(--mono); font-variant-ligatures: none; }

.mono { font-family: var(--mono); font-weight: 500; letter-spacing: -0.01em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(140%);
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: 66px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  text-decoration: none; color: var(--ink);
  padding: 4px 0;
}
.brand-mark { width: 26px; height: 26px; align-self: center; color: var(--accent); flex: none; }
.brand-name { font-weight: 700; letter-spacing: -0.02em; font-size: 1.02rem; }
.brand-tool {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em;
  color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 3px;
  padding: 1px 4px; transform: translateY(-1px);
}
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a {
  font-size: .86rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-field { position: relative; display: inline-flex; align-items: center; }
.lang-globe { width: 15px; height: 15px; color: var(--ink-3); position: absolute; left: 9px; pointer-events: none; }
.lang-field select {
  appearance: none; background: transparent; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 5px 24px 5px 28px; font-family: var(--mono); font-size: .74rem;
  cursor: pointer;
}
.lang-field select:hover { border-color: var(--accent); color: var(--ink); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: transparent; cursor: pointer; color: var(--ink-2);
}
.icon-btn:hover { border-color: var(--accent); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
html[data-theme="light"] .ico-sun { display: none; }
html[data-theme="dark"] .ico-moon { display: none; }

/* --------------------------------------------------------------- hero */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .92fr);
  gap: 54px; align-items: start;
  padding-top: 68px; padding-bottom: 34px;
}
.eyebrow {
  display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border-left: 2px solid var(--marker); padding-left: 9px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.15rem, 4.1vw, 3.15rem); line-height: 1.08; letter-spacing: -0.032em;
  max-width: 16ch;
}
.hero-lede { margin-top: 20px; max-width: 52ch; color: var(--ink-2); font-size: 1.01rem; line-height: 1.7; }

.audit-form { margin-top: 30px; }
.field-row {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow);
  padding: 5px; overflow: hidden;
}
.field-prefix {
  display: flex; align-items: center; padding: 0 4px 0 12px;
  color: var(--ink-3); font-size: .82rem; border-right: 1px solid var(--line);
  margin-right: 2px;
}
#urlInput {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font-family: var(--mono); font-size: .92rem; padding: 12px 12px;
}
#urlInput::placeholder { color: var(--ink-3); opacity: .8; }
#urlInput:focus { outline: none; }
.field-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: var(--r-sm);
  padding: 11px 22px; font-weight: 600; font-size: .9rem; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .62; cursor: progress; }
.audit-hint { margin-top: 10px; font-size: .78rem; color: var(--ink-3); }
.try-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.try-label { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-right: 2px; }
.chip {
  border: 1px solid var(--line-2); background: transparent; border-radius: 999px;
  padding: 4px 11px; font-size: .74rem; color: var(--ink-2); cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--ink); background: var(--surface); }

.facts { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.facts dd { font-size: .78rem; color: var(--ink-3); }

/* ------------------------------------------------------------- plate */

.plate {
  margin: 0; border: 1px solid var(--line); border-radius: var(--r);
  background:
    linear-gradient(var(--surface), var(--surface)),
    repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 24px);
  background-blend-mode: normal, multiply, multiply;
  box-shadow: var(--shadow); overflow: hidden;
  margin-top: 8px;
}
html[data-theme="dark"] .plate { background-blend-mode: normal, screen, screen; }
.plate-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-size: .72rem; color: var(--ink-3); background: var(--surface-2);
}
.plate-body { padding: 22px 18px 18px; }
.gauges { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.gauge { position: relative; text-align: center; }
.gauge-svg { width: 100%; max-width: 150px; margin: 0 auto; overflow: visible; }
.gauge-track { fill: none; stroke: var(--line); stroke-width: 9; stroke-linecap: round; }
.gauge-arc { fill: none; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 176; }
.gauge-arc-seo { stroke: var(--pass); stroke-dashoffset: 30; }
.gauge-arc-spd { stroke: var(--warn); stroke-dashoffset: 84; }
.gauge-value {
  display: block; margin-top: -34px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.04em;
}
.gauge-label { display: block; margin-top: 6px; font-size: .62rem; letter-spacing: .16em; color: var(--ink-3); }
.gauge-overall {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 58px; height: 74px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface-2);
}
.gauge-grade { font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--accent); }
.gauge-total { font-size: .66rem; color: var(--ink-3); margin-top: 4px; }

.ruler { margin-top: 26px; }
.ruler-line { position: relative; height: 8px; border-radius: 99px; background: var(--bg-2); overflow: visible; }
.ruler-fill {
  position: absolute; inset: 0 auto 0 0; width: 57%; border-radius: 99px;
  background: linear-gradient(90deg, var(--pass), var(--marker) 62%, var(--warn));
  opacity: .85;
}
.ruler-needle {
  position: absolute; top: -5px; left: 57%; width: 2px; height: 18px; background: var(--ink);
  transform: translateX(-1px);
}
.ruler-needle::after {
  content: ""; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--ink);
}
.ruler-ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: .6rem; color: var(--ink-3); }
.ruler-caption { margin-top: 6px; font-size: .64rem; color: var(--ink-3); letter-spacing: .02em; }

.plate-list { margin-top: 20px; display: grid; gap: 7px; font-size: .72rem; color: var(--ink-2); }
.plate-list li { display: flex; align-items: center; gap: 9px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--ink-3); }
.dot.pass { background: var(--pass); }
.dot.warn { background: var(--warn); border-radius: 1px; }
.dot.fail { background: var(--fail); }

/* ------------------------------------------------------------ report */

.report { padding-top: 8px; padding-bottom: 26px; }
.report-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px 0; margin-bottom: 22px; flex-wrap: wrap;
}
.report-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.report-label { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.report-url {
  font-size: .82rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62ch;
}
.report-stamp { font-size: .68rem; color: var(--ink-3); }

.scoreboard {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  overflow: hidden;
}
.score-cell { padding: 22px 24px; border-right: 1px solid var(--line); }
.score-cell:last-child { border-right: 0; }
.score-key { display: block; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.score-row { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.score-num { font-size: 2.9rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.score-of { font-size: .68rem; color: var(--ink-3); }
.score-meter { position: relative; height: 4px; margin-top: 14px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.score-meter span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.score-meter .m-seo { background: var(--pass); }
.score-meter .m-spd { background: var(--warn); }
.score-meter .m-all { background: var(--accent); }
.score-cell.overall .score-num { color: var(--accent); }
.score-grade { font-size: .8rem; color: var(--ink-2); margin-left: 2px; }
.score-line { margin-top: 14px; font-size: .86rem; color: var(--ink-2); line-height: 1.6; }
.tally { display: flex; gap: 14px; margin-top: 12px; font-size: .72rem; color: var(--ink-3); }
.tally span { display: inline-flex; align-items: center; gap: 6px; }

.fact-strip {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r); margin-top: 14px;
  background: var(--surface-2); overflow: hidden;
}
.fact-strip div { padding: 12px 18px; border-right: 1px solid var(--line); flex: 1 1 120px; }
.fact-strip div:last-child { border-right: 0; }
.fact-strip dt { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.fact-strip dd { font-family: var(--mono); font-size: .88rem; margin-top: 3px; }

.report-timing { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 14px; background: var(--surface); }
.timing-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.timing-title { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.timing-value { font-family: var(--mono); font-size: .84rem; }
.timing-track { position: relative; height: 6px; margin-top: 16px; border-radius: 99px; background: var(--bg-2); }
.timing-fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--pass), var(--marker)); }
.timing-needle { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--ink); }
.timing-scale { display: flex; justify-content: space-between; margin-top: 7px; font-family: var(--mono); font-size: .58rem; color: var(--ink-3); }

.findings { margin-top: 30px; }
.findings-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.findings-head h3 { font-size: 1.18rem; }
.group { margin-top: 18px; }
.group-title {
  display: flex; align-items: center; gap: 10px; font-family: var(--mono);
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 8px;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.finding {
  display: grid; grid-template-columns: 14px minmax(120px, 190px) minmax(0, 1fr) auto;
  gap: 12px; align-items: baseline; padding: 9px 2px;
  border-bottom: 1px solid var(--line); font-size: .87rem;
}
.finding:first-of-type { border-top: 1px solid var(--line); }
.finding-label { font-weight: 600; color: var(--ink); }
.finding-detail { color: var(--ink-2); font-size: .81rem; overflow-wrap: anywhere; }
.finding-weight { font-family: var(--mono); font-size: .64rem; color: var(--ink-3); }
.finding .dot { align-self: center; }

.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.panel-head h3 { font-size: .95rem; }
.panel-head .mono { font-size: .62rem; color: var(--ink-3); letter-spacing: .1em; }
.panel-body { padding: 4px 18px 10px; }
.row { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.row:last-child { border-bottom: 0; }
.row dt { color: var(--ink-3); font-size: .74rem; }
.row dd { color: var(--ink); overflow-wrap: anywhere; }
.row dd .dim { color: var(--ink-3); }
.row .trunc { display: block; color: var(--ink-2); font-size: .78rem; }
.pill {
  display: inline-block; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px; border: 1px solid transparent; font-weight: 600;
}
.pill.pass { color: var(--pass); background: var(--pass-soft); border-color: color-mix(in srgb, var(--pass) 26%, transparent); }
.pill.warn { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 26%, transparent); }
.pill.fail { color: var(--fail); background: var(--fail-soft); border-color: color-mix(in srgb, var(--fail) 26%, transparent); }

/* ------------------------------------------------------------- crawl */

.crawl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.crawl-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.crawl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.crawl-card-head h3 { font-family: var(--mono); font-size: .84rem; font-weight: 600; }
.crawl-card-body { padding: 14px 18px 16px; }
.crawl-facts { display: grid; gap: 6px; font-size: .8rem; color: var(--ink-2); margin-top: 10px; }
.crawl-facts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--line-2); padding-bottom: 5px; }
.crawl-facts li span:last-child { font-family: var(--mono); font-size: .76rem; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.crawl-url { display: block; font-family: var(--mono); font-size: .72rem; color: var(--ink-3); overflow-wrap: anywhere; }

.snips { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.snips-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.snips-head h3 { font-size: .92rem; }
.snip-tabs { display: flex; gap: 4px; margin-left: auto; }
.snip-tab {
  background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  padding: 5px 10px; font-family: var(--mono); font-size: .7rem; color: var(--ink-3); cursor: pointer;
}
.snip-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.snip-body { position: relative; }
.code-block { margin: 0; background: var(--code-bg); color: var(--code-ink); padding: 16px 18px; overflow-x: auto; font-size: .78rem; line-height: 1.65; }
.code-block code { white-space: pre; }
.c-com { color: var(--code-dim); }
.copy-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: color-mix(in srgb, var(--code-ink) 12%, transparent);
  color: var(--code-ink); border: 1px solid color-mix(in srgb, var(--code-ink) 26%, transparent);
  border-radius: var(--r-sm); padding: 4px 10px; font-family: var(--mono); font-size: .66rem; cursor: pointer;
}
.copy-btn:hover { background: color-mix(in srgb, var(--code-ink) 22%, transparent); }
.snip-note { padding: 10px 18px 14px; font-size: .74rem; color: var(--ink-3); border-top: 1px solid var(--line); }

.crawl-preview { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; max-width: 720px; }
.crawl-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.crawl-preview-host { font-size: .7rem; color: var(--ink-3); }
.crawl-preview-foot { padding: 10px 16px; font-size: .72rem; color: var(--ink-3); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------- sections */

.section { padding-top: 54px; padding-bottom: 10px; }
.section-head { display: flex; align-items: baseline; gap: 16px; }
.section-num {
  font-size: .72rem; letter-spacing: .1em; color: var(--accent);
  border-top: 2px solid var(--accent); padding-top: 7px; flex: none;
}
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 26ch; }
.section-lede { margin-top: 16px; max-width: 66ch; color: var(--ink-2); font-size: .98rem; line-height: 1.72; }

.card-grid { display: grid; gap: 14px; margin-top: 24px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card {
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px;
  background: var(--surface);
}
.card-index {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; background: var(--marker); color: var(--marker-ink);
  font-size: .72rem; font-weight: 700;
}
.info-card h3 { margin-top: 12px; font-size: 1.02rem; }
.info-card p { margin-top: 8px; font-size: .86rem; color: var(--ink-2); line-height: 1.68; }

/* watch */
.watch-section { padding-top: 64px; }
.watch-card {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr);
  gap: 34px; align-items: center;
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 32px; background:
    linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
}
.watch-tag { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.watch-copy h2 { margin-top: 10px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); max-width: 24ch; }
.watch-copy p { margin-top: 12px; font-size: .9rem; color: var(--ink-2); max-width: 56ch; }
.watch-points { margin-top: 16px; display: grid; gap: 6px; font-size: .84rem; color: var(--ink-2); }
.watch-points li { position: relative; padding-left: 16px; }
.watch-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 1px; background: var(--marker); }
.watch-buy { border-left: 1px solid var(--line); padding-left: 30px; }
.watch-price { display: flex; align-items: baseline; gap: 8px; }
.watch-price-main { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.04em; }
.watch-price-alt { font-size: .74rem; color: var(--ink-3); margin-top: 2px; }
.watch-buy .btn { width: 100%; margin-top: 16px; }
.watch-fine { margin-top: 10px; font-size: .72rem; color: var(--ink-3); }

/* method */
.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 34px; margin-top: 26px; }
.method-item { border-top: 1px solid var(--line); padding-top: 14px; }
.method-item h3 { font-size: .99rem; }
.method-item p { margin-top: 7px; font-size: .86rem; color: var(--ink-2); line-height: 1.68; }

/* faq */
.faq-list { margin-top: 22px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; padding: 15px 30px 15px 0; font-weight: 600; font-size: .95rem;
  position: relative; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  font-family: var(--mono); font-size: 1rem; color: var(--accent);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 0 16px; font-size: .88rem; color: var(--ink-2); max-width: 78ch; line-height: 1.72; }

/* related */
.related-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.related-link {
  display: block; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; background: var(--surface); transition: border-color .12s ease, transform .12s ease;
}
.related-link:hover { border-color: var(--accent); transform: translateY(-1px); }
.related-tag { font-size: .62rem; color: var(--ink-3); letter-spacing: .12em; }
.related-title { display: block; margin-top: 6px; font-weight: 600; font-size: .96rem; }
.related-body { display: block; margin-top: 6px; font-size: .8rem; color: var(--ink-2); line-height: 1.6; }

/* ------------------------------------------------------------- footer */

.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 14px 30px; padding-top: 28px; padding-bottom: 34px; align-items: start; }
.footer-name { font-size: .76rem; color: var(--ink-2); display: block; }
.footer-lab { font-size: .66rem; color: var(--ink-3); letter-spacing: .12em; display: block; margin-top: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: .8rem; }
.footer-nav a { color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-note { grid-column: 1 / -1; font-size: .74rem; color: var(--ink-3); }

/* --------------------------------------------------------- report bits */

.loading-card {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  padding: 28px; display: flex; align-items: center; gap: 18px;
}
.spinner {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 2px solid var(--line-2); border-top-color: var(--accent);
  animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title { font-weight: 600; font-size: .95rem; }
.loading-note { font-size: .78rem; color: var(--ink-3); margin-top: 3px; }
.loading-steps { display: flex; gap: 6px; margin-top: 12px; }
.loading-steps span { height: 3px; flex: 1; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.loading-steps span::after {
  content: ""; display: block; height: 100%; width: 0; background: var(--accent);
  animation: fill 3.6s ease-in-out infinite;
}
.loading-steps span:nth-child(2)::after { animation-delay: .9s; }
.loading-steps span:nth-child(3)::after { animation-delay: 1.8s; }
@keyframes fill { 0% { width: 0; } 60% { width: 100%; } 100% { width: 100%; } }

.error-card { border: 1px solid color-mix(in srgb, var(--fail) 38%, var(--line)); border-radius: var(--r); background: var(--fail-soft); padding: 22px 24px; }
.error-card h3 { font-size: 1rem; color: var(--fail); }
.error-card p { margin-top: 8px; font-size: .88rem; color: var(--ink-2); max-width: 62ch; }
.error-card .mono { font-size: .7rem; color: var(--ink-3); margin-top: 8px; display: block; }

.chain { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.chain-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: .78rem; align-items: baseline; }
.chain-row:last-child { border-bottom: 0; }
.chain-status { font-family: var(--mono); font-size: .74rem; font-weight: 600; }
.chain-url { font-family: var(--mono); font-size: .72rem; color: var(--ink-2); overflow-wrap: anywhere; }
.chain-ms { font-family: var(--mono); font-size: .7rem; color: var(--ink-3); }
.chain-row.s-pass .chain-status { color: var(--pass); }
.chain-row.s-warn .chain-status { color: var(--warn); }
.chain-row.s-fail .chain-status { color: var(--fail); }

.report-section-title {
  margin-top: 40px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2);
  font-size: 1.02rem; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.report-section-title .mono { font-size: .62rem; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 44px; }
  .hero h1 { max-width: 22ch; }
  .plate { max-width: 560px; }
  .card-grid.three { grid-template-columns: minmax(0, 1fr); }
  .panels { grid-template-columns: minmax(0, 1fr); }
  .crawl-grid { grid-template-columns: minmax(0, 1fr); }
  .related-row { grid-template-columns: minmax(0, 1fr); }
  .watch-card { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 26px; }
  .watch-buy { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
  .watch-buy .btn { width: auto; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .header-inner { gap: 12px; min-height: 60px; }
  .site-nav { display: none; }
  .brand-name { font-size: .96rem; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-lede { font-size: .95rem; }
  .field-row { flex-wrap: wrap; padding: 6px; }
  .field-prefix { display: none; }
  #urlInput { flex: 1 1 100%; padding: 10px 10px; border-bottom: 1px solid var(--line); }
  .btn { flex: 1 1 100%; }
  .facts { gap: 22px; }
  .scoreboard { grid-template-columns: minmax(0, 1fr); }
  .score-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .score-cell:last-child { border-bottom: 0; }
  .score-num { font-size: 2.4rem; }
  .finding { grid-template-columns: 12px minmax(0, 1fr); row-gap: 2px; }
  .finding-detail { grid-column: 2; }
  .finding-weight { grid-column: 2; }
  .row { grid-template-columns: 96px minmax(0, 1fr); }
  .method-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .snips-head { align-items: flex-start; }
  .snip-tabs { margin-left: 0; }
  .report-url { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .chain-row { grid-template-columns: 44px minmax(0, 1fr); }
  .chain-ms { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner, .loading-steps span::after { animation: none; }
  .spinner { border-top-color: var(--accent); }
}

/* Pages that carry their own prose (about, privacy, terms). */
.doc { padding-top: 46px; max-width: 780px; }
.doc h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.doc .doc-lede { margin-top: 16px; font-size: 1rem; color: var(--ink-2); }
.doc h2 { margin-top: 34px; font-size: 1.16rem; }
.doc p, .doc li { margin-top: 10px; font-size: .9rem; color: var(--ink-2); line-height: 1.75; }
.doc ul { margin-top: 8px; }
.doc ul li { position: relative; padding-left: 16px; }
.doc ul li::before { content: ""; position: absolute; left: 0; top: .68em; width: 5px; height: 5px; border-radius: 1px; background: var(--marker); }
.doc .note { margin-top: 26px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-sm); background: var(--surface); font-size: .84rem; color: var(--ink-2); }
.doc a { color: var(--accent); }
