/* Compare section (homepage #compare): premium comparison card.
   Loaded after polish.css. Scoped to .cmp so the old .compare rules do not apply. */

.bsb-site #compare .table-wrap { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; overflow: visible !important; }

.cmp {
  --cmp-line: rgba(255, 255, 255, .065);
  --cmp-volt: var(--volt, #c2e755);
  --cmp-red: #ff8e8e;
  --cmp-amber: var(--amber, #ffc24b);
  display: grid;
  gap: 28px;
  font-family: var(--bsb-body, Inter, system-ui, sans-serif);
}

/* Intro: lede + legend */
.cmp-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; }
.cmp-lede { max-width: 560px; margin: 0; color: #a9aeb9; font-size: 17px; line-height: 1.6; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cmp-legend li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 8px; border: 1px solid var(--cmp-line); border-radius: 999px;
  background: rgba(255, 255, 255, .02); color: #c6cad3; font: 600 12px/1 var(--bsb-mono, ui-monospace, monospace); letter-spacing: .02em;
}

/* Card */
.cmp-card {
  position: relative;
  padding: 10px;
  border-radius: 28px;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(194, 231, 85, .07), transparent 70%),
    linear-gradient(180deg, #131519 0%, #0d0e11 100%);
  box-shadow: inset 0 0 0 1px var(--cmp-line), inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -40px rgba(0, 0, 0, .8);
  isolation: isolate;
}
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.bsb-site .cmp-table, .cmp-table :is(table, thead, tbody, tr, th, td) { border: 0 !important; }
.bsb-site .cmp-table :is(tr, tr:nth-child(odd), tr:nth-child(even), th, td:not(.is-us)) { background-color: transparent !important; }
.cmp-table :is(th, td) { padding: 18px 20px; border-bottom: 1px solid var(--cmp-line) !important; vertical-align: middle; }
.cmp-table thead th { border-bottom-color: rgba(255, 255, 255, .09) !important; padding-top: 34px; padding-bottom: 24px; }
.cmp-table tbody tr:last-child :is(th, td) { border-bottom: 0 !important; }
.cmp-table thead th:first-child { width: 34%; text-align: left; vertical-align: bottom; }
.cmp-table td { text-align: center; }

.cmp-kicker { color: #7d828d; font: 600 11px/1 var(--bsb-mono, ui-monospace, monospace); letter-spacing: .14em; text-transform: uppercase; }

/* Column heads */
.cmp-col { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.cmp-col-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(180deg, #1b1e23, #121418); box-shadow: inset 0 0 0 1px var(--cmp-line); color: #8d929d;
}
.cmp-col-ico::before { content: ''; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.cmp-col-ico.is-bell { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 1 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E"); }
.cmp-col-ico.is-bolt { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E"); }
.cmp-col-name { color: #dfe2e8; font: 650 15px/1.2 var(--bsb-display, 'Inter Tight', sans-serif); letter-spacing: -.01em; }
.cmp-col-sub { max-width: 190px; color: #7d828d; font-size: 12.5px; line-height: 1.45; font-weight: 450; }
.cmp-logo { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 10px 26px -10px rgba(194, 231, 85, .55); }

/* Our column: one raised panel built from its cells */
.cmp-table .is-us { position: relative; background: linear-gradient(180deg, rgba(194, 231, 85, .075), rgba(194, 231, 85, .035)); box-shadow: inset 1px 0 0 rgba(194, 231, 85, .32), inset -1px 0 0 rgba(194, 231, 85, .32); }
.cmp-table thead .is-us { border-radius: 20px 20px 0 0; box-shadow: inset 1px 0 0 rgba(194, 231, 85, .32), inset -1px 0 0 rgba(194, 231, 85, .32), inset 0 1px 0 rgba(194, 231, 85, .45); }
.cmp-table thead .is-us::after {
  content: ''; position: absolute; inset: -40px 10% auto; height: 120px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(194, 231, 85, .22), transparent); filter: blur(10px);
}
.cmp-table thead .is-us .cmp-col-name { color: #fff; font-size: 16px; }
.cmp-table thead .is-us .cmp-col-sub { color: #b9c08f; }
.cmp-table tbody tr:last-child .is-us { border-radius: 0 0 20px 20px; box-shadow: inset 1px 0 0 rgba(194, 231, 85, .32), inset -1px 0 0 rgba(194, 231, 85, .32), inset 0 -1px 0 rgba(194, 231, 85, .32); }
.cmp-table tbody .is-us { border-bottom-color: rgba(194, 231, 85, .09) !important; }
.cmp-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 5px 11px; border-radius: 999px; background: var(--cmp-volt); color: #0b0c0e;
  font: 800 10px/1 var(--bsb-mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 8px 22px -8px rgba(194, 231, 85, .8);
}

/* Feature labels */
.cmp-table tbody th { text-align: left; font-weight: 400; }
.cmp-feat { display: block; color: #eceef2; font: 600 15.5px/1.3 var(--bsb-display, 'Inter Tight', sans-serif); letter-spacing: -.01em; }
.cmp-hint { display: block; margin-top: 4px; color: #7d828d; font-size: 13px; line-height: 1.4; }

/* Row hover (desktop pointers only) */
@media (hover: hover) {
  .cmp-table tbody tr { transition: background-color .25s ease; }
  .bsb-site .cmp-table tbody tr:hover :is(th, td:not(.is-us)) { background-color: rgba(255, 255, 255, .022) !important; }
}

/* Marks */
.cmp-mark {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; vertical-align: middle;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.cmp-mark::before { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.cmp-mark.is-yes { color: #d6d9df; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.cmp-mark.is-no { color: var(--cmp-red); background: rgba(255, 107, 107, .08); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .18); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.cmp-mark.is-part { color: var(--cmp-amber); background: rgba(255, 194, 75, .08); box-shadow: inset 0 0 0 1px rgba(255, 194, 75, .18); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.cmp-table .is-us .cmp-mark.is-yes { width: 32px; height: 32px; color: #0b0c0e; background: var(--cmp-volt); box-shadow: 0 8px 20px -8px rgba(194, 231, 85, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.cmp-mark-sm { width: 18px; height: 18px; }
.cmp-mark-sm::before { width: 10px; height: 10px; }
.cmp-legend .cmp-mark.is-yes { color: #0b0c0e; background: var(--cmp-volt); box-shadow: none; }
.cmp-note { display: block; margin-top: 7px; color: #8b909b; font: 600 10.5px/1 var(--bsb-mono, ui-monospace, monospace); letter-spacing: .06em; text-transform: uppercase; }

/* Price row */
.cmp-price :is(th, td) { padding-top: 24px; padding-bottom: 26px; }
.cmp-cost { color: #9095a0; font-size: 14.5px; font-weight: 500; }
.cmp-cost-us { display: block; color: var(--cmp-volt); font: 750 26px/1 var(--bsb-display, 'Inter Tight', sans-serif); letter-spacing: -.03em; }
.cmp-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 40px; padding: 0 16px; white-space: nowrap;
  border-radius: 999px; background: var(--cmp-volt); color: #0b0c0e !important; text-decoration: none !important;
  font: 700 13px/1 var(--bsb-display, 'Inter Tight', sans-serif); box-shadow: 0 10px 24px -10px rgba(194, 231, 85, .8);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cmp-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(194, 231, 85, .95); }
.cmp-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Tablet: tighter */
@media (max-width: 1024px) {
  .cmp-table :is(th, td) { padding: 16px 12px; }
  .cmp-col-sub { display: none; }
  .cmp-table thead th:first-child { width: 30%; }
}

/* Mobile: every feature becomes a mini card with the three answers in a row */
@media (max-width: 760px) {
  .cmp { gap: 20px; }
  .cmp-lede { font-size: 15.5px; }
  .cmp-card { padding: 6px; border-radius: 22px; }
  .cmp-table, .cmp-table :is(thead, tbody, tr) { display: block; width: 100%; }
  .cmp-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cmp-table :is(th, td) { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px; border-bottom: 0 !important; }
  .cmp-table thead tr { background: transparent; }
  .cmp-table thead th { padding: 22px 4px 12px; }
  .cmp-table thead th:first-child { display: none; }
  .cmp-col-ico, .cmp-logo { width: 34px; height: 34px; border-radius: 10px; }
  .cmp-col-ico::before { width: 16px; height: 16px; }
  .cmp-col-name, .cmp-table thead .is-us .cmp-col-name { font-size: 12.5px; }
  .cmp-badge { top: -9px; padding: 4px 8px; font-size: 8.5px; }
  .cmp-table tbody tr { border-top: 1px solid var(--cmp-line) !important; }
  .cmp-table tbody th { grid-column: 1 / -1; align-items: flex-start; padding: 16px 14px 4px; }
  .cmp-feat { font-size: 15px; }
  .cmp-hint { font-size: 12.5px; }
  .cmp-table tbody td { order: 2; padding-bottom: 16px; }
  .cmp-note { font-size: 9.5px; }
  /* Column name under every answer: the header scrolls away on long phones. */
  .cmp-table tbody td::after { content: attr(data-col); margin-top: 8px; color: #6f747f; font: 600 9.5px/1.2 var(--bsb-mono, ui-monospace, monospace); letter-spacing: .06em; text-transform: uppercase; text-align: center; }
  .cmp-table tbody td.is-us::after { color: #b9c08f; }
  .cmp-table tbody td:has(.cmp-note)::after { margin-top: 4px; }
  .cmp-cost-us { font-size: 20px; }
  .cmp-cta { min-height: 44px; padding: 0 12px; gap: 4px; font-size: 12px; white-space: nowrap; }
  .cmp-table tbody tr:last-child .is-us { border-radius: 0 0 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cmp-cta, .cmp-table tbody tr { transition: none; }
}
