/* WITNESS creative system - "Everything testifies."
   One motif everywhere: THE CHECK. Loading is the contract's nine checks.
   Verdicts arrive as stamps. A changed word flips like evidence under a lamp.
   No decoration that is not the product idea. */

:root { --wm-teal: #0b3b39; --wm-lime: #c6d92e; --wm-paper: #f6f4ec; }

/* - The Thread: one evidence line tying W/001 to W/002, fills as you read - */
#wm-thread { position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--wm-teal), var(--wm-lime));
  z-index: 60; transition: width .12s linear; }

/* - The Stamp: verdicts are stamped, not faded in - */
@keyframes wm-stamp {
  0% { transform: scale(1.7) rotate(-9deg); opacity: 0; }
  55% { transform: scale(.94) rotate(-2.5deg); opacity: 1; }
  75% { transform: scale(1.04) rotate(-3.4deg); }
  100% { transform: scale(1) rotate(-3deg); opacity: 1; }
}
@keyframes wm-inkring {
  0% { box-shadow: 0 0 0 0 rgba(11,59,57,.45); }
  100% { box-shadow: 0 0 0 14px rgba(11,59,57,0); }
}
.wm-stamp-in { animation: wm-stamp .38s cubic-bezier(.2,1.4,.4,1) both, wm-inkring .5s ease-out .3s; }
.wt-ev-stamp, #verdict-icon { will-change: transform; }

/* - The Swap: the one changed word flips under the lamp - */
@keyframes wm-swap {
  0% { background: rgba(198,217,46,.0); }
  25% { background: rgba(198,217,46,.85); color: var(--wm-teal); }
  100% { background: rgba(198,217,46,.18); }
}
.wm-swap b, .wm-swap .wt-ev-flag, .wm-swap #wt-request-account { animation: wm-swap .7s ease-out; border-radius: 3px; }
@keyframes wm-neq { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-6deg); } 100% { transform: scale(1); } }
.wm-swap #wt-compare-sign, .wm-swap #wt-ev-versus { animation: wm-neq .5s ease-out; }

/* - The Nine Checks: the only loading state in the product - */
.wm-checks { list-style: none; margin: 12px 0 0; padding: 12px 14px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 16px;
  border: 1px dashed rgba(11,59,57,.4); border-radius: 10px; background: rgba(246,244,236,.7);
  font-size: 12.5px; }
.wm-checks li { opacity: .28; display: flex; gap: 7px; align-items: baseline; transition: opacity .15s; }
.wm-checks li::before { content: "○"; font-size: 11px; }
.wm-checks li.on { opacity: 1; }
.wm-checks li.on::before { content: "●"; color: var(--wm-teal); }
.wm-checks li.done::before { content: "✓"; color: var(--wm-teal); font-weight: 700; }
.wm-checks .wm-checks-head { grid-column: 1 / -1; font-weight: 700; letter-spacing: .08em;
  font-size: 11px; text-transform: uppercase; opacity: 1; }
.wm-checks .wm-checks-head::before { content: ""; }

/* - Skeleton evidence: the chain is being read, rows shimmer like paper - */
@keyframes wm-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.wm-skeleton { color: transparent !important; border-radius: 6px;
  background: linear-gradient(90deg, rgba(11,59,57,.08) 25%, rgba(11,59,57,.18) 50%, rgba(11,59,57,.08) 75%);
  background-size: 800px 100%; animation: wm-shimmer 1.1s infinite linear; }

/* - Buttons press like a stamp, focus rings are the brand - */
button { transition: transform .08s ease, box-shadow .08s ease; }
button:active { transform: translateY(1.5px) scale(.995); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--wm-lime); outline-offset: 2px; }

/* - Attack Lab verdict icon inherits the stamp - */
#verdict.denied #verdict-icon, #verdict.paid #verdict-icon { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
