/* Dubsado comparison page (/alternatives/dubsado): verdict box, filterable table, cost calculator, steps, sticky CTA. */
.vsx-verdict, .vsx-table, .vsx-calc, .vsx-more, .vsx-sticky, .vsx-steps { --vs-us: #6c2bf2; --vs-us-2: #c026d3; --vs-them: #0f766e; --vs-ink: #14113a; --vs-mute: #5b5777; --vs-line: #e7e2f5; box-sizing: border-box; }
.vsx-verdict *, .vsx-calc *, .vsx-sticky *, .vsx-table * { box-sizing: border-box; }

/* ---------- quick verdict ---------- */
.vsx-verdict { margin: 0 0 2.4em; }
.vsx-verdict.is-top { max-width: 1180px; margin: 40px auto 8px; padding: 0 16px; }
.vsx-verdict__in { position: relative; overflow: hidden; isolation: isolate; padding: 30px; border-radius: 28px; background: #fff; border: 1px solid var(--vs-line); box-shadow: 0 40px 80px -50px rgba(40, 20, 110, .45); }
.vsx-verdict__in::before { content: ""; position: absolute; z-index: -1; inset: -40% 55% auto -10%; height: 320px; border-radius: 50%; background: #efe6ff; filter: blur(50px); }
.vsx-verdict__in::after { content: ""; position: absolute; z-index: -1; inset: auto -10% -50% 60%; height: 300px; border-radius: 50%; background: #dff7f1; filter: blur(50px); }
.vsx-verdict__tag { display: inline-block; margin: 0 0 10px !important; padding: 6px 12px; border-radius: 999px; background: #f3edff; color: var(--vs-us); font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.vsx-verdict__h { margin: 0 0 20px !important; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--vs-ink); }
.vsx-verdict__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vsx-verdict__col { padding: 20px 22px; border-radius: 20px; background: rgba(255, 255, 255, .85); border: 1px solid var(--vs-line); }
.vsx-verdict__col--them { border-top: 4px solid var(--vs-them); }
.vsx-verdict__col--us { border-top: 4px solid var(--vs-us); background: linear-gradient(180deg, #faf7ff, #fff); }
.vsx-verdict__who { margin: 0 0 10px !important; font-weight: 800; font-size: 16px; color: var(--vs-ink); }
.vsx-verdict__col--them .vsx-verdict__who { color: var(--vs-them); }
.vsx-verdict__col--us .vsx-verdict__who { color: var(--vs-us); }
.vsx-verdict ul { margin: 0 !important; padding: 0 !important; list-style: none; display: grid; gap: 8px; }
.vsx-verdict li { position: relative; margin: 0 !important; padding-left: 26px; font-size: 15.5px; line-height: 1.5; color: #34304f; }
.vsx-verdict li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--vs-them); -webkit-mask: radial-gradient(circle, #000 60%, transparent 62%); mask: radial-gradient(circle, #000 60%, transparent 62%); opacity: .9; }
.vsx-verdict__col--us li::before { background: linear-gradient(135deg, var(--vs-us), var(--vs-us-2)); }
.vsx-snap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; }
.vsx-snap__item { display: grid; gap: 2px; padding: 16px; border-radius: 18px; background: #f2fbf8; border: 1px solid #d3efe7; }
.vsx-snap__item--us { background: #f6f1ff; border-color: #e3d6ff; }
.vsx-snap__item span { font-size: 13px; font-weight: 700; color: var(--vs-mute); }
.vsx-snap__item b { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--vs-them); }
.vsx-snap__item--us b { color: var(--vs-us); }
.vsx-snap__item small { font-size: 12.5px; color: var(--vs-mute); }
.vsx-verdict__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.vsx-verdict__cta .btn { text-decoration: none; }
.vsx-link { font-weight: 700; color: var(--vs-us); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- scrollable tables ---------- */
.vsx-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4em 0; }
.vsx-scroll > table { margin: 0 !important; min-width: 560px; }

/* ---------- filterable feature table ---------- */
.vsx-table { margin: 1.8em 0 2em; padding: 18px; border-radius: 24px; background: #fff; border: 1px solid var(--vs-line); box-shadow: 0 30px 60px -48px rgba(40, 20, 110, .5); }
.vsx-table__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 6px; }
.vsx-table__legend { margin: 0 !important; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--vs-mute); }
.vsx-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--vs-us); }
.vsx-dot--them { background: var(--vs-them); margin-left: 10px; }
.vsx-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; font-weight: 700; color: var(--vs-ink); user-select: none; }
.vsx-switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: #dcd6ec; position: relative; cursor: pointer; transition: background .2s; }
.vsx-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .2s; }
.vsx-switch input:checked { background: var(--vs-us); }
.vsx-switch input:checked::after { transform: translateX(18px); }
.vsx-switch input:focus-visible { outline: 3px solid #c9b2ff; outline-offset: 2px; }
.vsx-table .vsx-scroll { margin: 8px 0 0; }
.vsx-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.vsx-table th, .vsx-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #f0edf8; line-height: 1.45; }
.vsx-table thead th { background: #faf8ff; font-size: 14px; font-weight: 800; color: var(--vs-ink); border-bottom: 2px solid var(--vs-line); }
.vsx-table thead th:nth-child(2) { color: var(--vs-us); }
.vsx-table thead th:nth-child(3) { color: var(--vs-them); }
.vsx-table td:first-child { font-weight: 700; color: var(--vs-ink); width: 32%; }
.vsx-table td:nth-child(2) { background: #fbf8ff; }
.vsx-table tr.vsx-grp td { padding: 16px 14px 8px; background: transparent; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--vs-mute); border-bottom: 1px solid var(--vs-line); }
.vsx-table tr[data-diff="1"] td:first-child::after { content: "differs"; display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: #fff1e8; color: #c2410c; font-size: 11px; font-weight: 800; vertical-align: 2px; }
.vsx-table.is-diff tr[data-diff="0"], .vsx-table tr.is-hidden { display: none; }
.vsx-table__src { margin: 12px 4px 2px !important; font-size: 13px !important; color: var(--vs-mute); }

/* ---------- calculator ---------- */
.vsx-calc { margin: 2em 0; padding: 26px; border-radius: 26px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #3b1a8f 0%, #1c1250 55%, #0f2f3a 100%); box-shadow: 0 40px 70px -40px rgba(20, 10, 60, .9); }
.vsx-calc[hidden] { display: none; }
.vsx-calc__h { margin: 0 !important; font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.vsx-calc__sub { margin: 6px 0 18px !important; font-size: 15px; color: rgba(255, 255, 255, .75); }
.vsx-calc__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
.vsx-calc__in { display: grid; gap: 16px; align-content: start; }
.vsx-calc__range span { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.vsx-calc__range output { min-width: 44px; padding: 3px 10px; border-radius: 10px; background: rgba(255, 255, 255, .14); text-align: center; font-weight: 800; }
.vsx-calc input[type="range"] { width: 100%; accent-color: #b794ff; }
.vsx-calc__needs { margin: 0; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; display: grid; gap: 10px; }
.vsx-calc__needs legend { padding: 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.vsx-calc__needs label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.vsx-calc__needs input { width: 18px; height: 18px; accent-color: #b794ff; }
.vsx-calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.vsx-calc__res { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 2px; }
.vsx-calc__res span { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .72); }
.vsx-calc__res b { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.vsx-calc__res small { font-size: 13px; color: rgba(255, 255, 255, .7); }
.vsx-calc__res--them b { color: #7ee6cf; }
.vsx-calc__res--us { background: linear-gradient(140deg, rgba(108, 43, 242, .55), rgba(192, 38, 211, .4)); border-color: rgba(214, 190, 255, .45); }
.vsx-calc__diff { grid-column: 1 / -1; margin: 4px 0 0 !important; font-size: 16px; font-weight: 800; color: #fff; }
.vsx-calc__out .btn { grid-column: 1 / -1; justify-self: start; text-decoration: none; background: #fff; color: var(--vs-ink); }
.vsx-calc__note { margin: 16px 0 0 !important; font-size: 12.5px !important; line-height: 1.5; color: rgba(255, 255, 255, .62); }

/* ---------- numbered steps ---------- */
.bprose ol.vsx-steps { list-style: none; counter-reset: vsx; padding: 0 !important; margin: 1.4em 0 !important; display: grid; gap: 14px; }
.bprose ol.vsx-steps > li { counter-increment: vsx; position: relative; margin: 0 !important; padding: 18px 20px 18px 74px; border-radius: 20px; background: #fff; border: 1px solid var(--vs-line); box-shadow: 0 20px 40px -36px rgba(40, 20, 110, .5); }
.bprose ol.vsx-steps > li::before { content: counter(vsx); position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(140deg, #6c2bf2, #c026d3); box-shadow: 0 10px 20px -10px rgba(108, 43, 242, .8); }
.bprose ol.vsx-steps > li:nth-child(2)::before { background: linear-gradient(140deg, #0a84ff, #6c2bf2); }
.bprose ol.vsx-steps > li:nth-child(3)::before { background: linear-gradient(140deg, #10b981, #0a84ff); }
.bprose ol.vsx-steps > li:nth-child(4)::before { background: linear-gradient(140deg, #ff5a1f, #e9388e); }

/* ---------- more comparisons ---------- */
.vsx-more { margin: 1.8em 0; padding: 22px; border-radius: 24px; background: linear-gradient(160deg, #f7f3ff, #f1fbf8); border: 1px solid var(--vs-line); }
.vsx-more__h { margin: 0 0 12px !important; font-size: 19px; font-weight: 800; color: var(--vs-ink); }
.bprose .vsx-more ul { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bprose .vsx-more li { margin: 0 !important; padding: 0 !important; }
.bprose .vsx-more li::before { display: none; }
.bprose .vsx-more a { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--vs-line); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.bprose .vsx-more a:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(40, 20, 110, .6); }
.vsx-more a b { color: var(--vs-us); font-size: 15.5px; }
.vsx-more a span { color: var(--vs-mute); font-size: 13.5px; line-height: 1.4; }

/* ---------- sticky CTA ---------- */
.vsx-sticky { position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translate(-50%, 140%); width: min(680px, calc(100vw - 32px)); display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 20px; border-radius: 18px; color: #fff; background: rgba(20, 17, 58, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 24px 50px -20px rgba(10, 5, 40, .7); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.vsx-sticky[hidden] { display: none; }
.vsx-sticky.is-on { transform: translate(-50%, 0); }
.vsx-sticky p { margin: 0 !important; flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.35; color: rgba(255, 255, 255, .8); }
.vsx-sticky p b { color: #fff; }
.vsx-sticky .btn { white-space: nowrap; text-decoration: none; }
.vsx-sticky__x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.vsx-sticky__x:hover { background: rgba(255, 255, 255, .2); }

@media (prefers-reduced-motion: reduce) { .vsx-sticky, .vsx-switch input, .vsx-switch input::after, .bprose .vsx-more a { transition: none; } }

@media (max-width: 860px) {
  .vsx-calc__grid { grid-template-columns: minmax(0, 1fr); }
  .vsx-snap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vsx-verdict.is-top { margin-top: 24px; }
  .vsx-verdict__in { padding: 22px 18px; border-radius: 22px; }
  .vsx-verdict__grid { grid-template-columns: minmax(0, 1fr); }
  .vsx-snap__item b { font-size: 26px; }
  .vsx-verdict__cta .btn { width: 100%; justify-content: center; text-align: center; white-space: normal; height: auto; min-height: 52px; padding: 12px 18px; }
  .vsx-table { padding: 12px; border-radius: 18px; }
  .vsx-calc { padding: 20px 16px; }
  .vsx-calc__res b { font-size: 28px; }
  .bprose .vsx-more ul { grid-template-columns: minmax(0, 1fr); }
  .bprose ol.vsx-steps > li { padding: 66px 16px 16px; }
  .vsx-sticky span { display: none; }
  /* leave room for the site's round assistant button in the bottom-right corner */
  .vsx-sticky { left: 16px; width: calc(100vw - 104px); transform: translateY(140%); padding: 10px 10px 10px 16px; gap: 10px; }
  .vsx-sticky.is-on { transform: translateY(0); }
  .vsx-sticky__x { width: 30px; height: 30px; }
  /* feature table as stacked cards: feature name on top, the two answers side by side */
  .vsx-table .vsx-scroll { overflow: visible; }
  .vsx-table .vsx-scroll > table { min-width: 0; }
  .vsx-table table, .vsx-table tbody { display: block; }
  .vsx-table thead { display: none; }
  .vsx-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid #f0edf8; }
  .vsx-table tbody td { display: block; border: 0; padding: 8px 10px; font-size: 14.5px; }
  .vsx-table tbody td:first-child { grid-column: 1 / -1; width: auto; padding: 14px 10px 2px; }
  .vsx-table tbody td:nth-child(2) { border-radius: 12px; margin: 0 4px 12px 0; }
  .vsx-table tbody td:nth-child(3) { background: #f2fbf8; border-radius: 12px; margin: 0 0 12px 4px; }
  .vsx-table tbody td:nth-child(2)::before, .vsx-table tbody td:nth-child(3)::before { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  .vsx-table tbody td:nth-child(2)::before { content: "InvoiceStudio"; color: var(--vs-us); }
  .vsx-table tbody td:nth-child(3)::before { content: "Dubsado"; color: var(--vs-them); }
  .vsx-table tbody tr.vsx-grp { display: block; }
  .vsx-table tbody tr.vsx-grp td { padding: 18px 10px 6px; }
  .vsx-table.is-diff tr[data-diff="0"], .vsx-table tr.is-hidden { display: none; }
}
