/* Industry comparison table (views/partials/industry-compare.ejs), used on
   the Finance, NBFC and MFI pages. Four columns: Capability, the
   alternative (warm tint), TrackOlap (outlined in the page's accent, with a
   check, a bold title and a short description) and Business Value (cool
   tint). Rows are grouped under small uppercase labels with an orange dash,
   and a trust strip sits under the table. The section heading keeps each
   page's own Compare heading styles.

   Each page sets its colours:
     --ic-accent       TrackOlap column outline and highlights
     --ic-ours-bg      TrackOlap column tint
     --ic-ours-bg-alt  alternate-row tint in the TrackOlap column
     --ic-value-bg     Business Value column tint */
.ind-compare {
  --ic-accent: #1e5bfa;
  --ic-ours-bg: #f3f7ff;
  --ic-ours-bg-alt: #e9f0ff;
  --ic-value-bg: #eef4ff;
  --ic-alt-bg: #fdf6f0;
  --ic-ink: #0b1530;
  --ic-muted: #4f5868;
  --ic-line: #e6ebf3;
  --ic-check: #16a34a;
}

.ind-compare .ind-compare-intro {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--ic-muted);
  font-size: 18px;
  line-height: 1.6;
}

.ind-compare .ind-compare-scroll {
  padding: 8px 4px 18px;
  overflow-x: auto;
}

.ind-compare-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--ic-line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(11, 21, 48, 0.07);
}

.ind-compare-table .ind-compare-col-cap { width: 21%; }
.ind-compare-table .ind-compare-col-alt { width: 19%; }
.ind-compare-table .ind-compare-col-ours { width: 35%; }
.ind-compare-table .ind-compare-col-value { width: 25%; }

.ind-compare-table th,
.ind-compare-table td {
  padding: 20px 22px;
  color: var(--ic-ink);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--ic-line);
}

/* Column tints run the full height of the table. */
.ind-compare-table .ind-compare-alt {
  color: var(--ic-muted);
  background: var(--ic-alt-bg);
}

.ind-compare-table .ind-compare-ours {
  background: var(--ic-ours-bg);
  border-right: 2px solid var(--ic-accent);
  border-left: 2px solid var(--ic-accent);
}

.ind-compare-table tbody tr:nth-child(odd):not(.ind-compare-group) .ind-compare-ours {
  background: var(--ic-ours-bg-alt);
}

.ind-compare-table .ind-compare-value {
  color: var(--ic-ink);
  background: var(--ic-value-bg);
}

/* Header row. */
.ind-compare-table thead th {
  padding-top: 26px;
  padding-bottom: 26px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.ind-compare-table thead .ind-compare-cap {
  background: #f6f8fc;
  border-top-left-radius: 18px;
}

.ind-compare-table thead .ind-compare-alt {
  color: var(--ic-ink);
  background: #fbe9dc;
}

.ind-compare-table thead .ind-compare-ours {
  text-align: center;
  border-top: 2px solid var(--ic-accent);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.ind-compare-table thead .ind-compare-ours img {
  width: 120px;
  height: auto;
  vertical-align: middle;
}

.ind-compare-table thead .ind-compare-value {
  background: color-mix(in srgb, var(--ic-value-bg) 84%, var(--ic-accent) 16%);
  border-top-right-radius: 18px;
}

/* Category rows: an orange dash and a small uppercase label. */
.ind-compare-table .ind-compare-group > * {
  padding-top: 12px;
  padding-bottom: 12px;
}

.ind-compare-table .ind-compare-group th {
  color: #475569;
  background: #f6f8fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ind-compare-table .ind-compare-group th span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ind-compare-table .ind-compare-group th span::before {
  width: 14px;
  height: 2px;
  content: "";
  background: #f56d25;
  border-radius: 2px;
}

/* Capability column. */
.ind-compare-table tbody .ind-compare-cap {
  font-weight: 500;
}

.ind-compare-cap-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ind-compare-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
}

.ind-compare-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ind-compare-tone--orange { color: #f56d25; }
.ind-compare-tone--blue { color: #2563eb; }
.ind-compare-tone--purple { color: #7c3aed; }
.ind-compare-tone--green { color: #16a34a; }
.ind-compare-tone--teal { color: #0d9488; }
.ind-compare-tone--amber { color: #d97706; }
.ind-compare-tone--slate { color: #475569; }

/* TrackOlap column: check, bold title, short description. */
.ind-compare-table tbody td.ind-compare-ours {
  vertical-align: top;
}

.ind-compare-table td.ind-compare-ours > .ind-compare-check {
  float: left;
  margin: 1px 12px 0 0;
}

.ind-compare-ours-copy {
  display: block;
  overflow: hidden;
}

.ind-compare-ours-copy strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ic-ink);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
}

.ind-compare-ours-copy span {
  display: block;
  color: var(--ic-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.ind-compare-check {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
}

.ind-compare-check svg {
  width: 22px;
  height: 22px;
}

.ind-compare-check svg circle {
  fill: var(--ic-check);
  stroke: none;
}

.ind-compare-check svg path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Last row: close the TrackOlap outline and round the bottom corners. */
.ind-compare-table tbody:last-of-type tr:last-child > * {
  border-bottom: 0;
}

.ind-compare-table tbody:last-of-type tr:last-child .ind-compare-ours {
  border-bottom: 2px solid var(--ic-accent);
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.ind-compare-table tbody:last-of-type tr:last-child .ind-compare-cap {
  border-bottom-left-radius: 18px;
}

.ind-compare-table tbody:last-of-type tr:last-child .ind-compare-value {
  border-bottom-right-radius: 18px;
}

/* Trust strip under the table. */
.ind-compare-trust {
  display: flex;
  margin: 28px 0 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  list-style: none;
}

.ind-compare-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ic-ink);
  font-size: 14px;
  font-weight: 600;
}

.ind-compare-trust .ind-compare-check,
.ind-compare-trust .ind-compare-check svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 560px) {
  .ind-compare .ind-compare-intro {
    font-size: 16px;
  }

  .ind-compare-trust {
    justify-content: flex-start;
  }
}
