/* Browser Fingerprint Analyzer — https://fpdetector.com
   Design system: white-first industrial utility. System fonts only. */

:root {
  --white: #FFFFFF;
  --light: #F6F7F8;
  --border: #E2E5E9;
  --text: #24282C;
  --text-2: #66707A;
  --grayblue: #5F7484;
  --grayblue-dark: #4C5E6B;
  --yellow: #FFD900;
  --gold: #D99A24;
  --ok-text: #2F7D4F;
  --ok-bg: #EAF4EE;
  --err-text: #9C4038;
  --err-bg: #F9EFED;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --maxw: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--light);
}

img { max-width: 100%; height: auto; }

a { color: var(--grayblue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--grayblue);
  outline-offset: 2px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--text); padding: 10px 16px;
  border: 1px solid var(--border); z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
body { padding-top: 64px; }
h1, h2, h3, h4, .test-card, .panel, [id] { scroll-margin-top: 80px; }
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 36px; width: auto; display: block; }

.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.main-nav a, .nav-drop-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 12px; min-height: 44px;
  font-size: 15px; font-weight: 500; color: var(--text);
  background: none; border: none; border-radius: var(--radius-sm);
  font-family: inherit; cursor: pointer;
}
.main-nav a:hover, .nav-drop-btn:hover { background: var(--light); text-decoration: none; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }

.nav-item { position: relative; }
.nav-drop-btn .caret {
  border: solid var(--text-2); border-width: 0 1.5px 1.5px 0;
  display: inline-block; padding: 2.5px; transform: rotate(45deg) translateY(-2px);
}
.main-nav ul.dropdown {
  display: none; flex-direction: column; align-items: stretch;
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 240px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 6px; list-style: none; z-index: 110;
}
.nav-item.open > ul.dropdown { display: block; }
.main-nav ul.dropdown a { display: block; width: 100%; padding: 10px 12px; font-weight: 400; border-radius: var(--radius-sm); }
.main-nav ul.dropdown a:hover { background: var(--light); text-decoration: none; }
.nav-item-right > ul.dropdown { left: auto; right: 0; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); min-width: 44px; min-height: 44px;
  font-size: 20px; color: var(--text); cursor: pointer; font-family: inherit;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 64px); overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .main-nav li { width: 100%; }
  .main-nav a, .nav-drop-btn { width: 100%; justify-content: space-between; padding: 12px; }
  .main-nav ul.dropdown {
    position: static; display: none; min-width: 0; box-shadow: none;
    border: none; border-left: 2px solid var(--border); border-radius: 0;
    margin: 0 0 4px 12px; padding: 0;
  }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); border-radius: 0; }
}

/* ---------- Page scaffolding ---------- */
main { padding: 32px 0 56px; }
.page-title { font-size: 30px; font-weight: 600; line-height: 1.25; margin-bottom: 10px; }
.page-lead { font-size: 17px; color: var(--text-2); max-width: 720px; margin-bottom: 28px; }

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.panel + .panel, .panel + section, section + .panel { margin-top: 20px; }
section { margin-top: 40px; }
.panel h2:first-child { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: background-color 150ms, border-color 150ms;
}
.btn-primary { background: var(--grayblue); color: var(--white); border: 1px solid var(--grayblue); }
.btn-primary:hover { background: var(--grayblue-dark); border-color: var(--grayblue-dark); }
.btn-secondary { background: var(--white); color: var(--grayblue); border: 1px solid var(--grayblue); }
.btn-secondary:hover { background: var(--light); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-lg { font-size: 16.5px; padding: 13px 30px; min-height: 50px; }

/* ---------- Hero & test chips ---------- */
.hero { padding-top: 8px; }
.test-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.test-chips a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 5px 13px;
  background: var(--white); border: 1px solid var(--border); border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--text);
}
.test-chips a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.test-chips a:hover { border-color: var(--grayblue); text-decoration: none; }

#analyzer { border-top: 3px solid var(--yellow); }
.panel-title { font-size: 20px; font-weight: 600; margin-bottom: 6px; }

/* ---------- Privacy strip & facts ---------- */
.privacy-strip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 14px; font-size: 14px; color: var(--text-2); margin-bottom: 24px;
}
.privacy-strip .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none;
}
.facts-list { list-style: none; }
.facts-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px;
}
.facts-list li:last-child { border-bottom: none; }
.facts-list .fact-value { font-weight: 600; white-space: nowrap; }

/* ---------- Analyzer ---------- */
.analyzer-note { font-size: 14px; color: var(--text-2); margin-top: 12px; }

.test-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-top: 20px; overflow: hidden;
}
.test-card.changed { border-left: 3px solid var(--gold); }
.test-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 24px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.test-name { font-size: 17px; font-weight: 600; }
.trust-line {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 5px; font-size: 12.5px; color: var(--text-2);
}
.trust-line .sep { color: var(--border); }
.yesno {
  display: inline-block; padding: 0 7px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 18px;
  background: var(--ok-bg); color: var(--ok-text); border: 1px solid #CFE5D6;
}

.power-tag { text-align: right; }
.power-label {
  display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 4px;
}
.power-value {
  display: inline-block; padding: 2px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 600; border: 1px solid var(--border);
  background: var(--light); color: var(--text-2);
}
.power-higher { border-color: #E8C88A; color: #8A5F0F; background: #FBF4E3; }
.power-moderate { border-color: var(--grayblue); color: var(--grayblue); background: #F0F3F5; }
.power-lower { border-color: var(--border); color: var(--text-2); background: var(--light); }
.power-unavailable { border-style: dashed; }
.power-why {
  margin-left: 8px; font-size: 12.5px; color: var(--grayblue);
  background: none; border: none; cursor: pointer; font-family: inherit;
  text-decoration: underline; text-decoration-color: var(--border); padding: 2px;
}
.power-why:hover { text-decoration-color: var(--grayblue); }

/* Compare state ribbon (full width, under the header row) */
.state-ribbon {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 24px; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.state-changed { background: #FBF4E3; color: #8A5F0F; }
.state-unchanged { background: #F0F3F5; color: var(--grayblue); }
.state-new { background: var(--ok-bg); color: var(--ok-text); }
.state-blocked { background: var(--light); color: var(--text-2); }
.state-error { background: var(--err-bg); color: var(--err-text); }

/* Changed field diff */
.diff-block { margin: 0 0 14px; border: 1px solid #E8C88A; border-radius: var(--radius-sm); overflow: hidden; max-width: 72ch; }
.diff-title { padding: 8px 14px; font-size: 13px; font-weight: 600; background: #FBF4E3; color: #8A5F0F; }
.diff-row { padding: 10px 14px; border-top: 1px solid var(--border); font-size: 13.5px; }
.diff-row .diff-field { font-weight: 600; margin-bottom: 3px; }
.diff-row .diff-prev, .diff-row .diff-curr { font-family: var(--mono); font-size: 12.5px; word-break: break-all; color: var(--text-2); }
.diff-row .diff-curr { color: var(--text); }
.diff-row span.lbl { display: inline-block; min-width: 70px; font-family: var(--font); color: var(--text-2); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid var(--border); color: var(--text-2); background: var(--light);
}
.badge-higher { border-color: var(--gold); color: #8A5F0F; background: #FFF8E4; }
.badge-moderate { border-color: var(--grayblue); color: var(--grayblue); background: #F0F3F5; }
.badge-lower { border-color: var(--border); color: var(--text-2); background: var(--light); }
.badge-unavailable { border-style: dashed; }
.badge-changed { border-color: var(--gold); color: #8A5F0F; background: #FFF8E4; }
.badge-unchanged { border-color: var(--border); color: var(--text-2); background: var(--light); }

.test-body { padding: 18px 24px 22px; }
.test-body > p, .test-body .more-body, .test-body details { max-width: 72ch; }
.test-conclusion { font-size: 16.5px; font-weight: 600; margin-bottom: 4px; }
.test-meaning { color: var(--text-2); margin-bottom: 14px; }
.test-summary { margin-bottom: 14px; }
.tech-kv { max-width: 72ch; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.tech-kv .tk-row { display: flex; gap: 14px; padding: 8px 12px; font-size: 13.5px; border-top: 1px solid var(--border); }
.tech-kv .tk-row:first-child { border-top: none; }
.tech-kv .tk-label { flex: none; width: 120px; color: var(--text-2); }
.tech-kv .tk-value { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
@media (max-width: 640px) { .tech-kv .tk-row { flex-direction: column; gap: 2px; } .tech-kv .tk-label { width: auto; } }
.btn-copy {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px;
  margin-top: 10px; font-family: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--grayblue); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
}
.btn-copy:hover { border-color: var(--grayblue); }
.hash-block { max-width: 72ch; margin-bottom: 0; }
.hash-wrap { margin-bottom: 14px; }
.more-body h4 { font-size: 13.5px; font-weight: 600; margin: 14px 0 3px; color: var(--text); }
.more-body h4:first-child { margin-top: 2px; }
.more-body p { margin-bottom: 0; color: var(--text-2); font-size: 14.5px; }
.hash-block {
  font-family: var(--mono); font-size: 13px; color: var(--text-2);
  background: var(--light); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; word-break: break-all;
}
.hash-block .hash-label { display: block; font-family: var(--font); font-size: 12px; margin-bottom: 4px; }
.hash-block strong { color: var(--text); font-family: var(--mono); font-weight: 600; }

.kv { display: grid; grid-template-columns: 190px 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }
@media (max-width: 640px) {
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { margin-top: 8px; font-size: 13px; }
}

.test-card details, .prose details {
  margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--light);
}
.test-card summary, .prose summary {
  cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 14px;
  list-style: none; min-height: 44px; display: flex; align-items: center;
}
.test-card summary::before, .prose summary::before { content: "+"; margin-right: 8px; color: var(--gold); font-weight: 700; }
.test-card details[open] summary::before, .prose details[open] summary::before { content: "\2212"; }
summary::-webkit-details-marker { display: none; }
.test-card details .details-body, .prose details .details-body {
  padding: 0 14px 12px; font-size: 14.5px; color: var(--text-2);
}

.compare-note {
  margin-top: 20px; padding: 14px 16px; font-size: 14.5px; color: var(--text-2);
  background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
}
.status-line { font-size: 14.5px; color: var(--text-2); margin-top: 14px; min-height: 22px; }

/* ---------- Run summary overview ---------- */
.run-summary { margin-top: 20px; }
.rs-lead { color: var(--text-2); font-size: 14.5px; margin-bottom: 14px; }
.rs-groups { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 12px; }
.rs-group { min-width: 150px; }
.rs-group h3 {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 6px;
}
.rs-group ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.rs-group a { font-size: 14px; }
.rs-changed { border-left: 3px solid var(--gold); padding-left: 10px; }
.rs-note { font-size: 13px; color: var(--text-2); border-top: 1px solid var(--border); padding-top: 10px; }

/* ---------- Prose / content pages ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 24px; font-weight: 600; margin: 40px 0 12px; }
.prose h2::after { content: ""; display: block; width: 34px; height: 3px; background: var(--gold); border-radius: 2px; margin-top: 6px; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 24px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; }
.prose code { font-family: var(--mono); font-size: 14px; background: var(--light); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.prose table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--light); font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-color: var(--border); }
.prose a:hover { text-decoration-color: var(--grayblue); }
.prose .highlight { background: #FFF8E4; border: 1px solid #F0E2B0; border-radius: var(--radius-sm); padding: 14px 16px; margin: 14px 0; }

.related { margin-top: 40px; }
.related h2 { font-size: 18px; margin-bottom: 10px; }
.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.related a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14.5px;
}
.related a:hover { border-color: var(--grayblue); text-decoration: none; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item h2, .faq-item h3 { font-size: 17px; font-weight: 600; padding: 16px 0 4px; margin: 0; }
.faq-item p { color: var(--text-2); padding-bottom: 16px; margin: 0; font-size: 15.5px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white); border-top: 1px solid var(--border);
  padding: 32px 0; margin-top: 24px; font-size: 14px; color: var(--text-2);
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); margin-bottom: 10px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 10px; }
.footer-brand p { max-width: 280px; }
.footer-bottom {
  max-width: var(--maxw); margin: 24px auto 0; padding: 16px 24px 0;
  border-top: 1px solid var(--border); font-size: 13px;
}

@media (max-width: 640px) {
  .container, .header-inner, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .page-title { font-size: 26px; }
  .panel { padding: 20px 16px; }
  .test-head, .test-body { padding-left: 16px; padding-right: 16px; }
}
