/* Food scanner comparison page */
.cmp-page {
  background: var(--bg);
  padding: 8px 80px 96px;
}
.cmp-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.cmp-pick {
  font: 700 16px/22px var(--font);
  color: var(--secondary);
  margin: 0 0 12px;
}

/* Tabs */
.cmp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.cmp-tab {
  font: 700 16px/22px var(--font);
  color: var(--primary);
  background: var(--surface);
  border: 2px solid var(--stroke);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.cmp-tab:hover { border-color: var(--secondary); }
.cmp-tab[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.cmp-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Key */
.cmp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font: 300 14px/20px var(--font);
  color: var(--primary);
}
.cmp-legend li { display: flex; align-items: center; gap: 8px; }
.cmp-legend .cmp-mark { margin: 0; }

.cmp-panel-title {
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  letter-spacing: var(--h3-ls);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 24px;
}

/* Table card */
.cmp-card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 12px;
}
.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.cmp-table th, .cmp-table td {
  padding: 14px 16px;
  vertical-align: middle;
  text-align: left;
}
.cmp-head-feature { width: 34%; font: 700 14px/20px var(--font); color: var(--secondary); }
.cmp-head {
  width: 22%;
  text-align: center !important;
  font: 700 20px/26px var(--font);
  color: var(--primary);
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

/* Bite Insight column: highlighted strip */
.cmp-head--us, .cmp-cell--us { background: var(--surface-tint); }
.cmp-head--us { border-radius: 16px 16px 0 0; }
.cmp-table tbody tr:last-child .cmp-cell--us { border-radius: 0 0 16px 16px; }

.cmp-table tbody tr:nth-child(odd) th,
.cmp-table tbody tr:nth-child(odd) td:not(.cmp-cell--us) { background: #f7f9f9; }
.cmp-table tbody tr:nth-child(odd) th { border-radius: 12px 0 0 12px; }
.cmp-table tbody tr:nth-child(odd) .cmp-cell--us { background: #e4f1ef; }

.cmp-table tbody th {
  font: 700 16px/22px var(--font);
  color: var(--primary);
}
.cmp-feature { position: relative; display: inline; }

.cmp-cell { text-align: center !important; }
.cmp-cell--text { font: 700 15px/21px var(--font); color: var(--primary); }
.cmp-note {
  display: block;
  margin-top: 6px;
  font: 300 13px/18px var(--font);
  color: var(--primary);
}

/* Marks */
.cmp-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.cmp-mark svg { width: 28px; height: 28px; display: block; }
.cmp-mark svg path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cmp-mark--yes svg circle { fill: #009a1f; }
.cmp-mark--yes svg path { stroke: #fff; }
.cmp-mark--paid svg circle { fill: #fff; stroke: #009a1f; stroke-width: 2.4; r: 10.8; }
.cmp-mark--paid svg path { stroke: #009a1f; }
.cmp-mark--part svg circle { fill: #F5B811; }
.cmp-mark--part svg path { stroke: #fff; stroke-width: 2.6; }
.cmp-mark--no svg circle { fill: #ff3f42; }
.cmp-mark--no svg path { stroke: #fff; stroke-width: 2.4; }
.cmp-mark--none {
  font: 700 12px/16px var(--font);
  color: #4b5a59;
  background: #eef1f1;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  white-space: nowrap;
}

/* Tooltips */
.cmp-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  vertical-align: 1px;
  border: 1px solid #b8c4c3;
  border-radius: 50%;
  background: #fff;
  font: 700 11px/1 var(--font);
  color: var(--primary);
  cursor: help;
  padding: 0;
}
.cmp-tip:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.cmp-tip-text {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: 260px;
  padding: 10px 12px;
  border-radius: var(--radius-m);
  background: var(--primary);
  color: #fff;
  font: 300 14px/20px var(--font);
  box-shadow: var(--shadow-cta);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s;
  pointer-events: none;
}
.cmp-tip:hover + .cmp-tip-text,
.cmp-tip:focus-visible + .cmp-tip-text,
.cmp-tip.is-open + .cmp-tip-text { opacity: 1; visibility: visible; }

/* Verdict and sources */
.cmp-verdict {
  max-width: 760px;
  margin: 40px 0 0;
}
.cmp-verdict p {
  font-size: var(--body-size);
  line-height: var(--body-lh);
  letter-spacing: var(--body-ls);
  font-weight: 300;
  color: var(--primary);
  margin: 0 0 16px;
}
.cmp-sources {
  margin-top: 8px;
  font: 300 15px/22px var(--font);
  color: var(--primary);
}
.cmp-sources summary { font-weight: 700; cursor: pointer; color: var(--secondary); }
.cmp-sources p { margin: 12px 0 8px; }
.cmp-sources ul { margin: 0; padding-left: 20px; }
.cmp-sources li { margin-bottom: 4px; }
.cmp-sources a { color: var(--secondary); }

.cmp-faq { margin-top: 72px; max-width: 860px; }

@media (max-width: 900px) {
  .cmp-page { padding: 8px 24px 72px; }
  .cmp-panel-title { font-size: 28px; line-height: 34px; }
}
@media (max-width: 600px) {
  .cmp-page { padding: 0 16px 64px; }
  .cmp-tab { padding: 8px 14px; font-size: 15px; }
  .cmp-card { padding: 4px; border-radius: 16px; }
  .cmp-table th, .cmp-table td { padding: 12px 6px; }
  .cmp-table tbody th { padding-left: 10px; font-size: 14px; line-height: 19px; }
  .cmp-head-feature { width: 31%; font-size: 0; }
  .cmp-head { width: 23%; font-size: 13px; line-height: 17px; }
  .cmp-cell--text { font-size: 13px; line-height: 18px; }
  .cmp-note { font-size: 12px; line-height: 16px; }
  .cmp-mark svg { width: 24px; height: 24px; }
  .cmp-mark--none { font-size: 11px; padding: 3px 7px; white-space: normal; }
  .cmp-tip { width: 18px; height: 18px; margin-left: 4px; }
  .cmp-tip-text { width: 220px; }
}

/* App names with their icons in the column heads */
.cmp-app { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.cmp-app img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(2,52,50,.08); flex: none; }
@media (max-width: 600px) {
  .cmp-app { flex-direction: column; gap: 6px; }
  .cmp-app img { width: 36px; height: 36px; border-radius: 9px; }
}
.cmp-tabs { margin-bottom: 32px; }

/* Free and Plus columns */
.cmp-app small { display: block; font: 300 13px/18px var(--font); color: var(--secondary); }
.cmp-head .cmp-app { flex-direction: column; gap: 6px; }
.cmp-head--free { border-radius: 16px 0 0 0; }
.cmp-head--plus { border-radius: 0 16px 0 0; }
.cmp-cell--plus, .cmp-head--plus { box-shadow: inset 1px 0 0 rgba(2,52,50,.08); }
.cmp-table tbody tr:last-child .cmp-cell--free { border-radius: 0 0 0 16px; }
.cmp-table tbody tr:last-child .cmp-cell--plus { border-radius: 0 0 16px 0; }
@media (max-width: 600px) {
  .cmp-table th, .cmp-table td { padding: 10px 4px; }
  .cmp-table tbody th { padding-left: 8px; font-size: 13px; line-height: 18px; }
  .cmp-app small { font-size: 11px; line-height: 14px; }
  .cmp-note { font-size: 11px; line-height: 15px; }
  .cmp-cell--text { font-size: 12px; line-height: 16px; }
  .cmp-mark--none { font-size: 10px; padding: 2px 6px; }
  .cmp-tip { display: none; }
}
