@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #000;
  --card: #111;
  --ink: #f5f5f7;
  --muted: #86868b;
  --faint: #6e6e73;
  --line: rgba(255,255,255,0.1);
  --orange: #F7931A;
  --orange-hover: #ffad3d;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* —— header —— */
header.site { height: 72px; display: flex; align-items: center; }
.site-inner {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-name {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}
.brand-name b { color: var(--orange); font-weight: 800; }

.site-nav { margin-left: auto; }
.site-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -.01em;
}
.site-nav a:hover { color: var(--ink); }
.site-nav + .net-pill { margin-left: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— test banner (small) —— */
.test-banner {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  background: #120c04;
  border-bottom: 1px solid rgba(247,147,26,.28);
  padding: 6px 16px;
}

.net-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.net-pill .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 6px;
  vertical-align: 1px;
}

/* —— buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.btn:hover { transform: scale(1.02); }
.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .35; cursor: not-allowed; transform: none; }

/* —— landing hero —— */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10vh 24px 8vh;
}
.hero-logo { width: 168px; height: 168px; object-fit: contain; margin-bottom: 36px; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(48px, 8vw, 88px);
  letter-spacing: -.05em;
  line-height: .95;
}
.hero .sub {
  margin-top: 18px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -.02em;
}
.hero .btn { margin-top: 36px; min-width: 180px; }

/* —— 3 steps —— */
.how {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0 96px;
}
.how-item {
  text-align: center;
  padding: 36px 20px 32px;
  border-radius: 28px;
  background: var(--card);
}
.how-icon {
  width: 56px; height: 56px;
  margin: 0 auto 22px;
  border-radius: 16px;
  background: rgba(247,147,26,.12);
  color: var(--orange);
  display: grid;
  place-items: center;
}
.how-icon svg { width: 28px; height: 28px; }
.how-item h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.how-item p { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: -.01em; }

/* —— verify —— */
.verify {
  width: min(560px, calc(100% - 48px));
  margin: 0 auto 80px;
  text-align: center;
}
.verify label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.search {
  display: flex;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
}
.search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 16px;
  font-weight: 500;
  height: 44px;
}
.search input::placeholder { color: var(--faint); }
.search .btn { height: 44px; padding: 0 22px; font-size: 15px; }
#verify-result {
  margin-top: 20px;
  text-align: left;
  background: var(--card);
  border-radius: 20px;
  padding: 18px 20px;
}
#verify-result[hidden] { display: none; }
#verify-result .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}
#verify-result .row:last-child { border-bottom: 0; }
#verify-result .ok { color: #30d158; }
#verify-result .warn { color: #ff9f0a; font-weight: 600; }
#verify-result .no { color: #ff453a; }
#verify-result .detail { color: var(--muted); font-size: 12px; font-weight: 500; text-align: right; word-break: break-all; }
#verify-result .empty { text-align: center; color: var(--muted); font-weight: 500; padding: 8px 0; }

/* —— footer —— */
footer.site {
  padding: 48px 24px 64px;
  text-align: center;
}
footer.site p {
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: -.01em;
}

/* —— inscribe flow —— */
.stage {
  width: min(560px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 96px;
}
.stepper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}
.stepper button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.stepper button.on { background: var(--orange); color: #000; border-color: var(--orange); }
.stepper button.done { border-color: var(--orange); color: var(--orange); }
.stepper button[disabled] { opacity: .35; cursor: not-allowed; }

.panel { display: none; }
body[data-step="choose"] #step-choose,
body[data-step="connect"] #step-connect,
body[data-step="file"] #step-file,
body[data-step="review"] #step-review,
body[data-step="sign"] #step-sign { display: block; }

.panel h1 {
  font-size: clamp(36px, 7vw, 52px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  margin-bottom: 10px;
  text-align: center;
}
.panel .one {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: 36px;
}
.card {
  background: var(--card);
  border-radius: 28px;
  padding: 28px;
}

.wallet-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px;
  margin-bottom: 10px;
}
.wallet-btn b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.wallet-btn span { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.wallet-btn.on { border-color: var(--orange); }
.wallet-btn.install { text-align: left; }
.wallet-more { margin: 18px 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }
.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.wallet-grid .wallet-btn { margin-bottom: 0; }
.wallet-btn.small { padding: 16px 18px; border-radius: 18px; }
.wallet-btn.small b { font-size: 15px; }
.wallet-btn.small span { font-size: 12px; }
a.wallet-btn { color: inherit; text-decoration: none; }
a.wallet-btn.small.install b { color: var(--muted); }

.connected {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin: 18px 0 0;
  word-break: break-all;
}
.connected .mono { color: var(--ink); }
.hidden { display: none !important; }

.actions { margin-top: 28px; }

.drop {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 160px;
  padding: 28px 20px;
  border: 1.5px dashed var(--line);
  border-radius: 22px;
  background: #0c0c0c;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--muted);
}
.drop.drag { border-color: var(--orange); color: var(--ink); }
.drop.has { border-style: solid; border-color: var(--line); color: var(--ink); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop small { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--faint); }

.claim {
  margin-top: 14px;
  width: 100%;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0 20px;
  font-size: 16px;
  font-weight: 500;
  outline: none;
}
.claim:focus { border-color: var(--orange); }
.claim::placeholder { color: var(--faint); }

.details-field { margin-top: 14px; }
.details-field textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  outline: none;
}
.details-field textarea:focus { border-color: var(--orange); }
.details-field textarea::placeholder { color: var(--faint); }
.details-count {
  margin-top: 8px;
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
}

.drop { margin-top: 14px; }
.file-clear {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
}
.file-clear:hover { color: var(--ink); }

.proof-copy { margin: 8px auto 16px; max-width: 520px; text-align: left; }
.proof-copy .claim-line {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.3;
  text-align: center;
}
.proof-copy .details-line {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.facts { display: grid; gap: 0; }
.facts .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
}
.facts .row:last-child { border-bottom: 0; }
.facts .k { color: var(--muted); }
.facts .v { text-align: right; word-break: break-all; }

details.more {
  margin-top: 18px;
  border-radius: 22px;
  background: var(--card);
  padding: 4px 22px 8px;
}
details.more summary {
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  padding: 16px 0;
  color: var(--muted);
}
details.more summary::-webkit-details-marker { display: none; }
details.more .field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
details.more input[type=number] {
  width: 88px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c0c0c;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.hex {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  line-height: 1.5;
  max-height: 120px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--faint);
  padding-bottom: 16px;
}

.status {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  min-height: 1.4em;
  margin-bottom: 16px;
}
.status.err { color: #ff453a; }
.status.ok { color: #30d158; }

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #1d1d1f;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 720px) {
  .how { grid-template-columns: 1fr; gap: 12px; padding-bottom: 64px; }
  .hero { padding: 8vh 20px 6vh; }
  .hero-logo { width: 128px; height: 128px; margin-bottom: 28px; }
  .search { flex-direction: column; border-radius: 22px; padding: 8px; }
  .search input { padding: 0 12px; }
  .site-inner { width: calc(100% - 32px); }
  .stage { width: calc(100% - 32px); padding-top: 32px; }
  header.site { height: 64px; }
}

/* —— speed picker —— */
.speed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 24px;
}
.speed-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 8px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-align: center;
}
.speed-btn b { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.speed-btn .eta { font-size: 12px; font-weight: 500; color: var(--muted); }
.speed-btn .amt { font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.speed-btn.on { border-color: var(--orange); background: rgba(247,147,26,.12); }
.speed-btn:hover { border-color: rgba(247,147,26,.45); }
.confirm {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 8px 0 20px;
  line-height: 1.4;
}
.txid-link {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  word-break: break-all;
  margin: 8px 0 28px;
}
.panel h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.04em;
  text-align: center;
  margin: 36px 0 8px;
}
.check { display: grid; gap: 0; text-align: left; }
@media (max-width: 720px) {
  .speed { gap: 6px; }
  .speed-btn { padding: 14px 4px 12px; }
  .speed-btn b { font-size: 13px; }
}

.done-asset {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-all;
  margin: 8px 0 28px;
}
.done-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 36px;
}
.done-links .txid-link { word-break: break-all; }
.seal {
  margin-top: 8px;
  padding-top: 8px;
}
.seal > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}
#verify-result img.proof-image {
  display: block;
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  margin: 16px auto 8px;
  background: #111;
}

/* —— review summary + upgrades —— */
.summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.summary img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  background: #0c0c0c;
}
.summary .body { min-width: 0; flex: 1; }
.summary .line {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.summary .blurb {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}
.summary .meta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -.01em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.summary .asset {
  color: var(--ink);
  font-size: 12.5px;
}

.upgrades { margin: 0 0 28px; }
.upgrades > h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  margin: 0 0 12px;
}
.upgrade-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.upgrade-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 16px 14px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  width: 100%;
  min-height: 100%;
}
.upgrade-card .switch {
  width: 36px;
  height: 22px;
  border-radius: 999px;
  background: #3a3a3c;
  position: relative;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.upgrade-card .switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.upgrade-card .title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.upgrade-card .price {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.upgrade-card .note {
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: -.01em;
  line-height: 1.3;
}
.upgrade-card.on {
  border-color: var(--orange);
  background: rgba(247,147,26,.12);
}
.upgrade-card.on .switch { background: var(--orange); }
.upgrade-card.on .switch::after { left: 16px; }
.upgrade-card.on .price { color: var(--orange); }
.upgrade-card:disabled,
.upgrade-card[aria-disabled="true"] {
  cursor: default;
  opacity: .72;
}
.upgrade-card:disabled.on,
.upgrade-card[aria-disabled="true"].on {
  border-color: var(--line);
  background: var(--card);
}
.upgrade-card:disabled.on .switch,
.upgrade-card[aria-disabled="true"].on .switch { background: #3a3a3c; }
.upgrade-card:disabled.on .switch::after,
.upgrade-card[aria-disabled="true"].on .switch::after { left: 2px; }
.upgrade-card:disabled.on .price,
.upgrade-card[aria-disabled="true"].on .price { color: var(--muted); }

a.upgrade-card.go { text-decoration: none; cursor: pointer; }
a.upgrade-card.go:hover { border-color: var(--orange); }
a.upgrade-card.go .price { color: var(--orange); }

/* Slot under the upgrades row — reserved for the vanity worker */
.upgrade-slot { min-height: 0; }

.total {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 4px 0 8px;
  padding: 18px 0 6px;
}
.total .k {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--muted);
  padding-top: 6px;
}
.total .v { text-align: right; }
.total .amt {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.total .usd {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -.01em;
}

.panel .one.tight { margin-bottom: 28px; }

@media (max-width: 560px) {
  .upgrade-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .upgrade-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 12px;
    padding: 14px 16px;
  }
  .upgrade-card .switch {
    order: 2;
    margin: 0 0 0 auto;
  }
  .upgrade-card .title {
    order: 1;
    flex: 1;
    min-width: 0;
    font-size: 15px;
  }
  .upgrade-card .price {
    order: 3;
    width: calc(100% - 48px);
    font-size: 13px;
  }
  .upgrade-card .note {
    order: 4;
    width: calc(100% - 48px);
  }
  a.upgrade-card.go .title { order: 1; flex: 1; }
  a.upgrade-card.go .price { order: 2; width: auto; margin-left: auto; }
  a.upgrade-card.go .note { order: 3; width: 100%; }
  .summary img { width: 64px; height: 64px; }
  .summary .line { font-size: 15px; }
  .total .amt { font-size: 20px; }
}

/* —— inscribe upgrade —— */
.ins-note { font-size: 13px; color: var(--muted); text-align: center; margin: -4px 0 16px; line-height: 1.4; }
.ins-resume { padding: 16px; margin: 16px 0; text-align: center; }
.ins-resume p { margin: 0 0 12px; }
.ins-resume .actions { margin: 8px 0 0; }
.ins-recovery { font-size: 13px; color: var(--muted); }
#inscribe-box .field { flex-wrap: wrap; }
#inscribe-box .field input[type="text"] {
  flex: 1 1 100%; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: #0c0c0c; padding: 0 10px; color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
}

/* —— simplified mint flow (choose → claim → review) —— */
.type-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
}
.type-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(247,147,26,.35);
  padding: 5px 10px;
  border-radius: 999px;
}
.type-bar .change {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.type-bar .change:hover { color: var(--ink); }

.panel h1.ask {
  font-size: clamp(32px, 7vw, 48px);
}

/* —— choice cards (What are you making?) —— */
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500 700;
  font-display: swap;
}
body[data-step="choose"] .stage { width: min(980px, calc(100% - 40px)); }
.choices { display: grid; gap: 16px; }
body:not([data-editions="on"]) .choices { grid-template-columns: 1fr 1fr; gap: 20px; }
.choice-card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px;
  color: var(--ink);
  text-decoration: none;
}
.choice-card b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.choice-card > span:not([class]) {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}
.choice-card:hover { border-color: rgba(247,147,26,.45); }
.choice-card.on { border-color: var(--orange); background: rgba(247,147,26,.08); }
/* Hidden while EDITIONS_ENABLED is false; more specific than .choice-card { display:block }. */
body:not([data-editions="on"]) .choice-card[data-kind="edition"] { display: none; }

/* big cards */
.choice-big {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(247,147,26,.10), transparent 60%),
    linear-gradient(180deg, #121212, #0a0a0a);
  border-color: rgba(255,255,255,.09);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.choice-big:hover, .choice-big:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(247,147,26,.75);
  box-shadow: 0 0 0 1px rgba(247,147,26,.35), 0 18px 60px -12px rgba(247,147,26,.38);
  outline: none;
}
.choice-big.on {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--orange), 0 18px 70px -10px rgba(247,147,26,.5);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(247,147,26,.18), transparent 60%),
    linear-gradient(180deg, #151109, #0a0a0a);
}
.choice-big:active { transform: translateY(-1px); }

.choice-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 22px 22px,
    #070707;
}
.choice-art::after { /* fade the grid at the edges */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 80% at 50% 50%, transparent 40%, #070707 100%);
  pointer-events: none;
}

/* Proof: mini certificate */
.cert {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 14px;
  width: min(300px, 78%);
  padding: 18px 18px 14px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1b1b1b, #101010);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
  transform: rotate(-2.5deg);
  transition: transform .35s ease;
}
.choice-big:hover .cert, .choice-big.on .cert { transform: rotate(0deg) scale(1.03); }
.cert-top { display: flex; align-items: center; gap: 12px; }
.cert-seal {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: url("../assets/emblem-256.png") center / cover no-repeat;
  box-shadow: 0 0 0 2px rgba(247,147,26,.35), 0 0 18px rgba(247,147,26,.35);
}
.cert-lines { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.cert-lines i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.16); }
.cert-lines i + i { width: 62%; background: rgba(255,255,255,.08); }
.cert-stamp {
  font: 800 12px/1 var(--sans); letter-spacing: .04em;
  color: var(--orange); border: 1.5px solid var(--orange); border-radius: 6px;
  padding: 5px 6px; transform: rotate(8deg);
}
.cert-hash {
  font: 500 11.5px/1.3 "Plex Mono", ui-monospace, Menlo, monospace;
  color: #9a9a9f; letter-spacing: .02em;
  padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.45);
  border: 1px dashed rgba(255,255,255,.1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cert-hash em { font-style: normal; color: var(--orange); }
.cert-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cert-lock { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); }
.cert-chain { color: #6e6e73; }

/* Name: NAKAMOTO in the substrate */
.art-name { background: #030503; }
.matrix {
  position: absolute; inset: -10px 0 0; z-index: 0;
  display: flex; flex-direction: column; justify-content: space-around;
  font: 500 15px/1 "Plex Mono", ui-monospace, Menlo, monospace;
  letter-spacing: .35em; white-space: nowrap; text-align: center;
  color: rgba(247,147,26,.16);
}
.matrix span:nth-child(odd) { transform: translateX(-18px); color: rgba(247,147,26,.10); }
.etch {
  position: relative; z-index: 1;
  font: 700 clamp(34px, 4.4vw, 52px)/1 "Plex Mono", ui-monospace, Menlo, monospace;
  letter-spacing: .08em;
  color: #ffb54d;
  text-shadow: 0 0 6px rgba(247,147,26,.9), 0 0 22px rgba(247,147,26,.55), 0 0 60px rgba(247,147,26,.35);
  padding: 10px 14px;
  border-top: 1px solid rgba(247,147,26,.35);
  border-bottom: 1px solid rgba(247,147,26,.35);
  background: linear-gradient(90deg, transparent, rgba(247,147,26,.07), transparent);
}
.caret {
  display: inline-block; width: .5em; height: .9em; margin-left: .08em; vertical-align: -0.08em;
  background: var(--orange); box-shadow: 0 0 12px var(--orange);
  animation: caret 1.1s steps(1) infinite;
}
.scan {
  position: absolute; left: 0; right: 0; top: 0; height: 40%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(247,147,26,.05) 85%, rgba(247,147,26,.16) 97%, transparent);
  animation: scan 4.5s linear infinite;
}
.choice-name:hover .etch, .choice-name.on .etch, .choice-name:focus-visible .etch {
  color: #ffc773;
  text-shadow: 0 0 8px rgba(247,147,26,1), 0 0 30px rgba(247,147,26,.7), 0 0 80px rgba(247,147,26,.45);
}
@keyframes caret { 50% { opacity: 0; } }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@media (prefers-reduced-motion: reduce) {
  .caret, .scan { animation: none; }
  .scan { display: none; }
  .choice-big, .cert { transition: none; }
  .choice-big:hover, .choice-big:focus-visible { transform: none; }
}

.choice-body { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 24px; }
.choice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.choice-big .choice-head b { font-size: 28px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.choice-price {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  padding: 7px 12px; border-radius: 12px;
  background: rgba(247,147,26,.1); border: 1px solid rgba(247,147,26,.4);
  white-space: nowrap; text-align: right;
}
.choice-price strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--orange); }
.choice-price small { font-size: 11.5px; font-weight: 600; color: #b5a48c; letter-spacing: 0; line-height: 1; }
.choice-pitch { display: block; margin-top: 10px; font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; color: var(--ink); }
.choice-sub { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--muted); }
.choice-facts { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 20px; }
.choice-facts span {
  position: relative; display: block; padding-left: 22px;
  font-size: 14px; font-weight: 600; line-height: 1.35; color: #c9c9ce;
}
.choice-facts span::before {
  content: ""; position: absolute; left: 2px; top: .4em; width: 10px; height: 6px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}
.choice-cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  color: var(--orange); border: 1px solid rgba(247,147,26,.45);
  transition: background .2s ease, color .2s ease;
}
.choice-cta .arrow { transition: transform .2s ease; }
.choice-big:hover .choice-cta, .choice-big:focus-visible .choice-cta, .choice-big.on .choice-cta { background: var(--orange); color: #000; border-color: var(--orange); }
.choice-big:hover .choice-cta .arrow { transform: translateX(3px); }

@media (max-width: 760px) {
  body:not([data-editions="on"]) .choices { grid-template-columns: 1fr; gap: 16px; }
  .choice-art { height: 170px; }
  .choice-body { padding: 20px 20px 22px; }
  .choice-big .choice-head b { font-size: 24px; }
  .etch { font-size: 36px; }
}

/* Review: service fee line above the total */
.service-row {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 14px; padding: 12px 0 0;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.service-row .v { color: var(--ink); }
.service-row.hidden { display: none; }

.quiet-link {
  display: block;
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.quiet-link:hover { color: var(--ink); }

.legal-note {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: -.01em;
  line-height: 1.4;
}

/* —— edition size —— */
.edition-field {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 22px 18px;
}
.edition-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.edition-field .qty {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.edition-field input {
  width: 120px;
  height: 56px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ink);
  padding: 0;
}
.edition-field .unit {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.edition-field .hint {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--faint);
  line-height: 1.4;
}

/* —— review extras —— */
.vanity-field {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px 6px 6px 16px;
}
.upgrade-row + .vanity-field { margin-top: 8px; }
.vanity-field input {
  flex: 1;
  min-width: 0;
  height: 40px;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.vanity-avail {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #30d158;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vanity-avail::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
}

.facts-lite {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  margin: -8px 0 22px;
  justify-content: center;
}
.facts-lite span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
}

/* —— Advanced disclosure —— */
details.advanced {
  margin-top: 18px;
  border-radius: 22px;
  background: var(--card);
  padding: 4px 8px 10px 22px;
}
details.advanced summary {
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  padding: 16px 14px 16px 0;
  color: var(--muted);
}
details.advanced summary::-webkit-details-marker { display: none; }
details.advanced[open] summary { color: var(--ink); }

.adv-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 14px 14px 0;
  border-top: 1px solid var(--line);
}
.adv-row .copy { min-width: 0; flex: 1; }
.adv-row .title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.adv-row .note {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
  line-height: 1.35;
}
.adv-row .note.warn { color: #ff9f0a; }
.switch {
  width: 36px;
  height: 22px;
  border-radius: 999px;
  background: #3a3a3c;
  position: relative;
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.switch.on { background: var(--orange); }
.switch.on::after { left: 16px; }

.adv-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.adv-field input[type=number],
.adv-field input[type=text] {
  width: 148px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c0c0c;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.adv-field input.wide { width: 200px; letter-spacing: .06em; text-transform: uppercase; }


button.choice-card { font: inherit; cursor: pointer; }
.type-bar button.change { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); }
.type-bar button.change:hover { color: var(--ink); }
.edition-only { display: none; }
body[data-kind="edition"] .edition-only { display: block; }
footer.site .sub.edition-only { display: none; }
body[data-kind="edition"] footer.site .sub.edition-only { display: block; }
.edition-field input::-webkit-outer-spin-button,
.edition-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.edition-field input { -moz-appearance: textfield; }
button.adv-row { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
button.adv-row .copy, button.adv-row .title, button.adv-row .note { display: block; }
button.adv-row[aria-pressed="true"] .switch { background: var(--orange); }
button.adv-row[aria-pressed="true"] .switch::after { left: 16px; }
button.adv-row:disabled { cursor: default; opacity: .5; }
.named-only { display: none !important; }
body[data-named="1"] .named-only { display: flex !important; }
body[data-named="1"] .named-only.hidden { display: none !important; }
body[data-named="1"] .numeric-only { display: none !important; }
.vanity-field select {
  flex: 1; min-width: 0; height: 40px; background: transparent; border: 0; outline: none;
  color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .06em;
}
.vanity-field select option { background: #111; color: var(--ink); }
.vanity-field.hidden, .vanity-help.hidden { display: none; }
.vanity-help { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.4; }
.vanity-help a { color: var(--orange); font-weight: 600; }
.vanity-avail.warn { color: #ff9f0a; }
.vanity-avail.warn::before { background: #ff9f0a; }
details.advanced .adv-field label { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
details.advanced .adv-field label[for="proof-fee"] { font-family: inherit; }
@media (max-width: 560px) {
  .choice-card:not(.choice-big) { padding: 18px 18px; }
  .edition-field input { font-size: 34px; width: 100px; }
  .adv-field input.wide { width: 150px; }
}
.edition-field .hint.warn { color: #ff9f0a; }
.adv-tag { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--orange); border: 1px solid rgba(247,147,26,.35); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.alt-pay { text-align: center; margin-top: 14px; font-size: 14px; font-weight: 600; }
.alt-pay a { color: var(--muted); border-bottom: 1px dashed var(--faint); }
.alt-pay a:hover { color: var(--ink); }
