v3.26.1
Net Income (Loss) per Share Attributable to Common Stockholders - Schedule of Basic and Diluted Net Loss Per Share (Details) - USD ($)
$ / shares in Units, $ in Thousands
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Denominator:      
Weighted average shares of common stock - basic (in shares) 335,155,421 322,851,873 309,857,129
Weighted average shares of common stock - diluted (in shares) 348,846,647 341,023,566 309,857,129
Net income (loss) per share:      
Basic (in USD per share) $ 5.76 $ 0.16 $ (1.67)
Diluted (in USD per share) $ 5.53 $ 0.15 $ (1.67)
Class A common stock      
Numerator:      
Net income (loss) attributable to common stockholders - basic $ 1,695,654 $ 45,456 $ (430,789)
Net income (loss) attributable to common stockholders - diluted $ 1,704,843 $ 45,815 $ (430,789)
Denominator:      
Weighted average shares of common stock - basic (in shares) 294,491,481 281,215,807 257,810,094
Weighted average shares of common stock - diluted (in shares) 308,182,707 299,387,500 257,810,094
Net income (loss) per share:      
Basic (in USD per share) $ 5.76 $ 0.16 $ (1.67)
Diluted (in USD per share) $ 5.53 $ 0.15 $ (1.67)
Class A common stock | Restricted stock units      
Denominator:      
Dilutive effect of stock equivalents (in shares) 5,430,315 8,863,942 0
Class A common stock | Stock options      
Denominator:      
Dilutive effect of stock equivalents (in shares) 7,463,459 8,950,174 0
Class A common stock | Value creation award vested shares      
Denominator:      
Dilutive effect of stock equivalents (in shares) 743,411 346,434 0
Class A common stock | Performance stock units      
Denominator:      
Dilutive effect of stock equivalents (in shares) 24,381 0 0
Class A common stock | Employee stock purchase plan shares      
Denominator:      
Dilutive effect of stock equivalents (in shares) 21,416 11,143 0
Class A common stock | Common stock warrants      
Denominator:      
Dilutive effect of stock equivalents (in shares) 8,244 0 0
Class B common stock      
Numerator:      
Net income (loss) attributable to common stockholders - basic $ 234,139 $ 6,730 $ (86,968)
Net income (loss) attributable to common stockholders - diluted $ 224,950 $ 6,371 $ (86,968)
Denominator:      
Weighted average shares of common stock - basic (in shares) 40,663,940 41,636,066 52,047,035
Weighted average shares of common stock - diluted (in shares) 40,663,940 41,636,066 52,047,035
Net income (loss) per share:      
Basic (in USD per share) $ 5.76 $ 0.16 $ (1.67)
Diluted (in USD per share) $ 5.53 $ 0.15 $ (1.67)
Class B common stock | Restricted stock units      
Denominator:      
Dilutive effect of stock equivalents (in shares) 0 0 0
Class B common stock | Stock options      
Denominator:      
Dilutive effect of stock equivalents (in shares) 0 0 0
Class B common stock | Value creation award vested shares      
Denominator:      
Dilutive effect of stock equivalents (in shares) 0 0 0
Class B common stock | Performance stock units      
Denominator:      
Dilutive effect of stock equivalents (in shares) 0 0 0
Class B common stock | Employee stock purchase plan shares      
Denominator:      
Dilutive effect of stock equivalents (in shares) 0 0 0
Class B common stock | Common stock warrants      
Denominator:      
Dilutive effect of stock equivalents (in shares) 0 0 0