:root {
  --ink: #161616;
  --muted: #555;
  --soft: #8a8a8a;
  --line: #d6d6d6;
  --tint: #f7f7f7;
  --page: #ededed;
  --red: #e12726;
  --red-tint: #fdf1f0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 16px/1.6 'General Sans', 'Helvetica Neue', Arial, sans-serif;
}
h1, h2, h3, .display { font-family: 'Satoshi', 'Helvetica Neue', Arial, sans-serif; font-weight: 500; margin: 0; }
p { margin: 0 0 12px; }
a { color: inherit; }
.dot { color: var(--red); }
.num { font-family: 'Satoshi', sans-serif; font-weight: 500; color: var(--red); font-size: 13px; letter-spacing: .04em; }
.muted { color: var(--muted); }
.f {
  font-weight: 500; font-size: .92em; white-space: nowrap;
  background: var(--tint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
}

.paper {
  max-width: 920px; margin: 32px auto; background: #fff; border: 1px solid var(--line);
  border-radius: 28px; padding: 56px;
}
@media (max-width: 720px) {
  .paper { margin: 0; border-radius: 0; border: 0; padding: 28px 18px; }
}

/* cover */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top img { height: 28px; }
.top span { font-size: 13px; color: var(--muted); }
.top-r { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.lang { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--tint); }
.lang a { font: 500 12px/1 'Satoshi', sans-serif; letter-spacing: .08em; text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 999px; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: #fff; }
.eyebrow { font-size: 14px; font-weight: 500; margin-top: 48px; }
h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.02; letter-spacing: -.025em; margin: 14px 0 20px; max-width: 760px; }
.lead { font-size: 19px; color: var(--muted); max-width: 600px; }
.lockup {
  margin-top: 36px; height: 180px; display: flex; align-items: center; justify-content: center; gap: 44px;
  background: var(--tint); border: 1px solid var(--line); border-radius: 20px;
}
.lockup .stripe { height: 56px; }
.lockup .moloni { height: 80px; }
.swap { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; }
@media (max-width: 720px) { .lockup { height: 130px; gap: 22px; } .lockup .stripe { height: 38px; } .lockup .moloni { height: 54px; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 36px; }
.facts div { padding: 16px 20px 0 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: 'Satoshi', sans-serif; font-weight: 500; margin-top: 4px; }
.facts p { font-size: 14px; color: var(--muted); margin: 2px 0 0; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } .facts div + div { padding-left: 0; border-left: 0; } }

/* sections */
section { border-top: 1px solid var(--line); padding-top: 44px; margin-top: 44px; scroll-margin-top: 16px; }
h2 { font-size: clamp(24px, 3.4vw, 30px); letter-spacing: -.015em; line-height: 1.15; margin-top: 4px; }
.intro { margin-top: 8px; color: var(--muted); max-width: 680px; }
.stack > * + * { margin-top: 20px; }

ol.do { list-style: none; padding: 0; margin: 0; }
ol.do li { display: flex; gap: 12px; margin-bottom: 10px; }
ol.do li > b {
  flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font: 500 12px 'Satoshi', sans-serif;
}

dl.fields { margin: 0; border-top: 1px solid var(--line); }
dl.fields div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
dl.fields dt { font-weight: 500; }
dl.fields dd { margin: 0; color: var(--muted); }
@media (max-width: 720px) { dl.fields div { grid-template-columns: 1fr; gap: 2px; } }

.note { border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.note .label { font: 600 15px 'General Sans', sans-serif; margin-bottom: 2px; }
.note p:last-child { margin-bottom: 0; }
.note.tip { background: var(--tint); }
.note.warn { background: var(--red-tint); }
.note.warn .label { color: var(--red); }

.split { display: grid; grid-template-columns: 1fr 150px; gap: 24px; align-items: start; }
.split.wide { grid-template-columns: 1fr 210px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .split, .split.wide, .two { grid-template-columns: 1fr; } .split figure { max-width: 220px; } }

figure { margin: 0; }
.shot {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; cursor: zoom-in; position: relative; box-shadow: 0 6px 20px rgba(22,22,22,.06);
}
.shot img { display: block; width: 100%; height: auto; }
.shot::after {
  content: "⤢"; position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(22,22,22,.8); color: #fff; display: grid; place-items: center; font-size: 15px;
  opacity: 0; transition: opacity .15s;
}
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }
.shot:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
figcaption { margin-top: 8px; font-size: 13px; color: var(--soft); }

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.flow .box { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.flow .box.hl { background: var(--tint); }
.flow .box img { height: 24px; margin-bottom: 10px; }
.flow .box strong { display: block; font-family: 'Satoshi', sans-serif; font-weight: 500; }
.flow .box p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.flow .arrow { align-self: center; color: var(--red); }
.kapta-mark { font: 700 18px/24px 'Satoshi', sans-serif; letter-spacing: -.02em; display: block; margin-bottom: 10px; }
@media (max-width: 720px) { .flow { grid-template-columns: 1fr; } .flow .arrow { display: none; } }

nav.index { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 1px solid var(--line); }
nav.index a { display: flex; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
nav.index a:hover { color: var(--red); }
@media (max-width: 720px) { nav.index { grid-template-columns: 1fr; } }

.help {
  margin-top: 48px; border-radius: 20px; background: var(--ink); color: #fff; padding: 32px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.help h2 { font-size: 30px; }
.help p { color: rgba(255,255,255,.72); max-width: 460px; margin-top: 8px; }
.help .cta {
  display: inline-block; margin-top: 8px; background: #fff; color: var(--ink); text-decoration: none;
  border-radius: 999px; padding: 10px 24px; font: 500 16px 'Satoshi', sans-serif;
}
.help .url { display: block; margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.5); }
.help img { height: 28px; }

footer { max-width: 920px; margin: 0 auto 40px; padding: 0 18px; font-size: 13px; color: var(--soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* lightbox */
dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
dialog::backdrop { background: rgba(0,0,0,.82); }
dialog img { display: block; max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 12px; background: #fff; }
dialog p { margin: 12px 0 0; text-align: center; color: rgba(255,255,255,.85); font-size: 14px; }
dialog button {
  position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
@media print { dialog, .shot::after, .lang { display: none; } body { background: #fff; } .paper { border: 0; margin: 0; } }
