Quarterly report pursuant to Section 13 or 15(d)

Stock based compensation (Additional Information) (Details)

v3.22.2.2
Stock based compensation (Additional Information) (Details)
$ / shares in Units, $ in Thousands
3 Months Ended 9 Months Ended
Jul. 20, 2021
shares
Sep. 30, 2022
USD ($)
$ / shares
shares
Sep. 30, 2021
USD ($)
Sep. 30, 2022
USD ($)
$ / shares
shares
Sep. 30, 2021
USD ($)
shares
Dec. 31, 2021
$ / shares
Feb. 23, 2021
shares
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]              
Vesting period       4 years      
Stock-based compensation expense | $   $ 498 $ 13,939 $ (980) $ 43,427    
Number of shares authorized to be repurchased             1,023,825
Stock options outstanding   2,938,357   2,938,357      
2013 Plan [Member]              
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]              
Stock-based compensation expense | $   $ 1,100   $ 8,900      
Reversal of Allocated Share Based Compensation Expense | $   $ 4,200   $ 4,200      
2013 Plan [Member] | Common Class A [Member]              
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]              
Conversion of stock option granted into an option to purchase common stock 5.87585            
2013 Employee Stock Option And Stock Purchase Plan [Member]              
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]              
Share based compensation by share based payment arrangement number of shares authorized   58,863,225   58,863,225      
Stock Options [Member]              
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]              
Stock-based compensation expense | $   $ (3,100) 14,200 $ 1,100 $ 16,500    
Total unrecognized compensation cost | $   17,000   $ 17,000      
Stock Options Granted       1,102,098 1,513,031    
Weighted average period       2 years 9 months 18 days      
Total intrinsic value of options exercised | $       $ 7,400      
Stock Options [Member] | Common Class A [Member]              
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]              
Share based compensation by share based payment arrangement number of shares authorized 19,887,747            
Restricted Stock Units (RSUs) [Member]              
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]              
Stock-based compensation expense | $   2,600 100 6,700 $ 100    
Total unrecognized compensation cost | $   $ 46,300   $ 46,300      
Weighted average period       3 years 6 months      
RSUs Vested       765,070      
RSUs Forfeited       1,985,132      
RSUs Granted       12,500,419      
Purchase price per share | $ / shares   $ 3.43   $ 3.43   $ 6.30  
Restricted Stock Units (RSUs) [Member] | 2021 Plan [Member] | Minimum [Member]              
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]              
Vesting period       1 year      
Restricted Stock Units (RSUs) [Member] | 2021 Plan [Member] | Maximum [Member]              
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]              
Vesting period       4 years      
Restricted Stock [Member]              
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]              
Stock-based compensation expense | $   $ 1,100 $ 300 $ 8,800 $ 26,800    
Total unrecognized compensation cost | $   $ 3,000   $ 3,000      
RSUs Vested       3,720,564      
RSUs Forfeited       0      
RSUs Granted       7,003,261      
Purchase price per share | $ / shares   $ 1.42   $ 1.42