/* Quiet table trial. Saved animated comparisons live at /assets; the complete
   previous landing pages are in artifacts/before-comparison-table/. */
.comparison-table-wrap {
  margin-top: 40px;
  overflow: hidden;
  border-radius: 24px;
  background: #fffefa;
  /* One card frame keeps the comparison distinct from the cream page. */
  border: 2px solid var(--line);
  box-shadow: 0 7px 0 var(--line);
}
.comparison-table {
  --comparison-row-background: #fffefa;
  --comparison-poc-background: var(--featured-bg);
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
  line-height: 1.5;
}
.comparison-table th,
.comparison-table td {
  width: 26%;
  padding: 22px 24px;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: break-word;
}
.comparison-table th:first-child { width: 22%; }
.comparison-table thead th { font-size: 19px; font-weight: 900; line-height: 1.25; }
.comparison-table tbody th { text-align: left; font-weight: 800; }
.comparison-table tbody tr:nth-child(odd) {
  --comparison-row-background: #f6f2ec;
  --comparison-poc-background: var(--pink);
}
.comparison-table tbody th,
.comparison-table tbody td { background: var(--comparison-row-background); }
.comparison-table td { color: var(--muted); }
.comparison-table .comparison-choice-poc {
  background: var(--comparison-poc-background);
  color: var(--jam);
  font-weight: 850;
}
.comparison-table thead .comparison-choice-poc { font-size: 22px; color: var(--berry); }
.comparison-detail { display: block; margin-top: 4px; font-size: .8em; font-weight: 600; }
.comparison-table-note { margin-top: 16px; font-size: 12px; line-height: 1.6; }

/* Keep all three options visible on a phone. Each row's label sits above its
   three values, rather than shrinking four columns or requiring side scrolling. */
@media (max-width: 600px) {
  .comparison-table-wrap { margin-top: 30px; border-radius: 18px; }
  .comparison-table { display: block; font-size: 14px; }
  .comparison-table thead,
  .comparison-table tbody { display: block; }
  .comparison-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .comparison-table th,
  .comparison-table td { width: auto; padding: 12px 10px; }
  .comparison-table th:first-child { width: auto; }
  .comparison-table thead th { font-size: 14px; padding-block: 20px; }
  .comparison-table thead .comparison-choice-poc { font-size: 17px; }
  .comparison-table thead .comparison-feature-head {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    padding: 0;
  }
  .comparison-table tbody th {
    grid-column: 1 / -1;
    width: auto;
    padding: 12px 14px 6px;
    font-size: 13px;
  }
  .comparison-table tbody td {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-block: 10px 16px;
  }
  /* Paint the stripe and highlighted third across the whole mobile row,
     including the full-width row label, so the center column stays continuous. */
  .comparison-table tbody tr {
    background: linear-gradient(to right,
      var(--comparison-row-background) 0% 33.333333%,
      var(--comparison-poc-background) 33.333333% 66.666667%,
      var(--comparison-row-background) 66.666667% 100%);
  }
  .comparison-table tbody th,
  .comparison-table tbody td,
  .comparison-table tbody .comparison-choice-poc { background: transparent; }
  .comparison-table-note { font-size: 11px; }
}
