Stock-based compensation - Summary of stock option activity - other information (Details) - 2020 Stock Option and Incentive Plan - USD ($) $ / shares in Units, $ in Thousands |
12 Months Ended | |
|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
|
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | ||
| Weighted-average fair value of options granted (in dollars per share) | $ 13.44 | $ 29.54 |
| Intrinsic value of options exercised (in thousands) | $ 1,796 | $ 17,321 |