v3.24.0.1
Common Stock - Additional Information (Details)
$ / shares in Units, $ in Millions
1 Months Ended 12 Months Ended
Jan. 01, 2021
shares
Dec. 08, 2020
day
Nov. 30, 2020
Dec. 31, 2023
USD ($)
$ / shares
shares
Dec. 31, 2022
USD ($)
$ / shares
shares
Dec. 31, 2021
USD ($)
$ / shares
Feb. 28, 2023
USD ($)
May 31, 2022
shares
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                
Stock repurchase program, authorized amount | $       $ 750.0     $ 750.0  
Number of shares repurchased (in shares) | shares       12,000,000        
Weighted average price of shares purchased | $ / shares       $ 62.66        
Common stock reserved for future issuance on an as-converted basis (in shares) | shares       103,480,000 107,646,000     9,760,000
Stock-based compensation expense | $       $ 1,088.0 $ 889.0 $ 486.0    
Options exercised, aggregate intrinsic value | $       $ 510.0 $ 451.0 $ 2,300.0    
Weighted average fair value of stock assumed via acquisition (in dollars per shares) | $ / shares         $ 72.99      
Options granted, weighted-average grant date fair value (in dollars per share) | $ / shares       $ 0 $ 0 $ 0    
Stock Options                
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                
Common stock reserved for future issuance on an as-converted basis (in shares) | shares       9,022,000 16,021,000      
Unrecognized stock-based compensation expense related to unvested stock options | $       $ 7.0        
Unrecognized stock-based compensation expense related to unvested stock options, remaining period for recognition       1 year 11 months 12 days        
RSUs                
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                
Common stock reserved for future issuance on an as-converted basis (in shares) | shares       37,822,000 45,131,000      
Unrecognized stock-based compensation expense related to unvested stock options | $       $ 1,900.0        
Unrecognized stock-based compensation expense related to unvested stock options, remaining period for recognition       2 years 4 months 9 days        
RSUs | Service-based Vesting Condition                
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                
Award vesting period     4 years          
2014 Stock Option Plan | Stock Options                
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                
Option term       10 years        
Option grant price as percent of fair value of stock price (not less than)       100.00%        
Award vesting period       4 years        
2014 Stock Option Plan | Incentive Stock Option Grant to a Greater than 10% Stockholder                
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                
Option term       5 years        
Option grant price as percent of fair value of stock price (not less than)       110.00%        
2020 Equity Incentive Plan                
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                
Number of business days prior to effective date of registration statement that the 2020 Plan became effective | day   1            
2020 Equity Incentive Plan | Class A                
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                
Additional shares authorized (in shares) | shares 32,493,000              
Percent of outstanding shares 5.00%              
2020 Equity Incentive Plan | Stock Options                
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                
Option term       10 years        
Option grant price as percent of fair value of stock price (not less than)       100.00%        
Award vesting period       4 years        
2020 Equity Incentive Plan | Incentive Stock Option Grant to a Greater than 10% Stockholder                
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                
Option term       5 years        
Option grant price as percent of fair value of stock price (not less than)       110.00%