Annual report pursuant to Section 13 and 15(d)

Stock-Based Compensation - Additional information (Details)

v3.22.0.1
Stock-Based Compensation - Additional information (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
1 Months Ended 12 Months Ended
Nov. 19, 2021
Sep. 30, 2019
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]          
Outstanding Ending balance     12,117 14,713  
Weighted average grant date fair value (in dollars per share)     $ 13.01 $ 2.67 $ 1.41
Intrinsic value     $ 141,000 $ 3,600 $ 300
Options exercised     4,788    
Stock-based compensation expense     $ 21,887 $ 20,527 $ 1,680
Former Executive          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]          
Repurchased and cancelled shares       2,606  
Former Executive | Additional Paid-in Capital          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]          
Aggregate purchase price       $ 15,500  
Performance and Market Based Options          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]          
Granted     0    
Outstanding Ending balance     2,591    
Repurchased and cancelled shares     956 956  
Options exercised     842    
Incremental cash based compensation expenses       $ 14,500  
Stock-based compensation expense     $ 2,100    
Performance and Market Based Options | Selling Stockholders | Secondary Offerings          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]          
Company common stock Secondary Offering 8,000        
Restricted Stock Units (RSUs)          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]          
Granted   37 2,406    
Vested     366   38
Vested, Fair value     $ 4,400 $ 700  
Granted, Weighted average grant date fair value   $ 3.72 $ 31.22 $ 7.59  
Granted, Fair value   $ 100      
Unrecognized stock-based compensation expense     $ 91,300    
Weighted-average period over which unrecognized stock-based compensation expense are expected to be recognized     1 year 6 months