Annual report pursuant to Section 13 and 15(d)

Stock-Based Compensation - Additional Information (Details)

v3.22.4
Stock-Based Compensation - Additional Information (Details) - USD ($)
$ / shares in Units, $ in Thousands
1 Months Ended 12 Months Ended
Jan. 01, 2023
Dec. 31, 2022
Dec. 16, 2021
Aug. 10, 2021
Nov. 30, 2016
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Aggregate Intrinsic Value, Shares exercisable (vested and unvested)   $ 21,030       $ 21,030    
Fair value           36,000 $ 200 $ 0
Additional stock-based compensation           69,070 26,932 $ 7,185
Unrecognized compensation costs   185,800       $ 185,800    
Unrecognized compensation costs, period for recognition           4 years    
Stock repurchase liability   378       $ 378 $ 711  
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)           $ 0 $ 9.16 $ 4.14
Aggregate Intrinsic Value, Shares exercisable (vested and unvested)   $ 12,000       $ 12,000 $ 20,100 $ 3,100
2021 Equity Incentive Plan                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Percentage of share outstanding       4.00%        
Shares, available for grant (in shares)   69,365,590       69,365,590    
2021 Equity Incentive Plan | Subsequent Event                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Number of shares available for issuance (in shares) 24,904,113              
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)                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Share-based compensation arrangement award vesting period         6 years      
Contractual term of the grants upon issuance         10 years      
Performance Shares (PSUs)                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Target bonus threshold     30.00%          
Increase in target amounts     one-third          
Additional stock-based compensation           $ 18,000    
Share-Based Payment Arrangement, Option                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Dividend rate           0.00%   0.00%
Restricted stock shares weighted average repurchase price per share (in dollars per share)   $ 0.10       $ 0.10 $ 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)           3,923,509 6,918,483  
Stock repurchase liability   $ 400       $ 400 $ 700  
Employee Stock                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Dividend rate           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)   9,674,430            
Additional stock-based compensation           $ 400    
Employee Stock | 2021 Employee Stock Purchase Plan | Subsequent Event                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Number of shares available for issuance (in shares) 3,113,014              
Other Stock Based Awards | Series C preferred stock                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Payments for advisory services shares           2,677,200    
Other Stock Based Awards | Maximum                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Shares repurchased (in shares)           2,007,595