Income Taxes - Schedule of (Benefit from) Provision for Income Taxes Differs from Income Tax Determined by Applicable U.S. Statutory Federal Income Tax Rate to Pretax Income (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Income Tax Disclosure [Abstract]    
Federal statutory rate $ (26,245) $ (27,253)
Adjustments for tax effects of:    
Tax credits (22,448) (10,735)
State taxes, net (7,575) (8,581)
Unrecognized tax benefits 3,431 2,445
Stock-based compensation 2,308 956
Permanent adjustments 53 134
Other, net (192) (27)
Change in valuation allowance 50,668 43,061
Total $ 0 $ 0