/* How BotBento compares: a real table, one row per product with its own
   logo, so people, screen readers and agents read the same thing. The
   BotBento row is the lit one; on first view its frame draws in once.
   Below desktop width each product is its own card: BotBento on top, the
   others in two columns on tablets and a swipe strip on phones, so the
   comparison never runs to several screens. */
.versus-section {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 96px) clamp(24px, 4vw, 48px);
}
.versus-section h2 {
  max-width: 17em;
  margin: 0 0 18px;
  font-size: clamp(34px, 4.8vw, 68px);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.versus-section > p {
  max-width: 40rem;
  margin: 0 0 clamp(24px, 3vw, 40px);
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.5;
}
.versus {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
  line-height: 1.45;
}
.versus th,
.versus td {
  padding: 14px 14px;
  border-top: 1px solid var(--hairline);
  text-align: start;
  vertical-align: top;
}
.versus thead th {
  border-top: 0;
  padding-block: 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
}
.versus td {
  color: var(--ink-soft);
}
.versus tbody th {
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}
.versus-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* Every logo sits on the same small light tile, like an app icon, so marks
   drawn for light backgrounds stay legible and none looks bigger. */
.versus-name img {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 8px;
  background: #f6f1e9;
  object-fit: contain;
}
.versus td[data-yes] {
  color: var(--ink);
}
.versus td[data-no] {
  color: var(--ink-faint);
}
/* The BotBento row: lamp-lit, framed in the accent. */
.versus tr.is-us > * {
  color: var(--ink);
  background: rgb(204 255 0 / 5%);
  border-top: 1px solid rgb(204 255 0 / 32%);
  border-bottom: 1px solid rgb(204 255 0 / 32%);
}
.versus tr.is-us > :first-child {
  border-inline-start: 1px solid rgb(204 255 0 / 32%);
  border-start-start-radius: 14px;
  border-end-start-radius: 14px;
}
.versus tr.is-us > :last-child {
  border-inline-end: 1px solid rgb(204 255 0 / 32%);
  border-start-end-radius: 14px;
  border-end-end-radius: 14px;
}
.versus-others tr:first-child > * {
  border-top-color: transparent;
}
.versus tr.is-us td[data-yes] {
  color: var(--accent);
}
.versus.is-armed tr.is-us > * {
  border-color: transparent;
  background: transparent;
}
.versus.is-lit tr.is-us > * {
  border-color: rgb(204 255 0 / 32%);
  background: rgb(204 255 0 / 5%);
  transition:
    border-color 700ms var(--ease-out),
    background 900ms var(--ease-out);
}
.versus-label {
  display: none;
}
.versus-sources {
  margin: 18px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.6;
}
.versus-sources a {
  color: inherit;
}

@media (max-width: 860px) {
  .versus,
  .versus tbody,
  .versus tr,
  .versus td,
  .versus th {
    display: block;
  }
  .versus thead {
    display: none;
  }
  .versus tbody tr {
    padding: 14px 16px;
    border: 1px solid var(--hairline);
    border-radius: 18px;
  }
  .versus tbody tr > * {
    padding: 4px 0;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
  }
  .versus tbody th {
    padding-bottom: 8px;
  }
  .versus-label {
    display: block !important;
    color: var(--ink-faint);
    font-size: 13px;
  }
  .versus-us tr {
    margin-bottom: 10px;
    border-color: rgb(204 255 0 / 36%);
    background: rgb(204 255 0 / 5%);
  }
  .versus-us td {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 10px;
  }
  .versus .versus-others {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .versus-us td {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .versus .versus-others {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    /* Same reason as the use-case strip: keeps right-to-left pages from
       widening. */
    position: relative;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .versus .versus-others::-webkit-scrollbar {
    display: none;
  }
  .versus-others tr {
    scroll-snap-align: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .versus.is-armed tr.is-us > * {
    border-color: rgb(204 255 0 / 32%);
    background: rgb(204 255 0 / 5%);
  }
}
