/* =========================================================
   Block: § 04 / COMPARISON  (.comparison)
   5-column table (criterion + 3 alts + Metrica accent col)
   + § 04.5 / Resolution closing block.
   ========================================================= */
.comparison {
  background: #F8F9FB;
  padding: 140px 0;
  border-top: 1px solid var(--ink-100);
}

.cmp-intro {
  max-width: 820px;
  margin: 0 0 64px;
}
.cmp-intro .section-head { margin-bottom: 24px; }
.cmp-intro .section-lede em {
  font-style: italic;
  color: var(--ink-900);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  table-layout: fixed;
}
.cmp-table col.col-criterion { width: 260px; }
.cmp-table col.col-alt       { width: auto; }
.cmp-table col.col-metrica   { width: 260px; }

.cmp-table thead th {
  text-align: left;
  padding: 20px 20px 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-400);
  border-bottom: 1px solid var(--ink-200);
  vertical-align: bottom;
}
.cmp-table thead th.th-criterion {
  color: var(--ink-900);
  font-weight: 600;
}
.cmp-table thead th.th-metrica {
  color: var(--brand-700);
  font-weight: 700;
  font-size: 13px;
  border-bottom: 2px solid var(--brand-700);
}

.cmp-table tbody td {
  padding: 28px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--ink-200);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-500);
}
.cmp-table tbody td.td-criterion { padding-right: 32px; }
.cmp-table tbody td.td-criterion .crit-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink-900);
  letter-spacing: -.01em;
  margin: 0 0 10px;
}
.cmp-table tbody td.td-criterion .crit-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-400);
  margin: 0;
  font-weight: 400;
}
.cmp-table tbody td.td-metrica {
  color: var(--ink-900);
  font-weight: 600;
  background: #F5F8FC;
}
.cmp-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Resolution / closing block ---------- */
.cmp-closing {
  margin-top: 96px;
  padding-top: 56px;
  border-top: 1px solid var(--ink-200);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}
.cmp-closing .cmp-closing-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding-top: 10px;
}
.cmp-closing .cmp-closing-body { max-width: 760px; }

.cmp-closing .cmp-primary-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 20px;
}
.cmp-closing .cmp-primary-line em {
  font-style: normal;
  color: var(--ink-900);
}

.cmp-closing .cmp-resolution {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink-900);
  margin: 0 0 32px;
  text-wrap: pretty;
}
.cmp-closing .cmp-resolution strong { font-weight: 500; }
.cmp-closing .cmp-resolution em {
  font-style: italic;
  color: var(--ink-500);
  font-weight: 400;
}

.cmp-closing .cmp-bridge {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-500);
  margin: 0 0 40px;
  max-width: 620px;
  text-wrap: pretty;
  position: relative;
  padding-left: 20px;
}
.cmp-closing .cmp-bridge::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  font-style: normal;
  color: var(--brand-700);
  font-weight: 500;
}

.cmp-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--ink-100);
}

/* ---------- Tablet: each criterion as a card ---------- */
@media (max-width: 1023px) {
  .cmp-table,
  .cmp-table thead,
  .cmp-table tbody,
  .cmp-table tr,
  .cmp-table td,
  .cmp-table th,
  .cmp-table colgroup,
  .cmp-table col { display: block; }
  .cmp-table thead { display: none; }
  .cmp-table tbody tr {
    border: 1px solid var(--ink-200);
    background: #fff;
    padding: 28px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }
  .cmp-table tbody td {
    border: none;
    padding: 0;
  }
  .cmp-table tbody td.td-criterion {
    grid-column: 1 / -1;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--ink-100);
  }
  .cmp-table tbody td.td-alt {
    font-size: 14px;
    padding: 14px 0 0;
    border-top: 0;
    position: relative;
  }
  .cmp-table tbody td.td-alt::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-400);
    margin-bottom: 6px;
    font-weight: 500;
  }
  .cmp-table tbody td.td-metrica {
    grid-column: 2 / 3;
    grid-row: 2 / span 3;
    align-self: stretch;
    background: var(--ink-50);
    border: 1px solid var(--brand-700);
    border-left-width: 2px;
    padding: 18px;
    border-radius: var(--r-sm);
    font-size: 15px;
  }
  .cmp-table tbody td.td-metrica::before {
    content: "Metrica";
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-700);
    margin-bottom: 8px;
    font-weight: 600;
  }
}

/* ---------- Mobile: one criterion per stacked card ---------- */
@media (max-width: 900px) {
  .comparison {
    padding: 56px 0;
  }
  .cmp-table { display: block; }
  .cmp-table thead { display: none; }
  .cmp-table tbody,
  .cmp-table tr { display: block; width: 100%; }
  .cmp-table tr {
    border: none;
    border-top: 1px solid var(--ink-100);
    padding: 20px 0;
    margin: 0;
    grid-template-columns: 1fr;
    background: transparent;
  }
  .cmp-table td {
    display: block;
    width: 100%;
    padding: 6px 0;
    border: none;
  }
  .cmp-table .td-criterion {
    grid-column: auto;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    border-bottom: none;
    padding: 0 0 4px;
  }
  .cmp-table .td-metrica {
    grid-column: auto;
    grid-row: auto;
    background: var(--ink-50);
    border: none;
    border-left: 2px solid var(--brand-700);
    border-radius: 0;
    padding: 12px;
    margin-top: 8px;
  }
  .cmp-table .td-metrica::before {
    content: "Metrica — ";
    color: var(--brand-500);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
  }
  .cmp-table .td-alt::before {
    content: attr(data-label) " — ";
    color: var(--ink-400);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: block;
    margin-top: 8px;
    margin-bottom: 4px;
  }
  .cmp-closing {
    margin-top: 48px;
    padding-top: 32px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cmp-closing .cmp-resolution { font-size: 26px; }
  .cmp-closing .cmp-closing-label { padding-top: 0; }
  .cmp-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cmp-ctas .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}
