v3.20.4
Stock-Based Compensation (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 12 Months Ended
May 31, 2019
purchasePeriod
shares
Oct. 31, 2018
USD ($)
$ / shares
shares
Sep. 30, 2018
tranche
installment
Jan. 31, 2021
USD ($)
installment
$ / shares
shares
Jan. 31, 2020
USD ($)
$ / shares
shares
Jan. 31, 2019
USD ($)
$ / shares
Jun. 14, 2019
USD ($)
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Total stock-based compensation expense       $ 149,675 $ 79,940 $ 20,505  
Accrued payroll and benefits       $ 71,907 36,810    
Shares of common stock issuable from stock options              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Options exercisable (in shares) | shares       424,906      
Options, aggregate intrinsic value       $ 711,400 $ 469,600 $ 181,100  
Options exercisable, weighted average contractual term       6 years 4 months 24 days 6 years 8 months 12 days 7 years 1 month 6 days  
Weighted average grant date fair value (in usd per share) | $ / shares       $ 66.31 $ 9.51 $ 5.70  
Options exercised, intrinsic value       $ 847,500 $ 407,900 $ 26,900  
Options outstanding, intrinsic value       $ 1,400,000 $ 816,300 $ 286,100  
Options outstanding, weighted average remaining contractual term       7 years 7 years 4 months 24 days 7 years 10 months 24 days  
Total unrecognized stock-based compensation expense, unvested options       $ 24,300 $ 34,700    
Expected amortization period, weighted average vesting period       1 year 8 months 12 days 2 years 1 month 6 days    
Common stock shares issued, early exercised stock options | shares       0 1,037,356    
Stock issued during period, early exercise of employee options, Value         $ 10,300    
Number of shares of common stock related to early exercised stock options subject to repurchase (in shares) | shares       548,028 984,417    
Value of common stock related to early exercised stock options subject to repurchase       $ 5,400 $ 8,700    
RSUs              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Number of vesting schedules     3 3      
RSUs | Tranche One              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Vesting percentage     25.00%        
Number of quarterly installments | installment     12 12      
RSUs | Tranche Two              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Number of quarterly installments | installment     16 16      
RSUs | Tranche Three              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Number of quarterly installments | installment     8 8      
Performance Based RSUs              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Deferred compensation expense             $ 17,300
Restricted Stock Units (RSUs)              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Expected amortization period, weighted average vesting period       2 years 7 months 6 days 2 years 6 months    
Unrecognized stock based compensation expense, unvested RSUs       $ 393,900 $ 139,400    
PSUs              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Expected amortization period, weighted average vesting period       1 year 3 months 18 days 1 year 7 months 6 days    
Unrecognized stock based compensation expense, unvested RSUs       $ 24,800 $ 2,700    
PSUs | Minimum              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Threshold percentage, outstanding shares       0.00%      
PSUs | Maximum              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Threshold percentage, outstanding shares       130.00%      
Series E Redeemable Convertible Preferred Stock | Tender Offer Transaction              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Sale of stock, shares issued (in shares) | shares   2,400,000          
Sale of stock, price per share (in usd per share) | $ / shares   $ 15.64          
Sale of stock, aggregate purchase price   $ 37,600          
Total stock-based compensation expense   $ 10,800          
Equity Incentive Plan 2019 | Class A Common Stock              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Shares authorized (in shares) | shares 8,750,000            
Threshold percentage, outstanding shares 2.00%            
Employee Stock Purchase Plan              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Threshold percentage, outstanding shares 1.00%            
ESPP, consecutive offering period 24 months            
ESPP, number of purchase periods | purchasePeriod 4            
ESPP, purchase period duration 6 months            
ESPP, percentage of eligible compensation 15.00%            
Maximum number of shares purchasable (in shares) | shares 2,500            
Purchase price of common stock, percentage 85.00%            
Plan modification, incremental cost       $ 3,500      
Accrued payroll and benefits       $ 11,000 $ 6,600    
Employee Stock Purchase Plan | Class A Common Stock              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Shares authorized (in shares) | shares 3,500,000