/* Prism app screens: light, calm, still. Shared by /app, /pay/:handle, /proof, /whitepaper. */
:root {
  --paper: #f3f1ec;
  --card: rgba(255, 255, 255, 0.72);
  --ink: #111111;
  --ink-2: #57544f;
  --ink-3: #8a8780;
  --line: rgba(17, 17, 17, 0.1);
  --line-2: rgba(17, 17, 17, 0.16);
  --good: #1f7a4d;
  --bad: #a8322a;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 14px;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
.mono { font-family: var(--mono); }
code, .addr { font-family: var(--mono); font-size: 0.92em; }

/* A still wash of spectrum light at the top of the page */
.glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 38% at 78% -6%, rgba(120, 140, 255, 0.16), transparent 70%),
    radial-gradient(50% 32% at 58% -10%, rgba(80, 220, 160, 0.13), transparent 70%),
    radial-gradient(46% 30% at 36% -8%, rgba(255, 190, 90, 0.13), transparent 70%),
    radial-gradient(40% 28% at 18% -6%, rgba(255, 110, 110, 0.1), transparent 70%);
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px 40px; background: rgba(243, 241, 236, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.nav-mid { display: flex; gap: 28px; font-size: 14px; }
.nav-mid a { text-decoration: none; color: var(--ink-2); }
.nav-mid a:hover, .nav-mid a[aria-current="page"] { color: var(--ink); }
.nav-mid a[aria-current="page"] { font-weight: 500; }
.nav-end { display: flex; justify-content: flex-end; align-items: center; gap: 18px; font-size: 14px; }
.nav-ghost { text-decoration: none; color: var(--ink-2); }

/* Layout */
.wrap { position: relative; z-index: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; flex: 1; }
.wrap.wide { max-width: 1040px; }
.eyebrow { font: 500 11px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 16px; }
.title { margin: 0; font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 0.95; letter-spacing: -0.055em; }
.title .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; }
.lede { color: var(--ink-2); font-size: 17px; max-width: 46ch; margin: 18px 0 0; }
.section { margin-top: 48px; }
.section h2 { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 14px; }

/* Panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 20px 50px -30px rgba(40, 30, 10, 0.25); }
.panel + .panel { margin-top: 16px; }
.panel h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.panel p { margin: 0; color: var(--ink-2); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.spread { justify-content: space-between; }
.stack { display: grid; gap: 12px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }

/* Big numbers */
.figure { font-weight: 700; font-size: clamp(40px, 7vw, 64px); letter-spacing: -0.05em; line-height: 1; }
.figure small { font-size: 0.4em; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); margin-left: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px var(--sans); letter-spacing: -0.01em; border: 0; border-radius: 10px; padding: 13px 20px; text-decoration: none; cursor: pointer; transition: background .2s ease, transform .15s ease, opacity .2s ease; white-space: nowrap; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #f7f5f1; }
.btn-dark:hover:not([disabled]) { background: #2a2926; }
.btn-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-light:hover:not([disabled]) { background: #faf9f6; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }

/* Fields */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--ink-2); }
.input { display: flex; align-items: center; background: #fff; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 14px; }
.input:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 16px var(--sans); color: var(--ink); padding: 13px 0; }
.input .pre, .input .post { font: 13px var(--mono); color: var(--ink-3); white-space: nowrap; }
.input.big input { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; padding: 16px 0; }
.choice { display: grid; gap: 8px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); background: #fff; cursor: pointer; }
.choice label:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.choice input { margin-top: 3px; accent-color: var(--ink); }
.choice b { display: block; font-weight: 600; font-size: 14px; }
.choice span { font-size: 13px; color: var(--ink-2); }

/* Notices */
.note { padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
.note.ok { color: var(--good); box-shadow: inset 0 0 0 1px rgba(31,122,77,.3); background: rgba(31,122,77,.06); }
.note.err { color: var(--bad); box-shadow: inset 0 0 0 1px rgba(168,50,42,.3); background: rgba(168,50,42,.05); }
[hidden] { display: none !important; }

/* Lists and tables */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: center; }
.list li:first-child { border-top: 0; }
.list .addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list a { text-decoration: none; }
.list a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding: 0 12px 12px 0; white-space: nowrap; }
td { padding: 14px 12px 14px 0; border-top: 1px solid var(--line); vertical-align: top; }
td a { text-decoration: none; }
td a:hover { text-decoration: underline; }
td.num { text-align: right; white-space: nowrap; }
.empty { padding: 40px 0; text-align: center; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* Link card (the share link) */
.link-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); padding: 6px 6px 6px 16px; }
.link-card code { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Token strip */
.token-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.ca { display: flex; align-items: center; gap: 12px; max-width: 100%; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); border: 0; border-radius: 10px; padding: 0 14px; min-height: 46px; cursor: pointer; color: var(--ink); }
.ca .label { font-size: 12px; color: var(--ink-2); }
.ca code { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-hint { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); flex: none; }

/* Footer */
.foot { position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 40px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); }
.foot-links { display: flex; gap: 18px; }

@media (max-width: 720px) {
  .nav { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .nav-mid { display: none; }
  .nav-end .nav-ghost { display: none; }
  .wrap { padding: 40px 16px 72px; }
  .panel { padding: 18px; }
  .foot { padding: 20px 16px; }
}
