/* Backroom: tokens and parts from DESIGN.md (Quinn's Ledger CSS). */
:root {
  --page: #020202;
  --t1: #F3F3F3; --t2: #B3B3B3; --t3: #8C8C8C; --t4: #6E6E6E;
  --line: rgb(255 255 255 / 0.09); --line2: rgb(255 255 255 / 0.14);
  --fill: rgb(255 255 255 / 0.045); --fill2: rgb(255 255 255 / 0.09);
  --focus: rgb(255 255 255 / 0.32);
  --glass: rgb(18 18 22 / 0.74);
  --glass-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 0 0 1px var(--line), 0 18px 40px rgb(0 0 0 / 0.9);
  --solid: #F5F5F5; --solid-hover: #DCDCDC; --on: #0D0D0D;
  --money: #1DB954; --down: #FF6B6B;
  --sans: 'Satoshi', system-ui, sans-serif;
  --italic: 'Gambetta', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh; background: var(--page); color: var(--t1);
  font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.it { font-family: var(--italic); font-style: italic; font-weight: 400; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Words */
.label { margin: 0; color: var(--t3); font: 500 11px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.muted { color: var(--t3); }

/* Glass */
.panel {
  border-radius: 16px; background: var(--glass); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.pad { padding: 16px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { padding: 12px 0; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.pill.solid { background: var(--solid); color: var(--on); }
.pill.solid:hover { background: var(--solid-hover); }
.pill.solid:disabled { background: var(--fill2); color: var(--t4); cursor: default; }
.pill.hair { background: var(--fill); color: var(--t1); box-shadow: inset 0 0 0 1px var(--line2); }
.pill.hair:hover { background: var(--fill2); }
.pill.sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* Top bar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: env(safe-area-inset-top) 16px 0; border-bottom: 1px solid transparent;
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease);
}
.bar.scrolled {
  background: rgb(4 4 4 / 0.72); border-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.wordmark { color: var(--t1); font: 700 18px/1 var(--sans); letter-spacing: -0.02em; text-decoration: none; }

/* Blur-in (Quinn's blurIn) */
@keyframes blurIn { from { filter: blur(12px); opacity: 0; } to { filter: blur(0); opacity: 1; } }
.reveal > span, .l-reveal { display: inline-block; opacity: 0; animation: blurIn .8s var(--ease) forwards; }
.reveal > span:nth-child(2) { animation-delay: .08s; }
.reveal > span:nth-child(3) { animation-delay: .16s; }
.reveal > span:nth-child(4) { animation-delay: .24s; }
.reveal > span:nth-child(5) { animation-delay: .32s; }
.pill.l-reveal { display: inline-flex; }
[id] { scroll-margin-top: 80px; }
.l-reveal.d1 { animation-delay: .45s; }
.l-reveal.d2 { animation-delay: .6s; }

/* Fields (the big borderless step input) */
.field { display: flex; align-items: baseline; gap: 2px; border-bottom: 1px solid var(--line2); transition: border-color 150ms var(--ease); }
.field:focus-within { border-color: var(--focus); }
.field span { color: var(--t3); font: 900 26px/1.2 var(--sans); }
.field input {
  flex: 1; min-width: 0; padding: 8px 0 12px; border: 0; outline: 0; background: none; color: var(--t1);
  font: 900 26px/1.2 var(--sans); letter-spacing: -0.02em; caret-color: var(--t1); border-radius: 0;
}
.field input::placeholder { color: var(--t4); opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal > span, .l-reveal { opacity: 1; }
}
