Annual report pursuant to Section 13 and 15(d)

Stock-Based Compensation - Additional Information (Details)

v3.24.0.1
Stock-Based Compensation - Additional Information (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 12 Months Ended
Jan. 01, 2024
shares
Feb. 27, 2023
Aug. 10, 2021
Nov. 30, 2016
Dec. 31, 2023
USD ($)
$ / shares
shares
Dec. 31, 2022
USD ($)
$ / shares
shares
Dec. 31, 2021
USD ($)
$ / shares
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Shares exercisable (vested and unvested) | $         $ 48,210    
Fair value | $         60,600 $ 36,000 $ 200
Additional stock-based compensation | $         $ 93,636 $ 69,070 $ 26,932
Shares issued under employee stock purchase plan (in shares) | shares         1,881,109    
Unrecognized compensation costs | $         $ 200,000    
Unrecognized compensation costs, period for recognition         2 years 7 months 6 days    
2016 Stock Option and Grant Plan              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Weighted average grant date fair value of options granted (in dollars per share) | $ / shares         $ 0 $ 0 $ 9.16
Shares exercisable (vested and unvested) | $         $ 15,200 $ 12,000 $ 20,100
2021 Equity Incentive Plan              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Percentage of share outstanding     4.00%        
Number of shares available for issuance (in shares) | shares         80,671,660    
2021 Equity Incentive Plan | Subsequent Event              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Increase in number of shares available for issuance (in shares) | shares 27,930,481            
2021 Employee Stock Purchase Plan              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Percentage of share outstanding     0.50%        
Incentive Stock Options | 2016 Stock Option and Grant Plan              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Contractual term of options       10 years      
Share-based compensation arrangement award vesting period       6 years      
Award cliff off period       1 year      
Incentive Stock Options | 2016 Stock Option and Grant Plan | Grantee Owns Ten Percent of Voting Rights              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Contractual term of options       5 years      
Percentage of shareholding by grantee       10.00%      
Percentage of stockholders to exercise price of option granted       10.00%      
Purchase price of common stock expressed as a percentage of its fair value       110.00%      
Restricted Stock Units (RSUs) | 2016 Stock Option and Grant Plan              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Share-based compensation arrangement award vesting period         6 years    
Contractual term of restricted stock units         10 years    
Share-Based Payment Arrangement, Option              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Restricted stock shares weighted average repurchase price per share (in dollars per share) | $ / shares         $ 0.09 $ 0.10  
Share-Based Payment Arrangement, Option | Maximum              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Number of shares to be repurchased (in shares) | shares         1,988,511 3,923,509  
Accounts payable and accrued liabilities, noncurrent | $         $ 200 $ 400  
Performance Shares (PSUs)              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Target bonus threshold   30.00%          
Increase in target amounts   0.3333          
Additional stock-based compensation | $         $ 31,300 $ 18,000  
Employee Stock              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Dividend rate         0.00% 0.00%  
Employee Stock | 2021 Employee Stock Purchase Plan              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Purchase price of common stock expressed as a percentage of its fair value     85.00%        
Number of shares available for issuance (in shares) | shares         10,906,307    
Additional stock-based compensation | $         $ 3,700 $ 400  
Employee Stock | 2021 Employee Stock Purchase Plan | Subsequent Event              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Increase in number of shares available for issuance (in shares) | shares 3,491,310            
Other Stock Based Awards | Series C preferred stock              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Shares subject to time-based vesting conditions converted to restricted common shares (in shares) | shares         2,677,200    
Other Stock Based Awards | Maximum              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Shares repurchased (in shares) | shares         1,561,599 2,007,595