v3.25.0.1
Summary of Significant Accounting Policies - Summary of Impact to the Consolidated Statements of Stockholders' Equity Isolated to Net Income and Accumulated Deficit as Revised in the Other Statements (Details) - USD ($)
$ / shares in Units, $ in Thousands
12 Months Ended
Dec. 31, 2024
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Error Corrections and Prior Period Adjustments Restatement [Line Items]        
Total cost of revenue $ 393,265 $ 338,362 $ 308,020  
Gross profit 2,234,278 1,831,868 1,422,949  
Loss from operations (67,602) (200,929) (102,862)  
Loss before income tax expense 28,677 (150,575) (98,453)  
Income tax expense (24,049) (13,935) (8,894)  
Net loss 4,628 (164,510) (107,347)  
Comprehensive loss $ (2,853) $ (149,793) $ (118,898)  
Net loss per common share, basic $ 0.09 $ (3.30) $ (2.23)  
Net loss per common share, diluted $ 0.09 $ (3.30) $ (2.23)  
Total assets $ 3,795,833 $ 3,071,392 $ 2,544,738  
Accrued expenses and other current liabilities 125,135 94,074 95,010  
Total current liabilities 1,573,399 942,008 754,541  
Other long-term liabilities 55,640 36,459 19,204  
Total liabilities 1,887,547 1,737,044 1,550,060  
Accumulated deficit (799,809) (804,437) (639,927)  
Total stockholders' equity 1,908,286 1,334,348 994,678 $ 870,851
Subscription [Member]        
Error Corrections and Prior Period Adjustments Restatement [Line Items]        
Total cost of revenue $ 336,878 283,675 251,274  
As Previously Reported [Member]        
Error Corrections and Prior Period Adjustments Restatement [Line Items]        
Total cost of revenue   345,489 314,259  
Gross profit   1,824,741 1,416,710  
Loss from operations   (208,056) (109,101)  
Loss before income tax expense   (157,702) (104,692)  
Income tax expense   (18,593) (8,057)  
Net loss   (176,295) (112,749)  
Comprehensive loss   $ (161,578) $ (124,300)  
Net loss per common share, basic   $ (3.53) $ (2.35)  
Net loss per common share, diluted   $ (3.53) $ (2.35)  
Total assets   $ 3,071,392 $ 2,544,738  
Accrued expenses and other current liabilities   108,313 102,122  
Total current liabilities   956,247 761,653  
Other long-term liabilities     14,546  
Total liabilities   1,751,283 1,552,514  
Accumulated deficit   (818,676) (642,381)  
Total stockholders' equity   1,320,109 992,224  
As Previously Reported [Member] | Subscription [Member]        
Error Corrections and Prior Period Adjustments Restatement [Line Items]        
Total cost of revenue   290,802 257,513  
Adjustments [Member]        
Error Corrections and Prior Period Adjustments Restatement [Line Items]        
Total cost of revenue   (7,127) (6,239)  
Gross profit   7,127 6,239  
Loss from operations   7,127 6,239  
Loss before income tax expense   7,127 6,239  
Income tax expense   4,658 (837)  
Net loss   11,785 5,402  
Comprehensive loss   $ 11,785 $ 5,402  
Net loss per common share, basic   $ 0.23 $ 0.12  
Net loss per common share, diluted   $ 0.23 $ 0.12  
Accrued expenses and other current liabilities   $ (14,239) $ (7,112)  
Total current liabilities   (14,239) (7,112)  
Other long-term liabilities     4,658  
Total liabilities   (14,239) (2,454)  
Accumulated deficit   14,239 2,454  
Total stockholders' equity   14,239 2,454  
Adjustments [Member] | Subscription [Member]        
Error Corrections and Prior Period Adjustments Restatement [Line Items]        
Total cost of revenue   $ (7,127) $ (6,239)