
@font-face { font-family: 'Inter'; src: url('./fonts/inter-var.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('./fonts/instrument-serif.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
:root {
  --bg: #050508;
  --fg: #f4f4f1;
  --muted: #b0b0ba;
  --faint: #93939e;
  --line: rgba(255, 255, 255, .14);
  --ok: #34d399; --ok-bg: rgba(16, 185, 129, .15);
  --bad: #f87171; --bad-bg: rgba(239, 68, 68, .16);
  --wait: #a5b4fc; --wait-bg: rgba(99, 102, 241, .2);
  --spring: cubic-bezier(.16, 1, .3, 1);
  --apex: 58vh;
  --ring: 62vw;
  --hud-y: 72vh;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  font: 450 15px/1.5 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--wait); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sky { position: absolute; inset: 0; overflow: clip; pointer-events: none; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html[data-gl] .flat { display: none; }
.flat {
  position: absolute;
  left: calc(50% - var(--ring));
  top: var(--apex);
  width: calc(var(--ring) * 2);
  height: calc(var(--ring) * 2);
  border-radius: 50%;
  background: conic-gradient(from 270deg, #8b5cf6, #6366f1 25%, #4d90d3 38%, #14b8a6 50%, #4d90d3 62%, #6366f1 75%, #8b5cf6);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
#labels { position: absolute; inset: 0; }
.pay {
  position: absolute;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(8, 8, 12, .62);
  color: #f0f0f4;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  animation: pz-pay 1800ms ease both;
}
@keyframes pz-pay {
  0% { opacity: 0; transform: translate(-50%, -10px); }
  12% { opacity: 1; transform: translate(-50%, -18px); }
  68% { opacity: 1; transform: translate(-50%, -26px); }
  100% { opacity: 0; transform: translate(-50%, -32px); }
}
.trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity 320ms ease; }
.trace[data-on] { opacity: 1; }
html:not([data-gl]) .trace { display: none; }
#tie { stroke: rgba(255, 255, 255, .34); stroke-width: 1; }
.mark-ring { fill: none; stroke: #fff; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; transition: stroke 240ms ease; }
.mark-dot { fill: #fff; transition: fill 240ms ease; }
.courier { fill: #fff; }
.trace[data-tone='ok'] .mark-ring { stroke: var(--ok); }
.trace[data-tone='ok'] .mark-dot { fill: var(--ok); }
.trace[data-tone='bad'] .mark-ring { stroke: var(--bad); }
.trace[data-tone='bad'] .mark-dot { fill: var(--bad); }
[data-motion] .mark-ring { animation: pz-mark 1900ms ease-out infinite; }
@keyframes pz-mark { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 10px max(clamp(16px, 4vw, 56px), env(safe-area-inset-right)) 0 max(clamp(16px, 4vw, 56px), env(safe-area-inset-left));
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -.012em; }
.logo-mark { position: relative; width: 20px; height: 20px; border-radius: 50%; background: conic-gradient(from 90deg, #14b8a6, #4d90d3 12%, #6366f1 22%, #8b5cf6 50%, #6366f1 78%, #4d90d3 88%, #14b8a6); }
.logo-mark::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg); }
.ghost {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  margin-right: -10px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 140ms ease;
}
.ghost:hover { color: var(--fg); }
main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0 16px; }
.copy { display: flex; flex-direction: column; align-items: center; max-width: 1040px; padding-top: clamp(4px, 2.2vh, 26px); }
h1 {
  margin: 0;
  font: 400 clamp(42px, 6.1vw, 92px)/1 'Instrument Serif', ui-serif, Georgia, serif;
  letter-spacing: -.016em;
  text-align: center;
  text-wrap: balance;
}
.lede { margin: 14px 0 0; max-width: 37em; text-align: center; color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -.003em;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease, transform 200ms var(--spring);
}
.btn:active { transform: scale(.98); }
.primary { background: var(--fg); color: #08080b; }
.primary:hover { background: #fff; }
.quiet { background: rgba(255, 255, 255, .05); border-color: var(--line); -webkit-tap-highlight-color: transparent; }
.quiet:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .24); }
.quiet.down { transform: scale(.98); }
[data-motion] .primary.glow { animation: pz-glow 1400ms ease-out 2; }
@keyframes pz-glow {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .75), 0 0 0 0 rgba(20, 184, 166, .5); }
  100% { box-shadow: 0 0 0 9px rgba(139, 92, 246, 0), 0 0 0 18px rgba(20, 184, 166, 0); }
}
html[data-run] .quiet { opacity: .5; cursor: default; }
html:not([data-js]) .quiet { display: none; }
.ret { font-size: 13px; color: var(--muted); }
.hud {
  position: absolute;
  z-index: 2;
  left: var(--hud-x, calc(50% - 174px));
  top: var(--hud-y);
  width: min(100% - 32px, 348px);
  padding: 10px 14px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 9, 13, .74);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 240ms ease, transform 500ms var(--spring), visibility 0s 240ms;
}
html[data-run] .hud { opacity: 1; visibility: visible; transform: none; transition: opacity 240ms ease, transform 500ms var(--spring), visibility 0s; }
.chips { display: flex; gap: 2px; margin: 0 -6px; }
.chip {
  position: relative;
  flex: 0 1 auto;
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.chip::after { content: ''; position: absolute; inset: -8px 0; }
.chip:hover { color: var(--fg); }
.chip[aria-pressed='true'] { background: rgba(255, 255, 255, .1); color: var(--fg); }
.hud-amount { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-top: 8px; }
.amt { font-size: 28px; line-height: 1.1; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt small { margin-left: 5px; font-size: 13px; font-weight: 450; letter-spacing: 0; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 5px; font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: color 200ms ease, background 200ms ease; }
.status:empty { display: none; }
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.s-ok { color: var(--ok); background: var(--ok-bg); }
.s-bad { color: var(--bad); background: var(--bad-bg); }
.s-wait { color: var(--wait); background: var(--wait-bg); }
.rows { list-style: none; display: grid; align-content: start; gap: 2px; min-height: 98px; margin: 8px 0 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 23px; font-size: 13.5px; line-height: 1.3; color: var(--faint); transition: color 220ms ease; }
.rows li[data-state='now'] { color: var(--fg); font-weight: 500; }
.rows li[data-state='ok'] { color: #d4d4db; }
.rows li[data-state='bad'] { color: var(--fg); }
.tick { position: relative; display: grid; place-items: center; width: 16px; height: 16px; }
.tick::before { content: ''; width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; opacity: .75; }
[data-state='now'] .tick::before { background: var(--wait); border-color: var(--wait); opacity: 1; }
[data-motion] [data-state='now'] .tick::before { animation: pz-now 1100ms ease-in-out infinite; }
@keyframes pz-now { 50% { transform: scale(1.5); opacity: .55; } }
.tick svg { display: none; position: absolute; width: 15px; height: 15px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tick-ok { stroke: var(--ok); }
.tick-bad { stroke: var(--bad); }
[data-state='ok'] .tick::before, [data-state='bad'] .tick::before { display: none; }
[data-state='ok'] .tick-ok, [data-state='bad'] .tick-bad { display: block; }
.why { min-height: 19px; margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: #d4d4db; }
.hud-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 26px; margin-top: 6px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.link { position: relative; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link::after { content: ''; position: absolute; inset: -14px -10px; }
.link:hover { color: var(--fg); }
footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px 20px;
  flex-wrap: wrap;
  padding: 26px max(clamp(16px, 4vw, 56px), env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(clamp(16px, 4vw, 56px), env(safe-area-inset-left));
  font-size: 12.5px;
  color: #c4c4cd;
}
footer a { position: relative; text-underline-offset: 3px; }
footer a::after { content: ''; position: absolute; inset: -14px -8px; }
.note { text-align: center; }
.note:empty { display: none; }
.foot-end { display: flex; align-items: center; gap: 20px; }
.link[hidden] { display: none; }
[data-motion] .copy > * { animation: pz-rise 1200ms var(--spring) both; }
[data-motion] .lede { animation-delay: 80ms; }
[data-motion] .actions { animation-delay: 160ms; }
[data-motion] footer { animation: pz-fade 1400ms ease 300ms both; }
@keyframes pz-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pz-fade { from { opacity: 0; } to { opacity: 1; } }
html:not([data-motion]) *, html:not([data-motion]) *::before, html:not([data-motion]) *::after { transition: none !important; }
@media (max-height: 760px) and (min-width: 621px) {
  .nav { min-height: 52px; padding-top: 4px; }
  h1 { font-size: clamp(42px, 5vw, 66px); }
  .lede { margin-top: 8px; font-size: 14.5px; }
  .actions { margin-top: 12px; }
}
@media (max-height: 560px) {
  body { min-height: 660px; }
}
@media (max-width: 620px) {
  body { min-height: max(100svh, 780px); }
  .copy { padding-top: 10px; }
  .note { order: 3; width: 100%; text-align: left; }
}
@media (max-width: 350px) {
  body { min-height: max(100svh, 880px); }
  .why { min-height: 37px; }
}
