/* tampered.app / 一石鉴包
   An inspection bench at night: PCB-black board, copper traces, silkscreen
   white. One brand colour, the seal red. Verdicts get their own colours and
   take over the page for a moment when the result lands. */

@property --beam {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: dark;
  --bg: oklch(0.155 0.012 165);
  --bg-1: oklch(0.183 0.013 165);
  --bg-2: oklch(0.212 0.015 165);
  --bg-3: oklch(0.255 0.016 165);
  --line: oklch(0.3 0.014 165);
  --line-2: oklch(0.38 0.016 160);
  --ink: oklch(0.965 0.006 100);
  --ink-2: oklch(0.82 0.012 130);
  --ink-3: oklch(0.65 0.014 150);
  --copper: oklch(0.74 0.12 58);
  --copper-2: oklch(0.83 0.1 72);
  --seal: oklch(0.58 0.19 27);
  --ok: oklch(0.85 0.14 158);
  --warn: oklch(0.85 0.14 82);
  --bad: oklch(0.67 0.21 27);
  --focus: oklch(0.83 0.11 72);

  --font-sans: 'Geist', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-brush: 'Ma Shan Zheng', 'Kaiti SC', 'STKaiti', serif;

  --t-xs: clamp(0.78rem, 0.76rem + 0.08vw, 0.82rem);
  --t-s: clamp(0.88rem, 0.86rem + 0.1vw, 0.94rem);
  --t-m: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --t-l: clamp(1.14rem, 1.06rem + 0.4vw, 1.36rem);
  --t-xl: clamp(1.45rem, 1.22rem + 1vw, 2.05rem);
  --t-2xl: clamp(1.9rem, 1.45rem + 2vw, 3rem);
  --t-3xl: clamp(2.5rem, 1.55rem + 4vw, 4.75rem);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  /* Spring-like settle with a hint of overshoot. */
  --spring: linear(0, 0.21 6%, 0.69 16%, 0.92 25%, 1.02 35%, 1.03 44%, 1.005 62%, 1);
  --max: 1200px;
}

/* ——— Base ——— */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-m);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(zh-CN) body {
  --font-sans: 'Geist', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}
:lang(zh-TW) body {
  --font-sans: 'Geist', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
}
:lang(ja) body {
  --font-sans: 'Geist', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif;
}
:lang(ko) body {
  --font-sans: 'Geist', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  word-break: keep-all;
}
:is(:lang(zh-CN), :lang(zh-TW), :lang(ja), :lang(ko)) body {
  line-height: 1.75;
  line-break: strict;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in oklch, currentColor 40%, transparent);
  transition: text-decoration-color 160ms, color 160ms;
}
a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}
p {
  margin: 0;
  text-wrap: pretty;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 650;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 {
  font-size: var(--t-3xl);
  line-height: 1.02;
  letter-spacing: -0.042em;
  font-weight: 680;
}
h2 {
  font-size: var(--t-2xl);
  line-height: 1.08;
  letter-spacing: -0.032em;
}
h3 {
  font-size: var(--t-l);
  line-height: 1.3;
  letter-spacing: -0.012em;
}
h4 {
  font-size: var(--t-m);
  line-height: 1.35;
}
:is(:lang(zh-CN), :lang(zh-TW), :lang(ja), :lang(ko)) :is(h1, h2) {
  letter-spacing: -0.01em;
  line-height: 1.18;
}
:lang(ja) :is(h1, h2, h3, .lede, .meaning) {
  word-break: auto-phrase;
}
:is(:lang(de), :lang(ru)) :is(h1, h2, h3) {
  hyphens: auto;
}
.muted {
  color: var(--ink-3);
}
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
@media (max-width: 520px) {
  .wrap {
    width: calc(100% - 2rem);
  }
}
code,
.part {
  font-family: var(--font-mono);
  font-size: 0.86em;
}
.part {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0.05em 0.4em;
  border-radius: 5px;
  color: var(--ink);
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

/* ——— Backdrop: board grid, glow, grain ——— */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 78% -8%, oklch(0.74 0.12 58 / 0.13), transparent 70%),
    radial-gradient(48rem 32rem at -10% 12%, oklch(0.6 0.08 165 / 0.12), transparent 70%),
    var(--bg);
}
.backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-block: 0.85rem;
  transition: background 240ms, box-shadow 240ms, backdrop-filter 240ms;
}
.site-header.scrolled {
  background: oklch(0.155 0.012 165 / 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.75rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  text-decoration: none;
  font-weight: 650;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.wordmark small {
  color: var(--ink-3);
  font-weight: 500;
}
.wordmark-cjk span {
  font-family: var(--font-brush);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
}
.wordmark-cjk small {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0;
}
.seal {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--seal);
  transition: transform 500ms var(--spring);
}
.wordmark:hover .seal {
  transform: rotate(-8deg) scale(1.06);
}
.nav {
  display: flex;
  gap: 1.4rem;
  font-size: var(--t-s);
  font-weight: 500;
}
.nav a {
  text-decoration: none;
  color: var(--ink-2);
  position: relative;
  padding-block: 0.3rem;
}
.nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 -2px;
  height: 1.5px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out);
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
}
.nav a:hover::after,
.nav a[aria-current='page']::after {
  transform: scaleX(1);
}
.lang-menu {
  position: relative;
  font-size: var(--t-s);
}
.lang-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 160ms, color 160ms, background 160ms;
}
.lang-menu summary::-webkit-details-marker {
  display: none;
}
.lang-menu summary:hover,
.lang-menu[open] summary {
  color: var(--ink);
  border-color: var(--line-2);
  background: var(--bg-2);
}
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 40;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  min-width: 12.5rem;
  background: oklch(0.2 0.014 165 / 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 24px 60px -24px oklch(0 0 0 / 0.8);
  transform-origin: top right;
  animation: menuIn 220ms var(--ease-out);
}
@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}
.lang-menu a,
.footer-langs a {
  font-family: -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'PingFang SC', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
.lang-menu a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink-2);
}
.lang-menu a:hover,
.lang-menu a[aria-current] {
  background: var(--bg-3);
  color: var(--ink);
}
@media (max-width: 680px) {
  .site-header .wrap {
    flex-wrap: wrap;
  }
  .nav {
    order: 3;
    width: 100%;
    gap: 1.1rem;
  }
}

/* ——— Hero ——— */

.hero {
  position: relative;
  padding-block: clamp(2.25rem, 1.25rem + 4vw, 5rem) clamp(2.5rem, 2rem + 2vw, 4rem);
  isolation: isolate;
}
.traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.trace {
  fill: none;
  stroke: oklch(0.74 0.12 58 / 0.16);
  stroke-width: 1.5;
}
.pulse {
  fill: none;
  stroke: var(--copper-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 46 1400;
  stroke-dashoffset: 46;
  filter: drop-shadow(0 0 4px oklch(0.83 0.1 72 / 0.9));
  animation: current 7s linear infinite;
  animation-delay: var(--d);
}
@keyframes current {
  to {
    stroke-dashoffset: -1400;
  }
}
.via {
  fill: var(--bg);
  stroke: oklch(0.74 0.12 58 / 0.35);
  stroke-width: 1.5;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    column-gap: clamp(2.5rem, 1rem + 4vw, 5rem);
    align-items: start;
  }
  .hero-copy {
    padding-top: 1.25rem;
    position: sticky;
    top: 5.5rem;
  }
}
/* Phones: the check comes right after the pitch; the founder note follows it. */
@media (max-width: 999px) {
  .hero-grid {
    gap: 0;
  }
  .hero-copy {
    display: contents;
  }
  .hero-copy h1 {
    order: 1;
  }
  .hero-copy .lede {
    order: 2;
  }
  .hero-copy .badges {
    order: 3;
  }
  .hero-grid > .checker {
    order: 4;
    margin-top: 2rem;
  }
  .hero-copy .host {
    order: 5;
    margin-top: 2.25rem;
  }
  .hero-copy .hero-before {
    order: 6;
  }
  .hero-copy .notes {
    order: 7;
  }
  .hero-grid.reporting > .checker {
    margin-top: 0;
  }
  .hero-grid.reporting .hero-copy > * {
    display: none;
  }
}
.hero-grid.reporting {
  grid-template-columns: minmax(0, 1fr);
}
.hero-grid.reporting .hero-copy {
  display: none;
}
.reveal-words .w {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(0.3em);
  animation: wordIn 900ms var(--ease-expo) forwards;
  animation-delay: calc(var(--i) * 55ms + 80ms);
}
@keyframes wordIn {
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}
.rise {
  opacity: 0;
  transform: translateY(12px);
  animation: riseIn 800ms var(--ease-expo) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 320ms);
}
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lede {
  font-size: var(--t-l);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}
.hero-copy .lede {
  margin-top: 1.4rem;
}
.badges {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--t-s);
  color: var(--ink-2);
  padding: 0.3rem 0.75rem 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(0.2 0.014 165 / 0.6);
}
.badges li::before {
  content: '';
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='%230d1210' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.host {
  margin: 1.75rem 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  max-width: 33rem;
  font-size: var(--t-s);
  color: var(--ink-2);
}
.host img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 3.5px var(--copper);
}
.host-avatar {
  display: block;
  border-radius: 50%;
  transition: transform 300ms var(--spring);
}
.host-avatar:hover {
  transform: scale(1.06) rotate(-3deg);
}
.host-name a {
  text-decoration: none;
}
.host-name a:hover {
  color: var(--copper-2);
}
.host:not(:has(img)) {
  grid-template-columns: 1fr;
}
.host-name {
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.host-about {
  margin-top: 1.25rem;
}
.notes {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
  font-size: var(--t-s);
  max-width: 34rem;
}
.notes div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.75rem;
}
.notes dt {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--copper);
  padding-top: 0.15em;
}
.notes dd {
  margin: 0;
  color: var(--ink-2);
}
.hero-before {
  margin-top: 1.5rem;
  font-size: var(--t-s);
}
.hero-before a {
  color: var(--copper-2);
}

/* ——— Checker card ——— */

.checker {
  position: relative;
  border-radius: var(--r-l);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.06),
    0 50px 100px -50px oklch(0 0 0 / 0.85);
  scroll-margin-top: 5rem;
  animation: riseIn 900ms var(--ease-expo) both;
  animation-delay: 200ms;
}
/* A copper beam travels around the border while the card is in use. */
.checker::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--beam), transparent 0 72%, var(--copper-2) 82%, transparent 92%);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 400ms;
  animation: beam 5s linear infinite;
  pointer-events: none;
}
.checker:hover::before,
.checker:focus-within::before {
  opacity: 0.8;
}
@keyframes beam {
  to {
    --beam: 360deg;
  }
}
.checker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.checker-head h2 {
  font-size: var(--t-s);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
}
.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: live 2.4s ease-out infinite;
}
.status[data-state='daily'] i {
  background: var(--warn);
  animation: none;
}
.status[data-state='closed'] i {
  background: var(--ink-3);
  animation: none;
}
@keyframes live {
  0% {
    box-shadow: 0 0 0 0 oklch(0.85 0.14 158 / 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px oklch(0.85 0.14 158 / 0);
  }
}
.status-note {
  margin: 1rem 1.4rem 0;
  padding: 0.75rem 1rem;
  border-radius: var(--r-s);
  background: oklch(0.85 0.14 82 / 0.1);
  border: 1px solid oklch(0.85 0.14 82 / 0.3);
  color: var(--warn);
  font-size: var(--t-s);
}
.view {
  padding: 1.4rem;
}

/* Stepper: nodes joined by a trace that lights up as steps complete. */
.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-bottom: 1.6rem;
}
.step:last-child {
  padding-bottom: 0;
}
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: calc(1rem - 1px);
  top: 2.3rem;
  bottom: 0.3rem;
  width: 2px;
  border-radius: 2px;
  background:
    linear-gradient(var(--copper-2), var(--copper)) top / 100% 0% no-repeat,
    var(--line);
  transition: background-size 700ms var(--ease-out);
}
.step.done:not(:last-child)::before {
  background-size: 100% 100%, auto;
  box-shadow: 0 0 10px oklch(0.74 0.12 58 / 0.35);
}
.step-node {
  position: relative;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-2);
  background: var(--bg-1);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 300ms, border-color 300ms, box-shadow 300ms, color 300ms;
}
.step-node .ico-check {
  position: absolute;
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: var(--bg);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
}
.step.current .step-node {
  border-color: var(--copper);
  color: var(--ink);
  box-shadow: 0 0 0 4px oklch(0.74 0.12 58 / 0.15);
}
.step.done .step-node {
  background: var(--copper);
  border-color: var(--copper);
}
.step.done .step-node span {
  opacity: 0;
}
.step.done .step-node .ico-check {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 420ms var(--ease-out) 120ms;
}
.step.attention .step-node {
  animation: attention 1.1s var(--ease-out) 2;
}
@keyframes attention {
  0% {
    box-shadow: 0 0 0 0 oklch(0.83 0.1 72 / 0.7);
  }
  100% {
    box-shadow: 0 0 0 14px oklch(0.83 0.1 72 / 0);
  }
}
.step-title {
  font-size: var(--t-m);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 2rem;
  margin-bottom: 0.6rem;
}
.step.done .step-title {
  color: var(--ink-2);
}
.step-summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  margin: -0.3rem 0 0.2rem;
  animation: riseIn 400ms var(--ease-out) both;
}
.step-summary b {
  font-weight: 600;
  font-size: var(--t-l);
  letter-spacing: -0.015em;
}
.link {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: var(--copper-2);
  font: inherit;
  font-size: var(--t-s);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in oklch, currentColor 40%, transparent);
}
.collapsible {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 450ms var(--ease-out), opacity 300ms;
}
.collapsible.collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
}
.collapsible-inner {
  min-height: 0;
  overflow: hidden;
  padding: 3px;
  margin: -3px;
}
.hint {
  font-size: var(--t-s);
  color: var(--ink-3);
}

/* Brand segmented control with a sliding pill. */
.brand-pick {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border-radius: 13px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.brand-pick label {
  position: relative;
  z-index: 1;
  cursor: pointer;
  text-align: center;
}
.brand-pick span {
  display: block;
  padding: 0.6rem 0.3rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: var(--t-s);
  color: var(--ink-2);
  transition: color 250ms;
}
.brand-pick label:hover span {
  color: var(--ink);
}
.brand-pick input,
.model-pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.brand-pick input:checked + span {
  color: var(--bg);
}
.brand-pick input:focus-visible + span,
.model-pick input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.brand-pill {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  height: calc(100% - 8px);
  border-radius: 9px;
  background: var(--ink);
  box-shadow: 0 6px 18px -8px oklch(0.96 0.006 100 / 0.5);
  opacity: 0;
  transform: translateX(calc(var(--x, 0) * 100%));
  transition: transform 520ms var(--spring), opacity 200ms;
}
.brand-pick:has(input:checked) .brand-pill {
  opacity: 1;
}
.model-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
  min-height: 2.3rem;
  align-items: center;
}
.model-pick label {
  position: relative;
  animation: chipIn 420ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 32ms);
}
@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
}
.model-pick label span {
  display: block;
  cursor: pointer;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.34rem 0.85rem;
  font-size: var(--t-s);
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-1);
  transition: border-color 160ms, background 160ms, color 160ms, transform 160ms;
}
.model-pick label:hover span {
  border-color: var(--ink-3);
  color: var(--ink);
}
.model-pick label:active span {
  transform: scale(0.97);
}
.model-pick input:checked + span {
  border-color: var(--copper);
  color: var(--ink);
  background: oklch(0.74 0.12 58 / 0.14);
}
.model-pick small {
  color: var(--ink-3);
  font-size: 0.8em;
}

/* Drop zone and thumbnails */
.drop {
  position: relative;
}
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.drop-face {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  padding: 1.5rem 1rem;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-m);
  background: oklch(0.155 0.012 165 / 0.6);
  text-align: center;
  cursor: pointer;
  transition: border-color 200ms, background 200ms, transform 300ms var(--ease-out);
}
.drop-face b {
  font-weight: 600;
  font-size: var(--t-m);
}
.drop-face span {
  font-size: var(--t-s);
  color: var(--ink-3);
}
.ico-board {
  width: 2.6rem;
  height: 2.6rem;
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.6;
  stroke-linecap: round;
  margin-bottom: 0.35rem;
  transition: transform 400ms var(--spring);
}
.drop-face:hover {
  border-color: var(--copper);
  background: oklch(0.74 0.12 58 / 0.06);
}
.drop-face:hover .ico-board {
  transform: translateY(-3px) rotate(-4deg);
}
.drop.drag .drop-face {
  border-color: var(--copper-2);
  border-style: solid;
  background: oklch(0.74 0.12 58 / 0.12);
  transform: scale(1.015);
  box-shadow: 0 0 0 4px oklch(0.74 0.12 58 / 0.15);
}
.drop input:focus-visible + .drop-face {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.drop.compact .drop-face {
  grid-auto-flow: column;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 1rem;
  gap: 0.55rem;
}
.drop.compact .drop-face span,
.drop.compact .drop-face b {
  display: none;
}
.drop.compact .ico-board {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
}
.drop.compact .drop-face::after {
  content: attr(data-add);
  font-size: var(--t-s);
  font-weight: 600;
  color: var(--ink-2);
}
.drop.full {
  display: none;
}
.step[data-step='photos'] .step-body {
  display: flex;
  flex-direction: column;
}
.step[data-step='photos'] .drop.compact {
  order: 2;
}
.step[data-step='photos'] .thumbs {
  order: 1;
}
.step[data-step='photos'] .warns {
  order: 2;
}
.step[data-step='photos'] .model-tip {
  order: 3;
}
.thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.thumbs:not(:empty) {
  margin-bottom: 0.65rem;
}
.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  animation: thumbIn 480ms var(--ease-expo) both;
}
@keyframes thumbIn {
  from {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(6px);
  }
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, oklch(0 0 0 / 0.75));
  pointer-events: none;
}
.thumb select {
  position: absolute;
  z-index: 1;
  left: 0.4rem;
  right: 0.4rem;
  bottom: 0.4rem;
  appearance: none;
  border: 0;
  border-radius: 7px;
  padding: 0.2rem 1.3rem 0.2rem 0.45rem;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink);
  background: oklch(0.155 0.012 165 / 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23e9ecdf' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 0.35rem center / 0.7rem no-repeat;
  backdrop-filter: blur(6px);
  cursor: pointer;
  text-overflow: ellipsis;
}
.thumb-remove {
  position: absolute;
  z-index: 1;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 0;
  background: oklch(0.155 0.012 165 / 0.75);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 160ms, transform 160ms;
}
.thumb-remove:hover {
  background: var(--bad);
  transform: scale(1.06);
}
.thumb-warn {
  position: absolute;
  z-index: 1;
  top: 0.4rem;
  left: 0.4rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--warn);
  color: var(--bg);
  font-weight: 800;
  font-size: 0.8rem;
}
.thumb.loading img {
  opacity: 0.35;
}
.warns {
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
  font-size: var(--t-xs);
  color: var(--warn);
}
.model-tip {
  font-size: var(--t-s);
  color: var(--ink-2);
  padding-left: 0.8rem;
  border-left: 2px solid var(--copper);
  margin-top: 0.85rem;
}

/* Buttons */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: var(--t-m);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform 180ms var(--ease-out),
    background 200ms,
    box-shadow 300ms,
    color 200ms;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 10px 30px -12px oklch(0.96 0.006 100 / 0.45);
}
.btn-primary:hover {
  background: oklch(1 0 0);
  box-shadow: 0 14px 36px -12px oklch(0.96 0.006 100 / 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  background: var(--bg-3);
}
.ico-arrow {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 300ms var(--ease-out);
}
.btn:hover .ico-arrow {
  transform: translateX(3px);
}
.btn-go {
  width: 100%;
  min-height: 3.35rem;
  font-size: var(--t-l);
}
.btn-go.ready {
  animation: ready 1.6s var(--ease-out) 1;
}
@keyframes ready {
  0% {
    box-shadow: 0 0 0 0 oklch(0.96 0.006 100 / 0.55);
  }
  100% {
    box-shadow: 0 0 0 18px oklch(0.96 0.006 100 / 0);
  }
}
.btn-go.waiting {
  background: var(--bg-3);
  color: var(--ink-2);
  box-shadow: none;
}
.shake {
  animation: shake 420ms var(--ease-out);
}
@keyframes shake {
  20% {
    transform: translateX(-7px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(2px);
  }
}
.go-hint {
  margin-top: 0.65rem;
  font-size: var(--t-s);
  color: var(--ink-3);
  text-align: center;
  min-height: 1.4em;
  transition: color 200ms;
}
.go-hint.alert {
  color: var(--copper-2);
  font-weight: 500;
}
.footnote {
  margin-top: 0.15rem;
  font-size: var(--t-xs);
  color: var(--ink-3);
  text-align: center;
}
.error {
  margin-top: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--r-s);
  background: oklch(0.67 0.21 27 / 0.12);
  border: 1px solid oklch(0.67 0.21 27 / 0.35);
  color: oklch(0.85 0.09 27);
  font-size: var(--t-s);
}

/* ——— Progress ——— */

.progress {
  display: grid;
  gap: 1.1rem;
}
.scan {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}
.scan img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.75) contrast(1.1);
  transform: scale(1.04);
  animation: drift 12s ease-in-out infinite alternate;
}
@keyframes drift {
  to {
    transform: scale(1.1) translate(-1.5%, -1%);
  }
}
.scan-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.83 0.1 72 / 0.12) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.83 0.1 72 / 0.12) 1px, transparent 1px);
  background-size: 33.34% 33.34%;
}
.scan-beam {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, oklch(0.83 0.1 72 / 0.16) 75%, oklch(0.9 0.08 80 / 0.9) 99%, transparent);
  animation: beamDown 2.6s var(--ease-out) infinite;
}
@keyframes beamDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(340%);
  }
}
.probes span {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  border: 1.5px solid var(--copper-2);
  animation: probe 1.8s var(--ease-out) forwards;
}
@keyframes probe {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}
.progress-status {
  display: grid;
  gap: 0.5rem;
}
.progress-line {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.progress-bar {
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--copper), var(--copper-2));
  transition: width 200ms linear;
}
.progress-bar.indeterminate span {
  width: 35% !important;
  animation: slide 1.4s var(--ease-out) infinite;
}
@keyframes slide {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(300%);
  }
}
.progress-look {
  font-size: var(--t-s);
  color: var(--ink-2);
  min-height: 1.6em;
}
[data-look] {
  display: inline-block;
}
[data-look].swap {
  animation: lookIn 450ms var(--ease-out);
}
@keyframes lookIn {
  from {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(4px);
  }
}

/* ——— Report ——— */

.report {
  display: grid;
  gap: 1.75rem;
  container: report / inline-size;
}
.report > :not(.verdict) {
  animation: riseIn 650ms var(--ease-expo) both;
  animation-delay: calc(var(--i, 0) * 90ms + 300ms);
}
.verdict {
  --vc: var(--ok);
  position: relative;
  display: grid;
  gap: 1.25rem 2rem;
  align-items: center;
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.25rem);
  border-radius: var(--r-l);
  background:
    radial-gradient(28rem 18rem at 12% 30%, color-mix(in oklch, var(--vc) 20%, transparent), transparent 70%),
    var(--bg-1);
  border: 1px solid color-mix(in oklch, var(--vc) 38%, var(--line));
  overflow: hidden;
}
.verdict[data-tone='bad'] {
  --vc: var(--bad);
}
.verdict[data-tone='warn'] {
  --vc: var(--warn);
}
@container report (min-width: 620px) {
  .verdict {
    grid-template-columns: auto minmax(0, 1fr);
  }
}
.verdict-meta {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
}
.verdict h3 {
  font-size: var(--t-s);
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0;
  outline: none;
}
.meaning {
  margin-top: 0.4rem;
  font-size: var(--t-xl);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 24em;
}
.verdict-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.stamp {
  --sc: var(--vc);
  justify-self: start;
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 9rem;
  margin: 0.6rem;
  padding: 0.6rem 1rem 0.5rem;
  border: 3px solid var(--sc);
  outline: 1.5px solid var(--sc);
  outline-offset: 4px;
  border-radius: 6px;
  color: var(--sc);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.1rem, 0.95rem + 0.8vw, 1.45rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
  transform: rotate(-6deg);
  cursor: pointer;
  user-select: none;
  background: color-mix(in oklch, var(--sc) 8%, transparent);
}
.stamp.slam {
  animation: slam 620ms var(--ease-out) both;
  animation-delay: 200ms;
}
@keyframes slam {
  0% {
    opacity: 0;
    transform: rotate(-16deg) scale(2.3);
    filter: blur(8px);
  }
  55% {
    opacity: 1;
    transform: rotate(-6deg) scale(0.94);
    filter: blur(0);
  }
  75% {
    transform: rotate(-6deg) scale(1.025);
  }
  100% {
    opacity: 1;
    transform: rotate(-6deg) scale(1);
  }
}
.stamp::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 10px;
  border: 2px solid var(--sc);
  opacity: 0;
  pointer-events: none;
}
.stamp.slam::after {
  animation: inkRing 900ms var(--ease-out) 540ms both;
}
@keyframes inkRing {
  0% {
    opacity: 0.8;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
/* Chinese verdicts are a carved seal in brush script. */
.stamp.seal-stamp {
  min-width: 0;
  padding: 0.55rem 0.55rem 0.45rem;
  border: 0;
  outline: 0;
  border-radius: 8px;
  background: var(--sc);
  color: var(--bg);
  font-family: var(--font-brush);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.6rem + 2vw, 3.1rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  writing-mode: vertical-rl;
  text-transform: none;
  box-shadow:
    0 0 0 3px var(--bg-1),
    0 0 0 4.5px var(--sc);
}
.report-block h4 {
  margin-bottom: 0.7rem;
  font-size: var(--t-s);
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0;
}
.next {
  padding: 1.25rem 1.4rem;
  border-radius: var(--r-m);
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.next[data-tone='bad'] {
  border-color: oklch(0.67 0.21 27 / 0.5);
  background: linear-gradient(90deg, oklch(0.67 0.21 27 / 0.1), transparent 60%), var(--bg-1);
}
.next ol {
  margin: 0;
  padding-left: 1.25em;
  display: grid;
  gap: 0.5rem;
}
.next li::marker {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.85em;
}
.refs {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-s);
}
.refs ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1em;
  color: var(--ink-2);
}
.notes-text {
  color: var(--ink-2);
  max-width: 44em;
}
.evidence-grid {
  display: grid;
  gap: 1.1rem;
}
@container report (min-width: 640px) {
  .evidence-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
  }
}
.photos {
  display: grid;
  gap: 0.75rem;
}
.photo {
  position: relative;
  margin: 0;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.photo img {
  width: 100%;
  height: auto;
}
.photo .grid {
  position: absolute;
  inset: 0 0 2rem;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  pointer-events: none;
}
.cell.marked {
  --c: var(--ok);
  position: relative;
  border: 2px solid var(--c);
  border-radius: 6px;
  margin: 2px;
  background: color-mix(in oklch, var(--c) 12%, transparent);
  box-shadow: 0 0 18px color-mix(in oklch, var(--c) 35%, transparent);
  transition: background 200ms;
  animation: cellIn 600ms var(--ease-expo) both;
  animation-delay: calc(var(--i, 0) * 120ms + 700ms);
}
@keyframes cellIn {
  from {
    opacity: 0;
    transform: scale(1.25);
  }
}
.cell[data-sev='high'] {
  --c: var(--bad);
}
.cell[data-sev='medium'] {
  --c: var(--warn);
}
.cell.lit {
  background: color-mix(in oklch, var(--c) 32%, transparent);
}
.photo figcaption {
  font-size: var(--t-xs);
  color: var(--ink-3);
  padding: 0 0.75rem;
  height: 2rem;
  line-height: 2rem;
  font-family: var(--font-mono);
}
.loupe {
  position: absolute;
  z-index: 3;
  width: 9.5rem;
  height: 9.5rem;
  margin: -4.75rem 0 0 -4.75rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  box-shadow: 0 18px 40px -12px oklch(0 0 0 / 0.8);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 180ms, transform 220ms var(--ease-out);
}
.photo.zooming .loupe {
  opacity: 1;
  transform: scale(1);
}
.pins {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  display: flex;
  gap: 0.2rem;
}
.pin {
  --c: var(--ok);
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: var(--c);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.74rem;
  flex: none;
}
.pin[data-sev='high'] {
  --c: var(--bad);
}
.pin[data-sev='medium'] {
  --c: var(--warn);
}
.findings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.findings li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.7rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 200ms;
  animation: riseIn 500ms var(--ease-expo) both;
  animation-delay: calc(var(--i, 0) * 80ms + 600ms);
}
.findings li.lit,
.findings li:hover {
  background: var(--bg-2);
}
.f-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  align-items: baseline;
}
.f-title b {
  font-weight: 600;
}
.f-where {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
}
.f-detail {
  margin-top: 0.25rem;
  font-size: var(--t-s);
  color: var(--ink-2);
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  background: oklch(0.67 0.21 27 / 0.18);
  color: oklch(0.85 0.09 27);
}
.ctable {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-s);
}
.ctable th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-3);
  padding: 0 0.6rem 0.5rem 0;
  border-bottom: 1px solid var(--line-2);
}
.ctable td {
  padding: 0.55rem 0.6rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.status-chip {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  white-space: nowrap;
}
.status-chip[data-s='matches_reference'] {
  color: var(--ok);
}
.status-chip[data-s='unexpected'],
.status-chip[data-s='marking_mismatch'] {
  color: var(--bad);
}
.status-chip[data-s='unreadable'],
.status-chip[data-s='expected_not_found'] {
  color: var(--warn);
}
.note {
  font-size: var(--t-s);
  color: var(--ink-2);
  background: oklch(0.85 0.14 82 / 0.07);
  border: 1px solid oklch(0.85 0.14 82 / 0.22);
  border-radius: var(--r-s);
  padding: 0.75rem 1rem;
}
.limits {
  font-size: var(--t-s);
  color: var(--ink-3);
  max-width: 46em;
}
.meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.ticks li {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.5rem;
  color: var(--ink-2);
}
.ticks li::before {
  content: '';
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.35em;
  border: 1.5px solid var(--ink-3);
  border-radius: 4px;
}

/* Share panel */
.share {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--r-m);
  border: 1px solid var(--line-2);
  background: var(--bg-1);
}
.share-preview {
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  background: var(--bg);
}
.share-consent {
  font-size: var(--t-s);
  color: var(--ink-2);
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.btn-x {
  background: oklch(0.99 0 0);
  color: oklch(0.12 0 0);
}
.btn-x:hover {
  background: oklch(1 0 0);
}
.btn-x svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* Full-page verdict effects */
.fx {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}
.fx-glow {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 160px 30px var(--fxc);
  opacity: 0;
  animation: glow 2.6s var(--ease-out) forwards;
}
.fx-glow.alarm {
  animation: alarm 2.4s ease-in-out forwards;
}
@keyframes glow {
  20% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
  }
}
@keyframes alarm {
  15%,
  55% {
    opacity: 1;
  }
  35%,
  75% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
  }
}
.fx-bit {
  position: absolute;
  will-change: transform, opacity;
}
.fx-spark {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.fx-emoji {
  font-size: 1.6rem;
  line-height: 1;
}
.page-shake {
  animation: pageShake 480ms var(--ease-out);
}
@keyframes pageShake {
  15% {
    transform: translate(-6px, 2px) rotate(-0.3deg);
  }
  30% {
    transform: translate(6px, -2px) rotate(0.3deg);
  }
  45% {
    transform: translate(-4px, 1px);
  }
  60% {
    transform: translate(3px, -1px);
  }
  80% {
    transform: translate(-1px, 0);
  }
}
.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: var(--t-s);
  box-shadow: 0 20px 40px -20px oklch(0 0 0 / 0.8);
  animation: toast 2.8s var(--ease-out) forwards;
}
@keyframes toast {
  0% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  12%,
  85% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 6px);
  }
}

/* ——— Sections ——— */

.section {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  border-top: 1px solid var(--line);
}
.js [data-reveal] > .wrap > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 800ms var(--ease-expo),
    transform 800ms var(--ease-expo);
}
.js [data-reveal].in > .wrap > * {
  opacity: 1;
  transform: none;
}
.js [data-reveal].in > .wrap > *:nth-child(2) {
  transition-delay: 80ms;
}
.js [data-reveal].in > .wrap > *:nth-child(3) {
  transition-delay: 160ms;
}
.js [data-reveal].in > .wrap > *:nth-child(n + 4) {
  transition-delay: 240ms;
}
.section-intro {
  margin-top: 0.9rem;
  max-width: 40em;
  color: var(--ink-2);
  font-size: var(--t-l);
  line-height: 1.5;
}
.decide {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.decide li {
  --c: var(--ok);
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.15rem 1.35rem 1.15rem 1.6rem;
  border-radius: var(--r-m);
  background: var(--bg-1);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: border-color 200ms, transform 300ms var(--ease-out);
}
.decide li::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--c);
}
.decide li:hover {
  border-color: var(--line-2);
  transform: translateX(3px);
}
.decide li[data-tone='act'] {
  --c: var(--warn);
}
.decide li[data-tone='stop'] {
  --c: var(--bad);
}
@media (min-width: 820px) {
  .decide li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: baseline;
  }
}
.decide .when {
  font-weight: 600;
}
.decide .then {
  color: var(--ink-2);
}
.open-tips {
  margin-top: 2.25rem;
  max-width: 46rem;
}
.open-tips h3,
.photo-tips h3 {
  margin-bottom: 0.9rem;
}
.signs {
  margin-top: 2.25rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) {
  .signs {
    grid-template-columns: 1fr 1fr;
  }
}
.sign {
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: var(--r-m);
  background: var(--bg-1);
  border: 1px solid var(--line);
  transition: border-color 250ms, background 250ms;
}
.sign:hover {
  border-color: oklch(0.74 0.12 58 / 0.5);
  background: linear-gradient(160deg, oklch(0.74 0.12 58 / 0.07), transparent 50%), var(--bg-1);
}
.sign-n {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--copper);
  margin-bottom: 0.7rem;
}
.sign h3 {
  margin-bottom: 0.35rem;
}
.sign p:not(.sign-n) {
  color: var(--ink-2);
}
.photo-tips {
  margin-top: 2.75rem;
  max-width: 46rem;
}
.photo-tips ol {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 0.45rem;
  color: var(--ink-2);
}
.photo-tips li::marker {
  font-family: var(--font-mono);
  color: var(--copper);
}
.layers {
  margin-top: 2.25rem;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 900px) {
  .layers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.layer {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1.4rem;
  border-radius: var(--r-m);
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.layer-n {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--copper);
}
.layer-head p {
  font-size: var(--t-s);
  color: var(--ink-3);
}
.k {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--ok);
  margin-bottom: 0.25rem;
}
.miss .k {
  color: var(--bad);
}
.layer-col p:not(.k) {
  color: var(--ink-2);
  font-size: var(--t-s);
}
.callout {
  margin-top: 1.75rem;
  max-width: 44em;
  font-size: var(--t-l);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.015em;
  padding: 1.2rem 1.4rem;
  border-radius: var(--r-m);
  border: 1px solid oklch(0.67 0.21 27 / 0.35);
  background: linear-gradient(90deg, oklch(0.67 0.21 27 / 0.12), transparent 70%);
}
.guides {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 900px) {
  .guides {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.guides a {
  height: 100%;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 1.4rem;
  border-radius: var(--r-m);
  background: var(--bg-1);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 250ms, transform 350ms var(--ease-out), background 250ms;
}
.guides a:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  background: var(--bg-2);
}
.guide-brand {
  font-size: var(--t-xl);
  font-weight: 650;
  letter-spacing: -0.03em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guide-brand::after {
  content: '→';
  font-size: 1rem;
  color: var(--ink-3);
  transition: transform 300ms var(--ease-out), color 200ms;
}
.guides a:hover .guide-brand::after {
  transform: translateX(4px);
  color: var(--copper-2);
}
.guide-models {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--copper);
}
.guide-short {
  color: var(--ink-2);
  font-size: var(--t-s);
}
.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.timeline li {
  display: grid;
  gap: 0.25rem 2rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .timeline li {
    grid-template-columns: 10rem minmax(0, 1fr);
  }
}
.timeline .when {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--copper);
  padding-top: 0.25em;
}
.timeline h3 {
  font-size: var(--t-m);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.timeline p {
  color: var(--ink-2);
  font-size: var(--t-s);
  max-width: 48em;
}
.sources {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: var(--t-xs);
}
.sources a {
  color: var(--ink-3);
}
.faq {
  margin-top: 2rem;
  max-width: 52rem;
}
.faq details {
  border-bottom: 1px solid var(--line);
  interpolate-size: allow-keywords;
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding-block: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  transition: color 160ms;
}
.faq summary:hover {
  color: var(--copper-2);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-top: 0.45em;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 300ms var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(225deg);
}
.faq details::details-content {
  height: 0;
  overflow: hidden;
  transition:
    height 400ms var(--ease-out),
    content-visibility 400ms allow-discrete;
}
.faq details[open]::details-content {
  height: auto;
}
.faq details > div {
  padding-bottom: 1.25rem;
  color: var(--ink-2);
  max-width: 46em;
}

/* ——— Brand and about pages ——— */

.page-head {
  padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) 2.5rem;
}
.page-head h1 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.9rem);
  max-width: 18em;
}
.page-head .lede {
  margin-top: 1.25rem;
}
.crumbs {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
  margin-bottom: 1.25rem;
}
.crumbs a {
  color: var(--ink-2);
}
.toc {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
}
.toc a {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  text-decoration: none;
  font-size: var(--t-s);
  font-weight: 500;
  transition: border-color 200ms, background 200ms;
}
.toc a::before {
  content: counter(toc);
  font-family: var(--font-mono);
  color: var(--copper);
}
.toc a:hover {
  border-color: var(--line-2);
  background: var(--bg-2);
}
.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 1rem + 4vw, 5rem);
  }
}
.step-label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--copper);
  margin-bottom: 0.6rem;
}
.steps {
  margin: 1.5rem 0 0;
  padding-left: 1.3em;
  display: grid;
  gap: 0.85rem;
  color: var(--ink-2);
}
.steps li::marker {
  font-family: var(--font-mono);
  color: var(--copper);
}
.facts {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.facts > div {
  padding: 1.25rem 1.35rem;
  border-radius: var(--r-m);
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.facts .miss {
  border-color: oklch(0.67 0.21 27 / 0.35);
}
.prose {
  max-width: 42em;
  display: grid;
  gap: 0.9rem;
  color: var(--ink-2);
}
.prose b {
  color: var(--ink);
}
#check .section-intro {
  margin-bottom: 2rem;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--bg-1);
}
.devices {
  width: 100%;
  border-collapse: collapse;
}
.devices th,
.devices td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-s);
}
.devices tr:last-child > * {
  border-bottom: 0;
}
.devices thead th {
  font-weight: 500;
  color: var(--ink-3);
  background: var(--bg-2);
}
.devices tbody th {
  font-weight: 600;
  white-space: nowrap;
}
.devices tbody th .muted {
  font-weight: 400;
}
.devices td {
  color: var(--ink-2);
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}
@media (max-width: 720px) {
  .devices thead {
    display: none;
  }
  .devices tr {
    display: grid;
    gap: 0.5rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  .devices th,
  .devices td {
    border: 0;
    padding: 0;
  }
  .devices td[data-k]::before {
    content: attr(data-k);
    display: block;
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    color: var(--ink-3);
  }
}
.section > .wrap > .note {
  margin-top: 1.5rem;
  max-width: 52rem;
}
.brand-checker {
  margin-top: 2rem;
  max-width: 820px;
}
.small-h {
  font-size: var(--t-l);
}
.sources-section {
  padding-block: 2.5rem;
}
.source-list {
  margin: 0.9rem 0 0;
  padding-left: 1.2em;
  font-size: var(--t-s);
  color: var(--ink-3);
  display: grid;
  gap: 0.3rem;
}

/* ——— Footer ——— */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 4rem;
  font-size: var(--t-s);
  color: var(--ink-3);
}
.site-footer .wrap {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .site-footer .wrap {
    grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.3fr);
  }
}
.footer-about {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.site-footer .made {
  color: var(--ink-2);
}
.site-footer h2 {
  font-size: var(--t-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ink);
}
.footer-langs {
  grid-template-columns: repeat(2, max-content);
  column-gap: 1.75rem;
}
.fineprint {
  font-size: var(--t-xs);
}

/* ——— Motion preferences and print ——— */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .pulse,
  .scan-beam,
  .fx {
    display: none;
  }
  .js [data-reveal] > .wrap > * {
    opacity: 1;
    transform: none;
  }
}

@media print {
  :root {
    color-scheme: light;
    --ink: #111;
    --ink-2: #333;
    --ink-3: #555;
    --line: #ccc;
    --bg-1: #fff;
    --bg-2: #f4f4f4;
  }
  html,
  body {
    background: #fff;
  }
  .backdrop {
    display: none;
  }
  body * {
    visibility: hidden;
  }
  .report,
  .report * {
    visibility: visible;
  }
  .report {
    position: absolute;
    inset: 0 0 auto;
    padding: 0;
  }
  .report * {
    animation: none !important;
  }
  .verdict-actions,
  .report-actions,
  .share {
    display: none !important;
  }
  .verdict,
  .next,
  .photo,
  .findings li {
    break-inside: avoid;
  }
}
