v3.25.1
Convertible Notes (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 3 Months Ended 9 Months Ended
Feb. 20, 2025
USD ($)
day
$ / shares
Feb. 29, 2024
USD ($)
day
Mar. 31, 2025
USD ($)
Mar. 31, 2025
USD ($)
Mar. 31, 2024
USD ($)
Feb. 12, 2025
$ / shares
shares
Feb. 11, 2025
USD ($)
Debt Instrument [Line Items]              
Debt extinguishment loss       $ (30,251) $ 0    
Minimum              
Debt Instrument [Line Items]              
Capped calls, increased (in share) | shares           7.455  
Maximum              
Debt Instrument [Line Items]              
Capped calls, increased (in share) | shares           11.984  
Convertible Senior Notes Due 2029 | Convertible Notes Payable              
Debt Instrument [Line Items]              
Convertible notes   $ 1,725,000          
Interest rate 3.50%   3.88% 3.88%      
Conversion price ratio 0.0119482 0.0007455          
Convertible, approximate conversion rate (in dollars per share) | $ / shares $ 83.44            
Debt extinguishment loss       $ (30,300)      
Convertible conversion percentage   130.00%          
Trading days | day   20          
Percentage of principal repaid upon request following fundamental change   100.00%          
Unamortized issuance costs     $ 23,900 23,900      
Total term loans     1,701,100 $ 1,701,100      
Amortization of debt issuance costs     800        
Convertible Senior Notes Due 2029 | Convertible Notes Payable | Debt Covenant, Redemption Option One              
Debt Instrument [Line Items]              
Convertible conversion percentage   130.00%          
Trading days | day   20          
Convertible, threshold consecutive trading days | day   30          
Convertible Senior Notes Due 2029 | Convertible Notes Payable | Debt Covenant, Redemption Option Two              
Debt Instrument [Line Items]              
Convertible conversion percentage   98.00%          
Trading days | day   5          
Convertible, threshold consecutive trading days | day   5          
Convertible Senior Notes Due 2029 | Senior Notes              
Debt Instrument [Line Items]              
Coupon interest     $ 8,200        
Convertible Senior Notes Due 2028 | Convertible Notes Payable              
Debt Instrument [Line Items]              
Convertible notes $ 700,000           $ 700,000
Interest rate 2.25%   2.97% 2.97%      
Conversion price ratio 0.0163784            
Convertible, approximate conversion rate (in dollars per share) | $ / shares $ 61.06            
Convertible conversion percentage 150.00%            
Trading days | day 20            
Percentage of principal repaid upon request following fundamental change 100.00%            
Unamortized issuance costs     $ 15,800 $ 15,800      
Total term loans     684,200 $ 684,200      
Amortization of debt issuance costs     500        
Cap price (in dollars per share) | $ / shares           $ 94.17  
Convertible Senior Notes Due 2028 | Convertible Notes Payable | Debt Covenant, Redemption Option One              
Debt Instrument [Line Items]              
Convertible conversion percentage 130.00%            
Trading days | day 20            
Convertible, threshold consecutive trading days | day 30            
Convertible Senior Notes Due 2028 | Convertible Notes Payable | Debt Covenant, Redemption Option Two              
Debt Instrument [Line Items]              
Convertible conversion percentage 98.00%            
Trading days | day 5            
Convertible, threshold consecutive trading days | day 5            
Convertible Senior Notes Due 2028 | Senior Notes              
Debt Instrument [Line Items]              
Coupon interest     $ 1,800        
Convertible Promissory Notes              
Debt Instrument [Line Items]              
Interest rate 2.25%            
Capped Calls              
Debt Instrument [Line Items]              
Capped call initial strike price (in dollars per share) | $ / shares           $ 83.44