v3.26.1
Debt - Narrative (Details)
1 Months Ended 3 Months Ended 6 Months Ended
Nov. 14, 2025
$ / shares
Oct. 31, 2025
USD ($)
shares
Oct. 30, 2025
USD ($)
shares
Oct. 15, 2025
USD ($)
day
shares
Sep. 29, 2025
USD ($)
shares
Mar. 05, 2021
USD ($)
Oct. 31, 2025
USD ($)
Jun. 27, 2026
USD ($)
shares
Jun. 28, 2025
USD ($)
Jun. 27, 2026
USD ($)
shares
Jun. 28, 2025
USD ($)
May 01, 2026
Dec. 31, 2025
USD ($)
shares
Dec. 22, 2025
$ / shares
Dec. 21, 2025
$ / shares
Oct. 16, 2025
USD ($)
Sep. 18, 2025
USD ($)
Jun. 26, 2025
USD ($)
May 07, 2025
USD ($)
$ / shares
shares
Mar. 12, 2021
USD ($)
Debt Instrument [Line Items]                                        
Common stock, issued (in shares) | shares   317,834,446 1,684,270 316,150,176                                
Net Carrying Amount               $ 323,796,000   $ 323,796,000     $ 415,740,000              
Gain on debt extinguishment               $ 57,729,000 $ 0 $ 63,789,000 $ 0                  
Total common stock reserved for future issuance (in shares) | shares               180,709,132   180,709,132     183,354,433              
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares                                     9,558,635  
Class of warrant or right, exercise price of warrants or rights (in usd per share) | $ / shares                           $ 1.95 $ 3.26       $ 3.26  
2018 Plan                                        
Debt Instrument [Line Items]                                        
Granted (in shares) | shares                   7,176,019                    
Total common stock reserved for future issuance (in shares) | shares               10,024,113   10,024,113     10,310,481              
Restricted Stock Units (RSUs)                                        
Debt Instrument [Line Items]                                        
Granted (in shares) | shares                   8,416,517                    
Restricted Stock Units (RSUs) | 2018 Plan                                        
Debt Instrument [Line Items]                                        
Granted (in shares) | shares                   4,264,723                    
Performance Shares                                        
Debt Instrument [Line Items]                                        
Granted (in shares) | shares                   0                    
Performance Shares | 2018 Plan                                        
Debt Instrument [Line Items]                                        
Total common stock reserved for future issuance (in shares) | shares               20,309,683   20,309,683                    
Convertible Debt                                        
Debt Instrument [Line Items]                                        
Debt instrument, redemption price, percentage of outstanding debt declarable           25.00%                            
Debt instrument, debt default, period of special interest rate           365 days                            
Debt instrument, interest rate, increase (decrease)           0.50%                            
Debt issuance costs           $ 23,600,000                            
Convertible Senior Notes Due 2027 | Convertible Debt                                        
Debt Instrument [Line Items]                                        
Debt, face amount           $ 1,000,000,000.0                            
Debt issuance costs               $ 0   $ 0     $ 0              
Amortization of debt issuance costs                 $ 1,000,000.0   $ 2,000,000.0                  
Annualized effective interest rate (in percent)                 0.34%   0.34%                  
Gain on debt restructuring             $ 5,400,000                          
Maximum issuable principal amount     $ 5,938,000 $ 1,114,603,000                                
Percentage of aggregate principal of previously outstanding notes     97.44% 96.92%                                
Principal amount               29,459,000   29,459,000     29,459,000     $ 35,397,000        
Net Carrying Amount               $ 29,459,000   $ 29,459,000     $ 29,459,000              
Debt instrument, covenant, aggregate principal outstanding prior to maturity       $ 60,000,000.0                                
Remaining term (in years)                   8 months 12 days                    
Additional Convertible Senior Notes Due 2027 | Convertible Debt                                        
Debt Instrument [Line Items]                                        
Debt, face amount                                       $ 150,000,000.0
Convertible Senior Notes Due 2030                                        
Debt Instrument [Line Items]                                        
Common stock, issued (in shares) | shares               52,092,284   57,408,142                    
Reduction in debt carrying value               $ 100,000,000.0   $ 109,900,000                    
Decrease in fair value of embedded derivative from debt conversions               15,400,000   16,500,000                    
Gain on debt extinguishment               $ 57,700,000   $ 63,800,000                    
Total common stock reserved for future issuance (in shares) | shares               86,660,407   86,660,407     120,000,000              
Convertible Senior Notes Due 2030 | Convertible Debt                                        
Debt Instrument [Line Items]                                        
Amortization of debt issuance costs               $ 1,000,000.0   $ 2,200,000                    
Maximum aggregate principal amount         $ 202,500,000                              
Maximum issuable shares (in shares) | shares         326,190,370                              
Principal amount   $ 209,721,000         $ 209,721,000 224,269,000   224,269,000     $ 334,148,000              
Exchange principal amount       196,217,000       62,600,000   $ 68,800,000                    
Common stock, issued (in shares) | shares                   57,408,142                    
Proceeds from issuance of convertible senior notes       12,500,000                                
Net Carrying Amount     $ 1,004,000 $ 208,717,000       208,705,000   $ 208,705,000     308,403,000              
Interest, stated rate (in percent)       7.00%                                
Payment in kind, interest rate       9.50%               9.50%                
Conversion ratio 0.5727784     1.0292716                                
Converted instrument, rate       10.00%                                
Debt instrument, covenant, consecutive trading days following settlement date | day       20                                
Debt instrument, conversion price (in dollars per share) | $ / shares $ 1.7459                                      
Debt instrument, covenant, minimum liquidity       $ 15,000,000.0                                
Debt instrument, redemption percentage       100.00%                                
Remaining term (in years)                   4 years 3 months 18 days                    
Loan and Security Agreement | Line of Credit | Secured Debt                                        
Debt Instrument [Line Items]                                        
Debt, face amount               100,000,000.0   $ 100,000,000.0                 $ 100,000,000.0  
Debt issuance costs               $ 6,718,000   $ 6,718,000     $ 7,181,000           7,300,000  
Annualized effective interest rate (in percent)               19.40%   19.40%     13.80%              
Principal amount               $ 110,884,000   $ 110,884,000     $ 104,569,000       $ 60,000,000.0 $ 40,000,000.0    
Covenant, minimum liquidity                                     $ 15,000,000.0  
Debt instrument, accumulated paid-in-kind interest               3,400,000   6,800,000                    
Interest expense               $ 500,000   $ 1,000,000.0                    
Loan and Security Agreement | Line of Credit | Secured Debt | Minimum                                        
Debt Instrument [Line Items]                                        
Interest, stated rate (in percent)                                     12.00%