/* Fingerprint Mirror — styles */

:root {
  /* Mapped onto the shared BZ theme (bz-theme.css), so the page matches blazexyz.com. Dark only, like the main site. */
  --bg: var(--bz-bg);
  --surface: var(--bz-glass-bg);
  --surface-2: rgba(255, 255, 255, 0.06);
  --text: var(--bz-text-hi);
  --muted: var(--bz-text-mid);
  --border: var(--bz-glass-border);
  --accent: var(--bz-accent);
  --accent-strong: #f1c6fb;
  --accent-soft: rgba(var(--bz-glow-rgb), 0.12);
  --good: #4ade80;
  --good-soft: rgba(74, 222, 128, 0.12);
  --bad: #fb923c;
  --bad-soft: rgba(251, 146, 60, 0.13);
  --neutral: #94a3b8;
  --shadow: var(--bz-glass-shadow);
  --radius: var(--bz-radius);
  --mono: var(--bz-mono);
  --sans: var(--bz-mono);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font: 14px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); }
code, pre { font-family: var(--mono); }
code { font-size: 0.92em; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 20;
}
.skip:focus { left: 8px; }

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

/* ---------- Top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100vw - 1160px) / 2));
  background: rgba(10, 7, 13, 0.62);
  backdrop-filter: var(--bz-glass-blur);
  -webkit-backdrop-filter: var(--bz-glass-blur);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 400;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.brand svg { width: 26px; height: 26px; color: var(--accent); }
.topbar nav { display: flex; gap: 20px; margin-left: auto; }
.topbar nav a { color: var(--bz-text-lo); text-decoration: none; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; transition: color 0.2s; }
.topbar nav a:hover { color: rgb(var(--bz-glow-rgb)); }

main { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* ---------- Hero ---------- */

.hero {
  display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center;
  padding: 56px 0 40px;
}
.print-wrap {
  position: relative; aspect-ratio: 200 / 240; width: 100%;
  border-radius: 48% 48% 44% 44% / 42% 42% 50% 50%;
  background: radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 70%);
}
.print { width: 100%; height: 100%; display: block; color: var(--accent); }
.print .ridges path {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.1s ease-out forwards;
  animation-delay: calc(var(--i) * 28ms);
}
.print.scanning .ridges path {
  opacity: 0.22; stroke-dashoffset: 0; animation: none;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.scanline {
  position: absolute; left: 6%; right: 6%; height: 3px; top: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px var(--accent);
  border-radius: 2px; opacity: 0; pointer-events: none;
}
.is-scanning .scanline { opacity: 1; animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { from { top: 4%; } to { top: 94%; } }

.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 10px 0 14px; text-wrap: balance; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.lede strong { color: var(--text); }

.id-block {
  margin-top: 26px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.id-block .label { display: block; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
#fp-id {
  display: block; margin-top: 4px;
  font-size: clamp(1rem, 2.4vw, 1.35rem); font-weight: 600; color: var(--accent-strong);
  word-break: break-all;
}

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 0;
}
.stats div {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px;
}
.stats dt { font-size: 0.78rem; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats dd small { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.stats dd em { font-style: normal; color: var(--bad); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  font: inherit; font-size: 0.94rem; font-weight: 600;
  padding: 9px 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  min-width: 112px;
}
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--bz-active-bg); border-color: rgba(var(--bz-glow-rgb), 0.38); color: var(--text); box-shadow: var(--bz-active-shadow); }
.btn.primary:hover:not(:disabled) { background: rgba(var(--bz-glow-rgb), 0.24); }

.progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 0.85rem; color: var(--muted); }
.progress-track { flex: 0 0 140px; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }

/* ---------- Panels ---------- */

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.panel h2 { font-size: 1.1rem; }
.status { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--neutral); flex: none; }
.status.bad { color: var(--bad); } .status.bad .dot { background: var(--bad); }
.status.good { color: var(--good); } .status.good .dot { background: var(--good); }
.tip {
  margin-top: auto; padding: 10px 12px; border-radius: 10px;
  background: var(--accent-soft); font-size: 0.9rem;
}
.mini-chip {
  display: inline-block; padding: 1px 8px; margin: 2px 2px 0 0; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 0.8rem; color: var(--text);
}

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; }
.checks .mark {
  display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%; font-size: 0.78rem; font-weight: 800;
}
.checks .ok .mark { background: var(--good-soft); color: var(--good); }
.checks .warn .mark { background: var(--bad-soft); color: var(--bad); }

/* ---------- Sections ---------- */

.section { padding: 56px 0 8px; }
.section-head { margin-bottom: 20px; max-width: 70ch; }
.section-head h2 { font-size: 1.6rem; margin-bottom: 6px; }

.bars {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: grid; gap: 9px; box-shadow: var(--shadow);
}
.bar-row { display: grid; grid-template-columns: minmax(120px, 230px) 1fr 44px; gap: 14px; align-items: center; font-size: 0.92rem; }
.bar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar-fill {
  display: block; height: 100%; width: var(--w); border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  animation: grow 0.8s ease-out both;
}
@keyframes grow { from { width: 0; } }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-family: var(--mono); font-size: 0.85rem; }
.note { margin-top: 12px; font-size: 0.88rem; color: var(--muted); max-width: 80ch; }

/* ---------- Filters & cards ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter {
  font: inherit; font-size: 0.86rem; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.filter:hover { color: var(--text); }
.filter.active { background: var(--bz-active-bg); color: var(--text); border-color: rgba(var(--bz-glow-rgb), 0.38); box-shadow: var(--bz-active-shadow); }

.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  box-shadow: var(--shadow);
  animation: rise 0.4s ease-out both;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.card.wide { grid-column: span 2; }
.card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 1.02rem; }

.pill {
  flex: none; font-size: 0.74rem; font-weight: 650; padding: 3px 9px; border-radius: 999px;
  font-family: var(--mono);
}
.pill.bits { background: var(--accent-soft); color: var(--accent-strong); }
.pill.volatile { background: var(--surface-2); color: var(--muted); }
.pill.off { background: var(--surface-2); color: var(--muted); }

.rows { margin: 0; display: grid; gap: 6px; }
.rows div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 12px; font-size: 0.9rem; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; font-family: var(--mono); font-size: 0.84rem; overflow-wrap: anywhere; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 0.78rem; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); text-decoration: line-through; opacity: 0.6;
}
.chip.on { text-decoration: none; opacity: 1; color: var(--text); background: var(--surface-2); }

.canvas-shot { margin: 0; }
.canvas-shot img {
  display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border);
  background-color: #fff;
  background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%),
                    linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%);
  background-size: 12px 12px; background-position: 0 0, 6px 6px;
}
.canvas-shot figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

.explain { font-size: 0.88rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 10px; }
.card footer {
  margin-top: auto; display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
}

/* ---------- Defend ---------- */

.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tip-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.tip-card h3 { font-size: 1rem; }
.tip-card p { font-size: 0.9rem; color: var(--muted); }
.tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px;
}

/* ---------- How ---------- */

.prose { max-width: 75ch; display: grid; gap: 14px; color: var(--muted); }
.prose strong, .prose code { color: var(--text); }
.prose cite { font-style: italic; }
.raw { margin-top: 24px; }
.raw summary { cursor: pointer; font-weight: 600; }
.raw pre {
  margin-top: 12px; max-height: 420px; overflow: auto; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.78rem; line-height: 1.5;
}

.footer {
  max-width: 1160px; margin: 64px auto 0; padding: 24px 16px 40px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 0.86rem;
}

/* ---------- BZ theme: type and glass details, as on blazexyz.com ---------- */

/* Display type: a light sans sentence with one word in script. Labels: small uppercase mono. */
.hero h1, .section-head h2, .panel h2 { font-family: var(--bz-sans); font-weight: 300; letter-spacing: 0.01em; }
.hero h1 { line-height: 1.3; }
.card h3, .tip-card h3, .footer, .raw summary { font-weight: 400; }
.eyebrow, .id-block .label, .stats dt, .tag, .bar-label, .rows dt, .card footer {
  font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.62rem;
}
.eyebrow, .id-block .label { color: rgba(var(--bz-glow-rgb), 0.9); }
.bar-label { letter-spacing: 0.04em; font-size: 0.68rem; }
.rows dt { letter-spacing: 0.08em; color: var(--bz-text-lo); }
.stats dd { font-weight: 500; }
#fp-id { font-weight: 400; text-shadow: 0 0 18px rgba(var(--bz-glow-rgb), 0.45); }
.lede, .prose, .tip-card p, .section-head p, .note { font-size: 0.82rem; line-height: 1.85; }
.btn { font-size: 0.68rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; border-radius: var(--bz-radius-sm); background: rgba(255, 255, 255, 0.04); }
.btn:hover:not(:disabled) { border-color: rgba(var(--bz-glow-rgb), 0.45); }
.filter { background: rgba(255, 255, 255, 0.04); font-size: 0.72rem; }
.pill, .tag, .mini-chip { font-weight: 400; }
.tip { border: 1px solid rgba(var(--bz-glow-rgb), 0.22); border-radius: var(--bz-radius-sm); }
.stats div, .tip-card { box-shadow: var(--shadow); }
.print { filter: drop-shadow(0 0 10px rgba(var(--bz-glow-rgb), 0.45)); }
.bar-fill { background: linear-gradient(90deg, rgba(var(--bz-glow-rgb), 0.55), var(--accent-strong)); box-shadow: 0 0 10px rgba(var(--bz-glow-rgb), 0.35); }
.canvas-shot img { border-radius: var(--bz-radius-sm); }
.skip { background: var(--bz-surface-2); color: var(--text); border: 1px solid rgba(var(--bz-glow-rgb), 0.5); }
.topbar .bz-home { margin-left: 8px; }
.footer { border-top-color: var(--bz-line); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .print-wrap { width: 180px; margin: 0 auto; }
  .tips { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: auto; }
}

@media (max-width: 640px) {
  .topbar nav { display: none; }
  .topbar .bz-home { margin-left: auto; }
  .stats { grid-template-columns: 1fr; }
  .panels, .tips { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr 44px; gap: 4px 10px; }
  .bar-label { grid-column: 1 / -1; }
  .rows div { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .print .ridges path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
