Stock compensation expense - Summary of Stock Options (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 12 Months Ended
Mar. 31, 2022
Dec. 31, 2021
Number of Stock Options    
Beginning balance outstanding (in shares) 24,255,204  
Granted (in shares) 0  
Exercised (in shares) (924,717)  
Cancelled or forfeited (in shares) (241,210)  
Ending balance outstanding (in shares) 23,089,277 24,255,204
Options exercisable, Number of Stock Options (in shares) 11,853,819  
Weighted Average Exercise Price ($)    
Beginning balance outstanding (in usd per share) $ 0.51  
Granted (in usd per share) 0  
Exercised (in usd per share) 0.52  
Cancelled or forfeited (in usd per share) 0.68  
Ending balance outstanding (in usd per share) 0.59 $ 0.51
Options exercisable, Weighted Average Exercise Price (in usd per share) $ 0.53  
Stock Option Activity, Additional Disclosures    
Outstanding balance, Weighted Average Remaining Contractual Life 7 years 7 months 28 days 7 years 10 months 28 days
Granted, Weighted Average Remaining Contractual Life 0 days  
Exercised, Weighted Average Remaining Contractual Life 7 years 6 months 18 days  
Cancelled or forfeited, Weighted Average Remaining Contractual Life 8 years 1 month 28 days  
Options Exercisable, Weighted Average Remaining Contractual Life 7 years 4 months 17 days  
Beginning balance outstanding, Aggregate Intrinsic Value $ 109,061  
Ending balance outstanding, Aggregate Intrinsic Value 36,586 $ 109,061
Options exercisable, Aggregate Intrinsic Value $ 19,403