/* HubSpot alternative page (/alternatives/hubspot): quick verdict, comparison toggle, cost calculator, sticky CTA.
   Loaded from content/tools/hubspot-alternative.html; every block is readable without this file or the JS. */

/* ---------- Quick verdict (moved under the hero by vs-hubspot-alternative.js) ---------- */
.vsx-tldr-sec { padding: 8px 16px 0; margin: -28px auto 8px; max-width: 1140px; position: relative; z-index: 2; }
.vsx-tldr { position: relative; margin: 0 0 36px; padding: 28px 30px 26px; border-radius: 26px; background: #fff;
  border: 1px solid #e7e0fb; box-shadow: 0 30px 60px -38px rgba(76, 29, 149, .45), 0 2px 0 rgba(255, 255, 255, .6) inset; overflow: hidden; }
.vsx-tldr::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #6c2bf2, #e9388e 45%, #ff5a1f 75%, #f59e0b); }
.vsx-tldr p, .vsx-tldr ul { margin: 0; }
.vsx-tldr__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #5b21b6; background: #f3edff; padding: 6px 12px; border-radius: 99px; }
.vsx-tldr__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); }
.vsx-tldr__h { margin-top: 14px !important; font-size: 21px; line-height: 1.4; color: #3d3863; }
.vsx-tldr__h strong { display: block; font-size: 27px; line-height: 1.2; color: #14113a; letter-spacing: -.01em; margin-bottom: 2px; }
.vsx-tldr__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.vsx-tldr__col { border-radius: 18px; padding: 18px 20px; background: #f7f5ff; border: 1px solid #ebe6fb; }
.vsx-tldr__col--us { background: linear-gradient(160deg, #f4ecff, #fff1f8); border-color: #e4d4ff; }
.vsx-tldr__col--them { background: #fff7ef; border-color: #fde3c8; }
.vsx-tldr__who { font-weight: 800; font-size: 15px; color: #14113a; margin-bottom: 10px !important; display: flex; align-items: center; gap: 8px; }
.vsx-tldr__who::before { content: "✓"; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; color: #fff; background: linear-gradient(135deg, #6c2bf2, #e9388e); flex: none; }
.vsx-tldr__col--them .vsx-tldr__who::before { background: #ff7a2f; }
.vsx-tldr__col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.vsx-tldr__col li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.5; color: #2e2a52; }
.vsx-tldr__col li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; }
.vsx-tldr__col--them li::before { background: #fdba74; }
.vsx-tldr__price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.vsx-tldr__price p { border-radius: 18px; padding: 16px 20px; background: #fff; border: 1px dashed #d9d3ee; display: grid; gap: 2px; }
.vsx-tldr__price p.is-us { border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #6c2bf2, #e9388e) border-box; }
.vsx-tldr__price span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a83ab; }
.vsx-tldr__price strong { font-size: 20px; color: #14113a; line-height: 1.3; }
.vsx-tldr__price .is-us strong { color: #6c2bf2; }
.vsx-tldr__price em { font-style: normal; font-size: 13.5px; color: #6b6590; }
.vsx-tldr__cta { margin-top: 20px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.vsx-tldr__cta a:not(.btn) { font-weight: 700; color: #6c2bf2; text-decoration: underline; text-underline-offset: 3px; }
.vsx-tldr__cta .btn { text-decoration: none; }

/* ---------- Feature table: group rows, differences toggle ---------- */
.vsx-cmp { margin: 24px 0; }
.vsx-cmp__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.vsx-cmp__bar small { color: #6b6590; font-size: 14px; }
.vsx-switch { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #e4dff2; background: #fff; color: #14113a; font: inherit; font-weight: 700; font-size: 14.5px;
  padding: 8px 14px 8px 8px; border-radius: 99px; cursor: pointer; box-shadow: 0 6px 16px -12px rgba(20, 17, 58, .5); }
.vsx-switch i { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #d9d3ee; transition: background .2s; flex: none; }
.vsx-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.vsx-switch[aria-pressed="true"] i { background: linear-gradient(90deg, #6c2bf2, #e9388e); }
.vsx-switch[aria-pressed="true"] i::after { transform: translateX(16px); }
.vsx-switch:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 2px; }
.vsx-cmp table td:nth-child(2) { background: #faf7ff; font-weight: 600; color: #2a1f5c; }
.vsx-cmp tr.vsx-grp td { background: linear-gradient(90deg, #14113a, #2b2463) !important; color: #fff !important; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.vsx-cmp tr.vsx-grp[data-vsx-btn] td { cursor: pointer; }
.vsx-cmp tr.vsx-grp[data-vsx-btn] td::after { content: "−"; float: right; font-size: 16px; line-height: 1; }
.vsx-cmp tr.vsx-grp.is-shut td::after { content: "+"; }
.vsx-cmp.is-diff tr[data-same], .vsx-cmp tr.is-hidden { display: none; }

/* ---------- Cost calculator ---------- */
.vsx-calc:empty { display: none; }
.vsx-calc { margin: 24px 0; padding: 24px; border-radius: 24px; background: linear-gradient(150deg, #14113a, #2b1d6b 60%, #4c1d95); color: #fff; box-shadow: 0 30px 60px -36px rgba(20, 17, 58, .7); }
.vsx-calc__h { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: #fff; }
.vsx-calc__sub { margin: 0 0 18px; font-size: 14.5px; color: #c9c2ee; }
.vsx-calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.vsx-calc label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: #ddd6fe; min-width: 0; }
.vsx-calc label.is-wide { grid-column: 1 / -1; }
.vsx-calc select, .vsx-calc input[type="number"] { width: 100%; min-width: 0; font: inherit; font-size: 15px; color: #14113a; background: #fff; border: 0; border-radius: 12px; padding: 10px 12px; }
.vsx-calc input[type="range"] { width: 100%; accent-color: #e9388e; }
.vsx-calc__seats { display: flex; align-items: baseline; justify-content: space-between; }
.vsx-calc__seats b { font-size: 22px; color: #fff; }
.vsx-calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.vsx-calc__card { border-radius: 18px; padding: 16px 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); min-width: 0; }
.vsx-calc__card.is-us { background: #fff; color: #14113a; border-color: #fff; }
.vsx-calc__card small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c9c2ee; }
.vsx-calc__card.is-us small { color: #6c2bf2; }
.vsx-calc__card b { display: block; font-size: 30px; line-height: 1.15; margin: 6px 0 4px; letter-spacing: -.02em; }
.vsx-calc__card span { display: block; font-size: 13px; line-height: 1.45; color: #ddd6fe; }
.vsx-calc__card.is-us span { color: #5b5680; }
.vsx-calc__bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); margin-top: 10px; overflow: hidden; }
.vsx-calc__bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #ff9a5a, #ff5a1f); transition: width .35s ease; }
.vsx-calc__card.is-us .vsx-calc__bar { background: #efe9ff; }
.vsx-calc__card.is-us .vsx-calc__bar i { background: linear-gradient(90deg, #6c2bf2, #e9388e); }
.vsx-calc__save { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; color: #fff; }
.vsx-calc__save strong { color: #6ee7b7; }
.vsx-calc__note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: #b7afe0; }

/* ---------- Steps and links ---------- */
.bprose ol.vsx-steps { list-style: none; padding: 0; counter-reset: vsx; display: grid; gap: 14px; }
.bprose ol.vsx-steps > li { counter-increment: vsx; position: relative; padding: 18px 20px 18px 70px; border-radius: 18px; background: #fff; border: 1px solid #ebe6fb; box-shadow: 0 14px 30px -26px rgba(20, 17, 58, .5); }
.bprose ol.vsx-steps > li::before { content: counter(vsx); position: absolute; left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 900; color: #fff; background: linear-gradient(135deg, #6c2bf2, #e9388e); }
.bprose ul.vsx-links { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bprose ul.vsx-links li { margin: 0; padding: 14px 16px; border-radius: 16px; background: #f7f5ff; border: 1px solid #ebe6fb; font-size: 15px; line-height: 1.5; }
.bprose ul.vsx-links li::before { display: none; }
.bprose ul.vsx-links a { font-weight: 800; }

/* ---------- Sticky CTA ---------- */
.vsx-sticky { position: fixed; left: 50%; bottom: 16px; z-index: 60; width: min(680px, calc(100vw - 32px)); transform: translate(-50%, 140%); opacity: 0;
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 20px; background: rgba(20, 17, 58, .94); color: #fff;
  box-shadow: 0 24px 50px -20px rgba(20, 17, 58, .7); transition: transform .35s cubic-bezier(.2, .9, .25, 1.1), opacity .25s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vsx-sticky.is-on { transform: translate(-50%, 0); opacity: 1; }
.vsx-sticky p { margin: 0; flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.35; }
.vsx-sticky p b { display: block; font-size: 15.5px; }
.vsx-sticky p span { color: #c9c2ee; }
.vsx-sticky .btn { flex: none; white-space: nowrap; }
.vsx-sticky__x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.vsx-sticky__x:focus-visible, .vsx-sticky .btn:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 2px; }

@media (max-width: 760px) {
  .vsx-tldr-sec { margin-top: -18px; }
  .vsx-tldr { padding: 22px 18px 20px; border-radius: 22px; }
  .vsx-tldr__h { font-size: 17px; }
  .vsx-tldr__h strong { font-size: 22px; }
  .vsx-tldr__cols, .vsx-tldr__price, .vsx-calc__grid, .vsx-calc__out, .bprose ul.vsx-links { grid-template-columns: 1fr; }
  .vsx-cmp table, .vsx-cmp tbody { display: block; width: 100%; overflow: visible; border: 0; background: none; }
  .vsx-cmp thead { display: none; }
  .vsx-cmp tbody tr { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 10px; border: 1px solid #e4dff2; border-radius: 16px; overflow: hidden; background: #fff; }
  .vsx-cmp tbody tr.vsx-grp { display: block; border: 0; margin-top: 18px; }
  .vsx-cmp.is-diff tr[data-same], .vsx-cmp tbody tr.is-hidden { display: none; }
  .vsx-cmp tbody td { display: block; border: 0 !important; padding: 10px 14px; font-size: 14.5px; }
  .vsx-cmp tbody tr:not(.vsx-grp) td:first-child { grid-column: 1 / -1; background: #f7f5ff; font-weight: 800; color: #14113a; }
  .vsx-cmp tbody tr:not(.vsx-grp) td:nth-child(2)::before, .vsx-cmp tbody tr:not(.vsx-grp) td:nth-child(3)::before { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
  .vsx-cmp tbody tr:not(.vsx-grp) td:nth-child(2)::before { content: "InvoiceStudio"; color: #6c2bf2; }
  .vsx-cmp tbody tr:not(.vsx-grp) td:nth-child(3)::before { content: "HubSpot"; color: #c2410c; }
  .vsx-cmp tbody tr.vsx-grp td { border-radius: 12px; }
  .vsx-calc { padding: 20px 16px; }
  .vsx-calc__card b { font-size: 26px; }
  .bprose ol.vsx-steps > li { padding: 62px 16px 16px; }
  /* leave room for the site's chat bubble at the bottom right */
  .vsx-sticky { left: 12px; bottom: 14px; width: calc(100vw - 100px); transform: translateY(140%); padding: 8px 8px 8px 12px; gap: 8px; border-radius: 16px; }
  .vsx-sticky.is-on { transform: none; }
  .vsx-sticky__x { width: 28px; height: 28px; }
  .vsx-sticky p span { display: none; }
  .vsx-sticky p b { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .vsx-sticky, .vsx-calc__bar i, .vsx-switch i, .vsx-switch i::after { transition: none; } }
@media print { .vsx-sticky, .vsx-cmp__bar, .vsx-calc { display: none !important; } }
