v3.26.1
Equity Incentive Plans - Additional Information (Details) - USD ($)
$ / shares in Units, $ in Thousands
1 Months Ended 12 Months Ended
Nov. 30, 2020
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Total common stock reserved for future issuance (in shares)   89,003,810 92,973,623  
Granted (in shares)   0    
Weighted-average fair value of employee options granted (in USD per share)     $ 31.74 $ 16.37
Aggregate intrinsic value of options exercised   $ 193,700 $ 234,500 $ 79,000
Aggregate intrinsic value of options exercised (in USD per share)   22,100 26,800 24,300
Total stock-based compensation in operating expenses   $ 304,671 $ 321,433 344,511
Issuance of common stock upon exercise of stock option (in shares)   3,048,939    
Stock options        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Total common stock reserved for future issuance (in shares)   19,595,080 39,122,013  
Vesting period   4 years    
Non-vested stock options, unrecognized compensation cost   $ 19,800    
Weighted-average compensation expense recognition period   1 year 4 months 24 days    
Stock options | Maximum        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Expiration period prior to IPO   10 years    
Expiration period   10 years    
Stock options | Minimum        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Expiration period prior to IPO   7 years    
Expiration period   3 months    
Stock options | Tranche One        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Vesting period   12 months    
Vesting rights percentage   25.00%    
Stock options | Tranche Two        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Vesting period   3 years    
Vesting rights percentage   75.00%    
Value creation award        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Vesting period   5 years    
Granted (in shares) 12,500,000      
Aggregate intrinsic value of options exercised   $ 68,600    
Non-vested stock options, unrecognized compensation cost   $ 0    
Unvested shares expired (in shares)   8,500,000    
Total stock-based compensation in operating expenses   $ 11,800 $ 36,500 $ 64,600
Issuance of common stock upon exercise of stock option (in shares)   1,999,998 0 0
Restricted stock units        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Weighted-average compensation expense recognition period   1 year 3 months 18 days    
Non-vested RSUs, unrecognized compensation cost   $ 336,700    
Restricted stock units | Maximum        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Vesting period   4 years    
Restricted stock units | Minimum        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Vesting period   1 year    
Performance stock units        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Vesting period   3 years    
Weighted-average compensation expense recognition period   2 years    
Non-vested RSUs, unrecognized compensation cost   $ 61,300    
Share-based payment arrangement, expense, period for recognition   3 years    
Performance stock units | Maximum        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Vesting rights percentage   200.00%    
Performance stock units | Minimum        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Vesting rights percentage   0.00%    
Employee stock purchase plan shares        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Share-based compensation arrangement by share-based payment award, purchase period   6 months    
Class A common stock        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Number of common stock available for issuance (in shares)   69,408,730    
2012 Stock Plan | Class A common stock        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Total common stock reserved for future issuance (in shares)   192,859,800    
2020 Employee Stock Purchase Plan        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Share purchase price discount percent   85.00%    
2020 Employee Stock Purchase Plan | Class A common stock        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Number of common stock available for issuance (in shares)   18,900,000    
Number of common stock issued (in shares)   2,400,000