Annual report pursuant to Section 13 and 15(d)

Basis of Presentation and Summary of Significant Accounting Policies - Immaterial Correction of Prior Period Financial Statements (Details)

v3.22.0.1
Basis of Presentation and Summary of Significant Accounting Policies - Immaterial Correction of Prior Period Financial Statements (Details) - USD ($)
$ / shares in Units, $ in Thousands
12 Months Ended
Dec. 31, 2020
Dec. 31, 2021
Dec. 31, 2020
Dec. 21, 2020
Dec. 31, 2019
Error Corrections and Prior Period Adjustments Restatement [Line Items]          
Private placement warrants liability $ 6,613 $ 0 $ 6,613 $ 9,745  
Liabilities 188,228 179,075 188,228    
Additional paid-in capital 910,579 1,036,104 910,579    
Accumulated deficit (345,361) (692,129) (345,361)    
Total stockholders' (deficit) equity 565,242 343,999 565,242   $ (55,868)
(Loss) gain on fair value change in private placement warrants liability 3,132 1,639 (3,132)    
Loss before income taxes   (346,768) (86,684)    
Net loss and comprehensive loss   $ (346,768) $ (86,686)    
Net loss per share, basic (in dollars per share)   $ (1.52) $ (0.79)    
Net loss per share, diluted (in dollars per share)   $ (1.52) (0.79)    
Net loss per share, basic (in dollars per share)     (0.78)    
Net loss per share, diluted (in dollars per share)     $ (0.78)    
Additional paid-in capital          
Error Corrections and Prior Period Adjustments Restatement [Line Items]          
Total stockholders' (deficit) equity 910,579 $ 1,036,104 $ 910,579   202,796
Accumulated deficit          
Error Corrections and Prior Period Adjustments Restatement [Line Items]          
Total stockholders' (deficit) equity (345,361) (692,129) (345,361)   $ (258,675)
Net loss and comprehensive loss   (346,768) (86,686)    
Accounting for Derivative Liability          
Error Corrections and Prior Period Adjustments Restatement [Line Items]          
Private placement warrants liability 6,613   6,613    
Liabilities 188,228   188,228    
Additional paid-in capital 910,579   910,579    
Accumulated deficit (345,361)   (345,361)    
Total stockholders' (deficit) equity 565,242   565,242    
As Previously Reported          
Error Corrections and Prior Period Adjustments Restatement [Line Items]          
Private placement warrants liability       0  
Additional paid-in capital 920,324   920,324    
Accumulated deficit (348,493)   (348,493)    
Total stockholders' (deficit) equity 571,855   571,855    
(Loss) gain on fair value change in private placement warrants liability 0   0    
Loss before income taxes     (89,816)    
Net loss and comprehensive loss     $ (89,818)    
Net loss per share, basic (in dollars per share)     $ (0.81)    
Net loss per share, diluted (in dollars per share)     $ (0.81)    
As Previously Reported | Accounting for Derivative Liability          
Error Corrections and Prior Period Adjustments Restatement [Line Items]          
Private placement warrants liability 0 $ (9,700) $ 0    
Liabilities 181,615   181,615    
Additional paid-in capital 920,324   920,324    
Accumulated deficit (348,493)   (348,493)    
Total stockholders' (deficit) equity 571,855   571,855    
Adjustments | Accounting for Derivative Liability          
Error Corrections and Prior Period Adjustments Restatement [Line Items]          
Private placement warrants liability 6,613   6,613 $ 9,745  
Liabilities 6,613   6,613    
Additional paid-in capital (9,745)   (9,745)    
Accumulated deficit 3,132   3,132    
Total stockholders' (deficit) equity (6,613)   (6,613)    
(Loss) gain on fair value change in private placement warrants liability $ 3,132   (3,132)    
Loss before income taxes     3,132    
Net loss and comprehensive loss     $ 3,132    
Net loss per share, basic (in dollars per share)     $ 0.03    
Net loss per share, diluted (in dollars per share)     $ 0.03