| Dec 31, 2017 | Dec 31, 2018 | Dec 31, 2019 | Dec 31, 2020 | Dec 31, 2021 | Dec 31, 2022 | Dec 31, 2023 |
|---|
| Net loss | -17 | 28 | 27 | -24 | -180 | -318 | -179 |
|---|
| Depreciation and amortization | 4 | 4 | 8 | 12 | 16 | 37 | 36 |
|---|
| Non-cash operating lease cost | - | - | 5 | 8 | 17 | 20 | 12 |
|---|
| Stock-based compensation | 9 | 17 | 33 | 75 | 124 | 227 | 245 |
|---|
| Amortization (accretion) of discounts and premiums on investments, net | - | - | 3 | -1 | -4 | -0 | 5 |
|---|
| Amortization of debt discount and issuance costs | - | 7 | 19 | 32 | 33 | 3 | 4 |
|---|
| Deferred income taxes | 1 | 3 | 23 | 5 | -1 | -2 | -2 |
|---|
| Asset Impairment Charges | - | - | - | - | - | 43 | 2 |
|---|
| Other non-cash operating activities, net | - | - | 1 | -1 | -1 | -4 | 8 |
|---|
| Accounts receivable | 15 | 46 | 35 | 7 | 57 | 65 | 40 |
|---|
| Deferred commissions | - | - | 20 | 7 | 12 | 28 | 32 |
|---|
| Prepaid expenses, other current assets, and other assets | - | - | 35 | 17 | -12 | 101 | -11 |
|---|
| Accounts payable | -1 | 5 | 2 | -3 | 3 | 5 | -10 |
|---|
| Accrued payroll and payroll related liabilities | 4 | 13 | 29 | -8 | 14 | 10 | 1 |
|---|
| Increase (Decrease) in Accrued Liabilities and Other Operating Liabilities | 2 | 1 | 8 | -9 | -11 | -15 | 10 |
|---|
| Deferred revenue | - | 29 | 0 | 26 | 100 | 64 | -20 |
|---|
| Net cash provided by (used in) operating activities | 19 | 26 | 34 | 75 | 63 | -105 | 29 |
|---|
| Capitalized software development costs | - | - | - | - | - | 12 | 21 |
|---|
| Purchases of property and equipment | 4 | 7 | 11 | 26 | 33 | 24 | 3 |
|---|
| Cash paid in acquisitions, net of cash acquired | 9 | 4 | 41 | - | 27 | 387 | - |
|---|
| Purchases of investments | - | 446 | 603 | 1,142 | 906 | 203 | 197 |
|---|
| Sales and maturities of investments | 38 | 185 | 378 | 856 | 899 | 723 | 307 |
|---|
| Net cash provided by (used in) investing activities | -66 | -271 | -277 | -312 | -67 | 97 | 86 |
|---|
| Proceeds from issuance of senior notes | - | - | 783 | - | - | - | 443 |
|---|
| Principal payments on 2023 convertible senior notes | - | - | 145 | 0 | - | - | 85 |
|---|
| Proceeds from Stock Options Exercised | 4 | 14 | 20 | 23 | 10 | 10 | 13 |
|---|
| Minimum tax withholding paid on behalf of employees for restricted stock units | 1 | 3 | 11 | 21 | 24 | 45 | 60 |
|---|
| Other financing activity | - | - | -1 | -3 | - | - | -5 |
|---|
| Net cash provided by (used in) financing activities | 136 | 216 | 564 | -1 | -14 | -35 | 306 |
|---|
| Effect of exchange rate changes on cash and cash equivalents | - | -0 | -0 | 1 | -1 | -2 | 1 |
|---|
| Net increase (decrease) in cash, cash equivalents, and restricted cash | - | -29 | 320 | -238 | -19 | -45 | 422 |
|---|
| Cash paid for interest | - | 1 | 1 | 6 | 6 | 6 | 27 |
|---|
| Income Taxes Paid | 0 | 2 | 2 | 2 | 2 | 2 | 6 |
|---|
| Operating Lease, Payments | - | - | - | 10 | 20 | 24 | 23 |
|---|
| Right-of-Use Asset Obtained in Exchange for Operating Lease Liability | - | - | 13 | 44 | 57 | 3 | 2 |
|---|
| Capital Expenditures Incurred but Not yet Paid | - | 1 | 2 | 4 | 8 | 1 | - |
|---|
| Increase of right-of-use assets due to remeasurement | - | - | - | -6 | -0 | 1 | 4 |
|---|
| Noncash or Part Noncash Acquisition, Value of Liabilities Assumed | 2 | 1 | 3 | - | 5 | - | - |
|---|
| Share-Based Payment Arrangement, Amount Capitalized | - | - | - | - | - | 4 | 6 |
|---|
| Payments for Commissions | - | - | - | - | - | 8 | 3 |
|---|