| Dec 31, 2019 | Dec 31, 2020 | Dec 31, 2021 | Dec 31, 2022 | Dec 31, 2023 | Dec 31, 2024 |
|---|
| Net income (loss) | -17 | -25 | -21 | -50 | 49 | 184 |
|---|
| Depreciation and amortization | 12 | 15 | 23 | 35 | 44 | 55 |
|---|
| (Accretion) amortization of (discounts) premiums on marketable securities | -0 | -10 | -16 | -5 | 42 | 52 |
|---|
| Amortization of issuance costs | - | 19 | 3 | 3 | 3 | 4 |
|---|
| Net loss on conversion inducement and capped call settlement | - | - | - | - | - | 1 |
|---|
| Amortization of deferred contract costs | - | 10 | 18 | 28 | 39 | 52 |
|---|
| Share-Based Payment Arrangement, Noncash Expense | 19 | 74 | 164 | 363 | 482 | 570 |
|---|
| Noncash Lease Expense | 12 | 14 | 17 | 21 | 26 | 27 |
|---|
| Allowance for credit losses on accounts receivable | 1 | 3 | 2 | 5 | 12 | 15 |
|---|
| Loss on disposal of property and equipment | -1 | -0 | -0 | -2 | -1 | -2 |
|---|
| Accounts receivable, net | 48 | 64 | 107 | 136 | 122 | 104 |
|---|
| Deferred contract costs | 20 | 25 | 43 | 51 | 69 | 76 |
|---|
| Prepaid expenses and other current assets | 10 | 4 | 1 | 7 | 14 | 27 |
|---|
| Other assets | 8 | -1 | 3 | 5 | -1 | 1 |
|---|
| Accounts payable | 2 | 7 | 3 | -1 | 58 | 26 |
|---|
| Accrued expenses and other liabilities | 6 | 4 | 37 | 38 | -40 | -2 |
|---|
| Deferred revenue | 68 | 70 | 176 | 169 | 231 | 198 |
|---|
| Net cash provided by operating activities | 24 | 109 | 287 | 418 | 660 | 871 |
|---|
| Purchases of marketable securities | 177 | 1,795 | 1,126 | 1,414 | 2,558 | 2,653 |
|---|
| Maturities of marketable securities | - | 507 | 1,047 | 1,138 | 1,865 | 2,019 |
|---|
| Proceeds from sale of marketable securities | - | 164 | 68 | 2 | 37 | 0 |
|---|
| Purchases of property and equipment | 13 | 5 | 10 | 35 | 28 | 35 |
|---|
| Capitalized software development costs | 10 | 20 | 26 | 30 | 35 | 61 |
|---|
| Cash paid for acquisition of businesses; net of cash acquired | 2 | 2 | 227 | 46 | 12 | 7 |
|---|
| Net cash used in investing activities | -202 | -1,153 | -274 | -385 | -731 | -737 |
|---|
| Proceeds from Stock Options Exercised | 8 | 16 | 15 | 10 | 21 | 7 |
|---|
| Proceeds from Stock Plans | - | 15 | 20 | 26 | 37 | 44 |
|---|
| Proceeds from Convertible Debt | - | - | - | - | - | 979 |
|---|
| Proceeds From Settlement Of Capped Calls Related To Convertible Senior Notes | - | - | - | - | - | 55 |
|---|
| Purchase of capped calls related to 2029 Convertible Senior Notes | - | - | - | - | - | 101 |
|---|
| Repayments of 2025 Convertible Senior Notes | - | - | - | 0 | - | 197 |
|---|
| Net cash provided by financing activities | 714 | 670 | 35 | 36 | 58 | 787 |
|---|
| Effect of exchange rate changes on cash, cash equivalents and restricted cash | -0 | 1 | -2 | -2 | 1 | -4 |
|---|
| NET (DECREASE) INCREASE IN CASH, CASH EQUIVALENTS AND RESTRICTED CASH | 536 | -372 | 46 | 68 | -12 | 917 |
|---|
| Income Taxes Paid | 0 | 0 | 1 | 2 | 17 | 21 |
|---|
| Accrued property and equipment purchases | 0 | 0 | 2 | 1 | 7 | 5 |
|---|
| Share-Based Payment Arrangement, Amount Capitalized | 0 | 3 | 10 | 15 | 14 | 13 |
|---|
| Vesting of early exercised options | 2 | 1 | 1 | 0 | - | - |
|---|
| Stock Issued | - | 5 | 58 | 14 | 2 | 4 |
|---|
| Acquisition holdback | - | 2 | 6 | 8 | 1 | 3 |
|---|