:root {
  --chalk: #f2f0e8;
  --paper: #fffef7;
  --ink: #1b1b18;
  --soft-ink: #54534d;
  --line: #b8b5aa;
  --acid: #efff48;
  --signal: #ff4d26;
  --blue: #1547ff;
  --sans: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", sans-serif;
  --body: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { background: var(--chalk); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: var(--body); background: var(--chalk); }
button, input, select { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.prototype-bar { height: 27px; display: flex; align-items: center; justify-content: center; gap: 8px; color: white; background: var(--ink); font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .13em; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 3px rgba(239,255,72,.18); }
.site-header { height: 82px; padding: 0 clamp(20px, 4vw, 64px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--ink); }
.wordmark { display: flex; align-items: center; width: max-content; gap: 9px; font: 850 19px/1 var(--sans); letter-spacing: -.035em; text-decoration: none; }
.mark { width: 36px; height: 36px; display: grid; place-items: center; color: var(--acid); background: var(--ink); font: 800 14px/1 var(--mono); }
nav { display: flex; align-items: center; gap: 34px; }
nav a { position: relative; padding: 31px 0 27px; font: 750 13px/1 var(--body); text-decoration: none; }
nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 5px; background: var(--signal); }
.network-mark { justify-self: end; font: 750 9px/1.15 var(--mono); letter-spacing: .1em; text-align: right; }

main { min-height: calc(100vh - 180px); }
.view { width: min(1400px, calc(100% - clamp(40px, 8vw, 128px))); margin-inline: auto; padding: clamp(50px, 7vw, 98px) 0; }
.home-view { min-height: calc(100vh - 109px); display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(36px, 8vw, 130px); padding-top: 54px; overflow: hidden; }
.kicker, .utility-label { margin: 0 0 18px; font: 800 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.kicker::before { content: ""; width: 24px; height: 2px; display: inline-block; margin: 0 10px 3px 0; background: var(--signal); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 28px; font: 900 clamp(56px, 7vw, 112px)/.82 var(--sans); letter-spacing: -.07em; text-transform: uppercase; }
h1 em { color: transparent; -webkit-text-stroke: 1.5px var(--ink); font-style: normal; }
.lede { max-width: 620px; margin-bottom: 34px; color: var(--soft-ink); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.52; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 30px; padding: 13px 19px; border: 1px solid var(--ink); border-radius: 0; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { box-shadow: 4px 4px 0 var(--signal); }
.button-acid { color: var(--ink); background: var(--acid); }
.button-ghost { background: transparent; }
.button.full { width: 100%; }
.text-link, .text-button { border: 0; border-bottom: 1px solid var(--ink); padding: 4px 0; color: var(--ink); background: none; font-weight: 750; text-decoration: none; cursor: pointer; }
.principles { display: flex; gap: clamp(20px, 3vw, 48px); margin: 54px 0 0; }
.principles div { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.principles dt { color: var(--signal); font: 800 9px/1.4 var(--mono); }
.principles dd { margin: 0; font: 750 11px/1.4 var(--body); text-transform: uppercase; }

.hero-object { min-height: 690px; position: relative; display: grid; place-items: center; }
.hero-object::before { content: ""; position: absolute; width: 530px; height: 530px; border-radius: 50%; background: var(--acid); }
.receipt-shadow { position: absolute; z-index: 1; width: 345px; height: 574px; transform: rotate(8deg) translate(35px,25px); background: var(--ink); }
.cash-slip { position: relative; color: var(--ink); background-color: var(--paper); background-image: radial-gradient(#d8d5c9 .65px, transparent .65px); background-size: 4px 4px; border: 1px solid var(--ink); box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.cash-slip::before, .cash-slip::after { content: ""; position: absolute; left: -1px; right: -1px; height: 8px; background: radial-gradient(circle at 4px 0, transparent 4px, var(--paper) 4.5px) 0 0/12px 8px repeat-x; }
.cash-slip::before { top: -1px; transform: rotate(180deg); }
.cash-slip::after { bottom: -1px; }
.cash-slip-hero { z-index: 2; width: 330px; min-height: 570px; padding: 22px 23px 27px; transform: rotate(-6deg); }
.slip-topline { display: flex; justify-content: space-between; margin: 3px 0 12px; font: 700 8px/1 var(--mono); letter-spacing: .08em; }
.art { height: 170px; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--ink); }
.art i { position: absolute; display: block; border: 2px solid var(--paper); border-radius: 50%; }
.art i:nth-child(1) { width: 235px; height: 235px; }
.art i:nth-child(2) { width: 155px; height: 155px; }
.art i:nth-child(3) { width: 76px; height: 76px; }
.art b { z-index: 1; color: var(--paper); font: 900 40px/1 var(--sans); }
.art-signal i { border-radius: 0; transform: rotate(45deg); }
.art-void { background: repeating-radial-gradient(circle at 75% 30%, var(--paper) 0 2px, var(--ink) 3px 8px); }
.art-orbit i:nth-child(2) { transform: translate(45px,-20px); }
.art-noise { background: repeating-linear-gradient(98deg,var(--ink) 0 4px,var(--paper) 4px 5px,var(--ink) 5px 11px); }
.art-blocks { background: conic-gradient(from 90deg at 50% 50%, var(--paper) 0 25%,var(--ink) 0 50%,var(--paper) 0 75%,var(--ink) 0); background-size: 48px 48px; }
.slip-title { margin: 15px 0 12px; font: 950 34px/.84 var(--sans); letter-spacing: -.055em; }
.slip-alias { padding: 7px 0; border-block: 1px dashed var(--ink); font: 800 9px/1 var(--mono); letter-spacing: .12em; }
.slip-value { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; }
.slip-value strong { font: 950 52px/.8 var(--sans); letter-spacing: -.06em; }
.slip-value span { font: 800 11px/1 var(--mono); }
.fake-qr { width: 62px; aspect-ratio: 1; border: 6px solid var(--paper); outline: 1px solid var(--ink); background: conic-gradient(from 90deg, var(--ink) 25%,transparent 0 50%,var(--ink) 0 75%,transparent 0) 0 0/12px 12px, repeating-linear-gradient(45deg,transparent 0 4px,var(--ink) 4px 7px); }
.cash-slip-hero > .fake-qr { margin: 18px auto 10px; }
.slip-foot { margin-top: 12px; font: 650 6px/1.25 var(--mono); text-align: center; text-transform: uppercase; }
.object-note { position: absolute; z-index: 3; padding: 7px 9px; color: white; background: var(--blue); font: 800 9px/1 var(--mono); letter-spacing: .08em; }
.note-a { left: 0; top: 25%; transform: rotate(-8deg); }
.note-b { right: 2%; bottom: 22%; color: var(--ink); background: var(--acid); transform: rotate(4deg); }

.home-manifesto, .snippet-flow, .protocol-strip, .security-ledger, .nsnip-bridge { grid-column: 1 / -1; width: 100%; }
.home-manifesto { margin-top: clamp(40px,7vw,110px); padding: clamp(35px,6vw,82px); color: white; background: var(--ink); }
.home-manifesto .kicker::before, .protocol-strip .kicker::before { background: var(--acid); }
.home-manifesto h2, .snippet-flow h2, .protocol-strip h2, .security-ledger h2, .nsnip-bridge h2 { margin: 0; font: 900 clamp(40px,5.5vw,78px)/.88 var(--sans); letter-spacing: -.055em; text-transform: uppercase; }
.manifesto-lede { max-width: 980px; margin: 28px 0 48px; color: #d2d0c7; font-size: clamp(18px,2vw,27px); line-height: 1.45; }
.manifesto-lede strong { color: var(--acid); }
.concept-pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #77766f; }
.concept-pair article { padding: clamp(25px,4vw,50px); }
.concept-pair article + article { border-left: 1px solid #77766f; }
.concept-pair span, .ledger-grid article > span { color: var(--acid); font: 800 9px/1 var(--mono); letter-spacing: .14em; }
.concept-pair h3 { margin: 13px 0; font: 900 30px/1 var(--sans); text-transform: uppercase; }
.concept-pair p { margin: 0; color: #bbb9b1; line-height: 1.65; }

.snippet-flow { padding-block: clamp(70px,9vw,130px); }
.snippet-flow header { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.snippet-flow ol { counter-reset: flow; display: grid; grid-template-columns: repeat(4,1fr); margin: 0; padding: 0; border-block: 1px solid var(--ink); list-style: none; }
.snippet-flow li { counter-increment: flow; min-height: 230px; position: relative; padding: 70px 24px 28px; border-right: 1px solid var(--ink); }
.snippet-flow li:last-child { border-right: 0; }
.snippet-flow li::before { content: "0" counter(flow); position: absolute; top: 20px; color: var(--signal); font: 900 26px/1 var(--mono); }
.snippet-flow li b, .snippet-flow li span { display: block; }
.snippet-flow li b { margin-bottom: 13px; font: 900 22px/1 var(--sans); text-transform: uppercase; }
.snippet-flow li span { color: var(--soft-ink); font-size: 13px; line-height: 1.6; }

.protocol-strip { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(30px,6vw,80px); padding: clamp(38px,6vw,75px); color: white; background: var(--blue); }
.protocol-copy p:last-child { max-width: 600px; margin: 24px 0 0; color: #d8e0ff; line-height: 1.65; }
.protocol-chain { align-self: center; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; }
.protocol-chain div { min-height: 145px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.12); }
.protocol-chain i { align-self: center; padding: 8px; color: var(--acid); font: normal 900 22px/1 var(--mono); }
.protocol-chain small, .protocol-chain code { color: #d8e0ff; font: 650 8px/1.3 var(--mono); }
.protocol-chain b { font: 900 18px/1 var(--sans); text-transform: uppercase; }

.security-ledger { padding-block: clamp(80px,10vw,145px); }
.security-ledger header { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 42px; }
.ledger-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--ink); }
.ledger-grid article { min-height: 300px; padding: clamp(25px,4vw,48px); }
.ledger-grid article + article { border-left: 1px solid var(--ink); }
.ledger-grid .ledger-local { background: var(--acid); }
.ledger-grid .ledger-local > span { color: var(--ink); }
.ledger-grid .ledger-risk { color: white; background: var(--ink); }
.ledger-grid ul { margin: 32px 0 0; padding: 0; list-style: none; }
.ledger-grid li { padding: 12px 0; border-top: 1px solid currentColor; font-size: 13px; line-height: 1.4; }
.security-footnote { max-width: 900px; margin: 24px 0 0 auto; color: var(--soft-ink); font-size: 12px; line-height: 1.6; }

.nsnip-bridge { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(35px,8vw,120px); padding: clamp(45px,7vw,90px) 0; border-top: 8px solid var(--ink); }
.nsnip-bridge > div:last-child { padding-top: 5px; }
.nsnip-bridge p { color: var(--soft-ink); font-size: 16px; line-height: 1.7; }
.nsnip-bridge .button { margin-top: 18px; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.page-heading h1 { margin: 0; font-size: clamp(50px, 6vw, 88px); }
.step-indicator { display: flex; gap: 24px; margin: 0 0 4px; padding: 0; list-style: none; }
.step-indicator li { display: flex; align-items: center; gap: 7px; color: #89877f; font: 750 11px/1 var(--body); }
.step-indicator span { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid currentColor; font: 700 9px/1 var(--mono); }
.step-indicator li.active { color: var(--ink); }
.step-indicator li.active span { color: var(--ink); background: var(--acid); border-color: var(--ink); }
.workbench { display: grid; grid-template-columns: minmax(330px, .82fr) minmax(480px, 1.18fr); gap: clamp(40px, 8vw, 120px); padding-top: 40px; align-items: start; }
.preview-column { position: sticky; top: 22px; }
.fold-strip {
  --panel-height: calc(251.033mm / 3);
  width: min(100%, 310px);
  height: auto;
  margin-inline: auto;
  color: #1a1612;
  background: #f4ecd8;
  border-block: 1px solid #6b5a48;
  box-shadow: 9px 12px 0 rgba(27,27,24,.14);
  font-family: var(--mono);
}
.strip-panel { height: var(--panel-height); min-height: 455px; position: relative; padding: 34px 35px; overflow: hidden; background: #f4ecd8; }
.double-frame { position: absolute; inset: 14px; border: 1px solid #6b5a48; pointer-events: none; }
.double-frame::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(107,90,72,.74); }
.panel-label { position: relative; z-index: 1; margin-bottom: 18px; color: #4a3f33; font: italic 700 10px/1 var(--body); letter-spacing: .08em; text-align: center; }
.private-label { color: #8b2c1c; }
.cash-secret-row { position: relative; z-index: 1; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding-bottom: 17px; border-bottom: 1px solid #6b5a48; }
.secret-copy b, .secret-copy span, .secret-copy code { display: block; }
.secret-copy b { margin-bottom: 7px; font-size: 10px; }
.secret-copy span { margin-bottom: 9px; color: #8b2c1c; font: 700 8px/1.4 var(--mono); }
.secret-copy code { color: #4a3f33; font: 600 6px/1.4 var(--mono); overflow-wrap: anywhere; }
.qr-box { display: grid; place-items: center; background: #f4ecd8; }
.qr-link { color: inherit; text-decoration: none; }
.qr-link > span { width: 100%; height: 100%; display: block; }
.qr-box svg { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }
.qr-box svg rect { fill: #f4ecd8; }
.qr-box svg path { fill: #1a1612; }
.qr-cash { width: 112px; height: 112px; }
.nostr-secret-block { position: relative; z-index: 1; margin-top: 15px; }
.mnemonic-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-flow: column; grid-template-rows: repeat(4,1fr); gap: 4px 8px; font: 650 6px/1 var(--mono); }
.nostr-qr-pair { display: flex; justify-content: center; gap: 28px; margin-top: 14px; }
.nostr-qr-pair figure { margin: 0; text-align: center; }
.nostr-qr-pair .qr-box { width: 69px; height: 69px; }
.nostr-qr-pair figcaption { margin-top: 5px; font: 800 6px/1 var(--mono); letter-spacing: .08em; }
.nostr-disabled { position: relative; z-index: 1; display: grid; place-items: center; min-height: 150px; margin-top: 15px; border: 1px dashed #8a7a66; color: #8a7a66; font: 700 7px/1.4 var(--mono); text-align: center; }
.panel-micro { position: absolute; z-index: 1; left: 35px; right: 35px; bottom: 28px; color: #8a7a66; font: 600 5px/1.25 var(--mono); text-align: center; text-transform: uppercase; }
.fold-line { height: 0; position: relative; z-index: 3; border-top: 1px dashed #6b5a48; }
.fold-line span { position: absolute; right: 20px; top: -7px; padding: 2px 5px; color: #8a7a66; background: #f4ecd8; font: 700 5px/1 var(--mono); }
.panel-public { padding: 0; }
.panel-rotated { width: 100%; height: 100%; position: relative; padding: 34px 35px; transform: rotate(180deg); }
.public-profile { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.sigil { width: 48px; height: 48px; display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-bottom: 13px; }
.sigil i { background: #1a1612; }
.sigil i:nth-child(2), .sigil i:nth-child(4), .sigil i:nth-child(5), .sigil i:nth-child(7) { opacity: 0; }
.qr-npub { width: 132px; height: 132px; }
.public-profile b { margin-top: 12px; font: 900 20px/1 var(--sans); letter-spacing: .08em; }
.public-profile code { margin-top: 8px; font: 600 6px/1 var(--mono); }
.public-profile span { margin-top: 6px; color: #8a7a66; font: 600 6px/1 var(--mono); }
.panel-front .slip-topline { position: relative; z-index: 1; }
.front-alias { position: relative; z-index: 1; margin: 13px 0; font: 900 24px/1 var(--sans); letter-spacing: .05em; text-align: center; }
.panel-front .art { height: 188px; }
.panel-front .slip-title { position: relative; z-index: 1; margin: 13px 0 8px; font-size: 27px; }
.panel-front .slip-value { position: relative; z-index: 1; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #6b5a48; }
.panel-front .slip-value strong { font-size: 45px; }
.panel-front .slip-foot { position: absolute; z-index: 1; left: 35px; right: 35px; bottom: 28px; }
.preview-warning { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; color: var(--soft-ink); font-size: 11px; }
.preview-warning span { width: 18px; height: 18px; display: grid; place-items: center; color: white; background: var(--signal); font: 800 10px/1 var(--mono); }
.controls-column { padding-top: 28px; }
fieldset { border: 0; padding: 0; margin: 0 0 46px; }
legend { width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 850 19px/1 var(--sans); text-transform: uppercase; }
legend span { color: var(--signal); font: 800 10px/1 var(--mono); }
.artwork-choices { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.artwork-choices label { cursor: pointer; }
.artwork-choices input { position: absolute; opacity: 0; pointer-events: none; }
.artwork-choices label > span { display: block; padding: 7px; border: 1px solid var(--line); background: rgba(255,255,255,.35); }
.artwork-choices input:checked + span { border-color: var(--ink); box-shadow: inset 0 -5px 0 var(--acid); }
.artwork-choices b { display: block; padding: 9px 2px 5px; font: 750 11px/1 var(--body); }
.mini-art { height: 66px; display: block; background-color: var(--ink); }
.mini-art.paper { background: repeating-radial-gradient(circle at 50% 50%,var(--paper) 0 1px,var(--ink) 2px 8px); }
.mini-art.signal { background: repeating-linear-gradient(45deg,var(--ink) 0 8px,var(--paper) 9px 10px); }
.mini-art.void { background: radial-gradient(circle,var(--ink) 0 25%,var(--paper) 26% 28%,var(--ink) 29% 45%,var(--paper) 46% 48%,var(--ink) 49%); }
.mini-art.orbit { background: radial-gradient(circle at 70% 30%,var(--paper) 0 12%,var(--ink) 13% 28%,var(--paper) 29% 31%,var(--ink) 32%); }
.mini-art.noise { background: repeating-linear-gradient(99deg,var(--ink) 0 3px,var(--paper) 3px 4px); }
.mini-art.blocks { background: conic-gradient(var(--ink) 25%,var(--paper) 0 50%,var(--ink) 0 75%,var(--paper) 0); background-size: 20px 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 7px; color: var(--soft-ink); font-size: 11px; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; padding: 0 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 0; }
.field input, .field select { height: 50px; }
.field textarea { padding-block: 12px; resize: vertical; font: 650 10px/1.45 var(--mono); overflow-wrap: anywhere; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.35); cursor: pointer; }
.switch-row b, .switch-row small { display: block; }
.switch-row b { margin-bottom: 4px; font-size: 12px; }
.switch-row small { color: var(--soft-ink); font-size: 10px; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row i { width: 43px; height: 24px; flex: 0 0 auto; padding: 3px; border: 1px solid var(--ink); background: var(--paper); }
.switch-row i::after { content: ""; width: 16px; height: 16px; display: block; background: var(--ink); transition: transform .2s ease; }
.switch-row input:checked + i { background: var(--acid); }
.switch-row input:checked + i::after { transform: translateX(18px); }
.review-card { border-top: 5px solid var(--ink); background: var(--paper); padding: 24px; }
.review-card > div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.review-card span { color: var(--soft-ink); }
.review-card .review-total { padding-top: 22px; border: 0; font-size: 19px; }
.payment-qr { width: min(260px, 100%); aspect-ratio: 1; margin: 18px auto; border: 1px solid var(--line); }
.payment-actions { display: flex !important; justify-content: center !important; gap: 10px !important; border: 0 !important; flex-wrap: wrap; }
.payment-actions .button { flex: 1 1 190px; text-align: center; }
.privacy-note { display: flex; gap: 14px; margin: 22px 0; padding: 16px; border: 1px dashed var(--ink); }
.privacy-note span { height: max-content; padding: 5px; color: var(--ink); background: var(--acid); font: 800 8px/1 var(--mono); }
.privacy-note p { margin: 0; color: var(--soft-ink); font-size: 12px; line-height: 1.5; }
.button-row, .output-actions { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.form-step[data-step="3"] { max-width: 560px; padding: 38px; border: 1px solid var(--ink); background: var(--paper); }
.form-step h2 { margin-bottom: 12px; font: 900 48px/.9 var(--sans); text-transform: uppercase; }
.success-mark { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 28px; background: var(--acid); border: 1px solid var(--ink); font: 900 30px/1 var(--sans); }
.muted { color: var(--soft-ink); line-height: 1.55; }
.output-actions { margin: 25px 0 18px; }
.status-message { min-height: 22px; margin: 18px 0 0; color: var(--blue); font: 700 10px/1.4 var(--mono); }

.wallet-heading { align-items: center; }
.wallet-state { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--ink); font: 750 10px/1 var(--mono); }
.wallet-state i { width: 7px; height: 7px; border-radius: 50%; background: #24a344; }
.balance-board { display: flex; align-items: end; justify-content: space-between; padding: 36px 0; border-bottom: 1px solid var(--ink); }
.balance-board > div { display: flex; align-items: baseline; gap: 10px; }
.balance-board span { font: 800 9px/1 var(--mono); text-transform: uppercase; }
.balance-board strong { font: 950 clamp(68px,10vw,150px)/.7 var(--sans); letter-spacing: -.07em; }
.balance-board em { font: 900 22px/1 var(--sans); font-style: normal; }
.balance-board p { margin: 0; font: 800 15px/1.35 var(--body); text-align: right; }
.balance-board p span { color: var(--soft-ink); font-weight: 600; text-transform: none; }
.wallet-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(35px,7vw,100px); padding-top: 46px; }
.wallet-actions-panel h2, .wallet-detail h2 { font: 900 27px/.95 var(--sans); text-transform: uppercase; }
.wallet-action { width: 100%; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 13px; padding: 16px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.wallet-action:last-child { border-bottom: 1px solid var(--line); }
.action-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--ink); font: 800 18px/1 var(--sans); }
.wallet-action b, .wallet-action small { display: block; }
.wallet-action b { margin-bottom: 3px; font-size: 13px; }
.wallet-action small { color: var(--soft-ink); font-size: 10px; }
.wallet-action > i { font-style: normal; }
.wallet-detail { min-height: 330px; display: flex; flex-direction: column; align-items: start; justify-content: center; padding: clamp(28px,5vw,58px); background: var(--paper); border: 1px solid var(--ink); }
.wallet-detail p { max-width: 520px; color: var(--soft-ink); font-size: 13px; line-height: 1.6; }
.empty-illustration { display: flex; gap: 7px; margin-bottom: 28px; }
.empty-illustration span { width: 34px; height: 48px; display: block; border: 1px solid var(--ink); background: repeating-linear-gradient(45deg,transparent 0 4px,var(--ink) 4px 5px); }
.empty-illustration span:nth-child(2) { transform: translateY(-8px); background: var(--acid); }
.demo-note { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 15px; padding: 18px 0; border-block: 1px solid var(--ink); }
.demo-note b, .demo-note span { display: block; }
.demo-note b { font: 900 21px/1 var(--sans); text-transform: uppercase; }
.demo-note span { margin-top: 5px; color: var(--soft-ink); font: 700 9px/1 var(--mono); }
.demo-note strong { font: 900 28px/1 var(--sans); }
.paper-actions { width: 100%; display: flex; gap: 9px; flex-wrap: wrap; margin-top: 12px; }
.paper-actions .button { flex: 1 1 180px; }
.warning-copy { padding-left: 12px; border-left: 4px solid var(--signal); }
.note-live-state { display: flex; align-items: center; gap: 8px; margin: 0 0 8px !important; font: 800 10px/1 var(--mono); text-transform: uppercase; }
.note-live-state i { width: 8px; height: 8px; border-radius: 50%; background: #24a344; }
.note-live-state i.pending { background: #ee8b18; }
.note-live-state i.empty { background: #777; }
.withdraw-qr { width: min(250px,100%); aspect-ratio: 1; margin: 18px 0; border: 1px solid var(--line); }
.invoice-field { width: 100%; margin: 12px 0 18px; }
.receive-field { width: min(280px,100%); margin: 12px 0 18px; }
.receive-option { width: 100%; padding: 22px 0; border-top: 1px solid var(--ink); }
.receive-option:last-child { border-bottom: 1px solid var(--ink); }
.receive-option h3 { margin: 0 0 8px; font: 850 18px/1 var(--sans); text-transform: uppercase; }
.receive-option p { margin-block: 0 12px; }
.payment-summary { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 0; border-block: 1px solid var(--ink); }
.payment-summary span { color: var(--soft-ink); }
.payment-summary strong { font: 900 24px/1 var(--sans); white-space: nowrap; }
.pending-indicator { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border: 1px solid var(--ink); font: 750 10px/1 var(--mono); }
.pending-indicator i { width: 9px; height: 9px; border-radius: 50%; background: #ee8b18; animation: pending-pulse 1.2s ease-in-out infinite; }
.private-wallet-link { width: 100%; display: grid; gap: 9px; margin: 12px 0; padding: 16px; border: 1px dashed var(--ink); }
.private-wallet-link span { font: 800 9px/1 var(--mono); text-transform: uppercase; }
.private-wallet-link code { padding: 10px; background: rgba(27,27,24,.06); font: 650 9px/1.45 var(--mono); overflow-wrap: anywhere; }
.private-wallet-link .button { justify-self: start; }
.local-note-link { margin-top: 10px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.wallet-profile { width: 100%; margin-top: 30px; border: 1px solid var(--ink); }
.wallet-profile-banner { width: 100%; height: 105px; display: block; object-fit: cover; border-bottom: 1px solid var(--ink); }
.wallet-profile-main { display: grid; grid-template-columns: 72px 1fr; gap: 17px; align-items: start; padding: 18px; }
.wallet-profile-main > img { width: 72px; height: 72px; border: 1px solid var(--ink); }
.wallet-profile-main span { font: 800 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.wallet-profile-main h3 { margin: 5px 0; font: 900 24px/1 var(--sans); text-transform: uppercase; }
.wallet-profile-main code { display: block; max-width: 430px; font: 650 8px/1.4 var(--mono); overflow-wrap: anywhere; }
.wallet-profile-main a { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 800; }
.wallet-profile-empty { width: 100%; margin-top: 25px; padding: 14px; border: 1px dashed var(--line); }
.wallet-activity { width: 100%; margin-top: 30px; border-top: 4px solid var(--ink); }
.wallet-activity > header { display: flex; justify-content: space-between; padding: 13px 0; font: 850 15px/1 var(--sans); text-transform: uppercase; }
.wallet-activity article { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.wallet-activity article i { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--ink); font-style: normal; font-weight: 900; }
.wallet-activity article i.in { background: var(--acid); }
.wallet-activity article i.out { color: white; background: var(--ink); }
.wallet-activity article b, .wallet-activity article small { display: block; }
.wallet-activity article small { margin-top: 4px; color: var(--soft-ink); font: 650 8px/1 var(--mono); }
.wallet-activity article strong { font: 900 17px/1 var(--sans); white-space: nowrap; }
.wallet-activity.empty { padding-top: 14px; }
@keyframes pending-pulse { 50% { opacity: .25; } }

footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(20px,4vw,64px); border-top: 1px solid var(--ink); font: 700 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; max-width: calc(100% - 32px); padding: 13px 18px; color: white; background: var(--blue); box-shadow: 5px 5px 0 var(--ink); font: 700 11px/1.4 var(--mono); transform: translate(-50%,140%); transition: transform .25s ease; }
.toast.show { transform: translate(-50%,0); }

@media (max-width: 900px) {
  .home-view { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero-copy { padding-top: 25px; }
  .hero-object { min-height: 660px; }
  .workbench, .wallet-grid { grid-template-columns: 1fr; }
  .preview-column { position: static; }
  .fold-strip { max-width: 310px; }
  .controls-column { padding-top: 0; }
  .concept-pair, .protocol-strip, .nsnip-bridge { grid-template-columns: 1fr; }
  .concept-pair article + article { border-left: 0; border-top: 1px solid #77766f; }
  .snippet-flow header { grid-template-columns: 1fr; }
  .snippet-flow ol { grid-template-columns: 1fr 1fr; }
  .snippet-flow li:nth-child(2) { border-right: 0; }
  .snippet-flow li:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .protocol-chain { margin-top: 20px; }
  .ledger-grid { grid-template-columns: 1fr; }
  .ledger-grid article + article { border-left: 0; border-top: 1px solid var(--ink); }
}

@media (max-width: 620px) {
  .prototype-bar { font-size: 8px; }
  .site-header { height: 68px; grid-template-columns: 1fr auto; }
  .network-mark { display: none; }
  .wordmark > span:last-child { display: none; }
  nav { gap: 18px; }
  nav a { padding-block: 25px 22px; font-size: 11px; }
  .view { width: calc(100% - 32px); padding-block: 42px; }
  .home-view { width: calc(100% - 32px); }
  h1 { font-size: clamp(52px,17vw,78px); }
  .principles { gap: 14px; }
  .principles div { display: block; }
  .principles dt { margin-bottom: 4px; }
  .hero-object { min-height: 570px; transform: scale(.86); margin: -45px -40px; }
  .home-manifesto { margin-top: 20px; padding: 30px 22px; }
  .concept-pair { margin-top: 30px; }
  .snippet-flow ol { grid-template-columns: 1fr; }
  .snippet-flow li { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .snippet-flow li:last-child { border-bottom: 0; }
  .protocol-strip { margin-inline: -16px; width: calc(100% + 32px); padding: 35px 20px; }
  .protocol-chain { grid-template-columns: 1fr; }
  .protocol-chain i { transform: rotate(90deg); }
  .security-ledger header { display: block; }
  .ledger-grid article { min-height: 0; }
  .page-heading { display: block; }
  .step-indicator { margin-top: 28px; gap: 12px; }
  .step-indicator li { font-size: 0; }
  .artwork-choices { grid-template-columns: repeat(2,1fr); }
  .field-row { grid-template-columns: 1fr; }
  .cash-slip-preview { min-height: 570px; padding-inline: 22px; }
  .balance-board { align-items: start; }
  .balance-board > div { display: grid; gap: 5px; }
  .balance-board strong { font-size: 78px; }
  .balance-board p { font-size: 11px; }
  footer { flex-wrap: wrap; padding-block: 18px; }
  footer span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  @page { size: 57mm 251.033mm; margin: 0; }
  html, body { width: 57mm; height: 251.033mm; margin: 0; padding: 0; background: #f4ecd8; }
  body * { visibility: hidden; }
  #snippet-preview, #snippet-preview * { visibility: visible; }
  #snippet-preview { position: fixed; inset: 0; width: 57mm; height: 251.033mm; margin: 0; border: 0; box-shadow: none; }
  .strip-panel { min-height: 0; height: calc(251.033mm / 3); padding: 6.5mm; }
  .double-frame { inset: 2.5mm; }
  .double-frame::after { inset: 1mm; }
  .panel-label { margin-bottom: 3mm; font-size: 5.5pt; }
  .cash-secret-row { grid-template-columns: 22mm 1fr; gap: 2.5mm; padding-bottom: 2.8mm; }
  .qr-cash { width: 22mm; height: 22mm; }
  .secret-copy b { margin-bottom: 1mm; font-size: 5.5pt; }
  .secret-copy span { margin-bottom: 1.2mm; font-size: 4.4pt; }
  .secret-copy code { font-size: 3.8pt; }
  .nostr-secret-block { margin-top: 2mm; }
  .mnemonic-grid { gap: .7mm 1.2mm; font-size: 3.6pt; }
  .nostr-qr-pair { gap: 4mm; margin-top: 2mm; }
  .nostr-qr-pair .qr-box { width: 13.5mm; height: 13.5mm; }
  .nostr-qr-pair figcaption { margin-top: .6mm; font-size: 3.5pt; }
  .nostr-disabled { min-height: 28mm; margin-top: 2mm; font-size: 4pt; }
  .panel-micro { left: 6.5mm; right: 6.5mm; bottom: 5mm; font-size: 3.3pt; }
  .fold-line span { right: 4mm; top: -1.2mm; padding: .4mm .8mm; font-size: 3pt; }
  .panel-rotated { padding: 6.5mm; }
  .sigil { width: 9mm; height: 9mm; margin-bottom: 2mm; }
  .qr-npub { width: 25mm; height: 25mm; }
  .public-profile b { margin-top: 2mm; font-size: 11pt; }
  .public-profile code, .public-profile span { margin-top: 1mm; font-size: 3.6pt; }
  .front-alias { margin: 2mm 0; font-size: 14pt; }
  .panel-front .art { height: 35mm; }
  .panel-front .slip-title { margin: 2mm 0 1mm; font-size: 15pt; }
  .panel-front .slip-value { margin-top: 1mm; padding-top: 1.5mm; }
  .panel-front .slip-value strong { font-size: 26pt; }
  .panel-front .slip-foot { left: 6.5mm; right: 6.5mm; bottom: 5mm; }
}
