/* ============================================================
   "Community vs. Enterprise": the dark comparison block, on the
   home page and on /my/. Moved here from home.css so both pages
   share it; .eyebrow comes from base.css.
   ============================================================ */

.compare {
  padding: 96px 0;
  background: var(--mtk-primary-100);
  color: var(--mtk-white);
  position: relative;
  overflow: hidden;
}
.compare::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}
.compare .wrap { position: relative; }
.compare-head { margin-bottom: 48px; }
.compare-head .eyebrow { color: var(--mtk-secondary-40); }
.compare-head .eyebrow::before { background: var(--mtk-secondary-40); }
.compare-head h2 {
  font-family: var(--mtk-font-sans);
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--mtk-white);
  margin: 12px 0 16px;
  font-weight: 400;
}
.compare-head p {
  font-family: var(--mtk-font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
  margin: 0;
}
.compare-table-wrap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mtk-font-sans);
}
table.compare-table th, table.compare-table td {
  padding: 8px 20px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
table.compare-table tbody td.feat-cell { padding-left: 36px; }
table.compare-table tbody tr.group-head td { padding-left: 20px; }
table.compare-table thead th {
  font-family: var(--mtk-font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0;
  color: rgba(255,255,255,.55);
  padding-top: 24px;
  padding-bottom: 24px;
  background: rgba(255,255,255,.03);
}
table.compare-table thead th .plan-name {
  display: block;
  font-family: var(--mtk-font-sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--mtk-white);
  margin-top: 0;
}
table.compare-table thead th .plan-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 1px;
  transition: border-color 120ms ease;
}
table.compare-table thead th .plan-name a:hover { border-bottom-color: rgba(255,255,255,.7); text-decoration: none; }
table.compare-table thead th.plan-community .plan-name { color: var(--mtk-secondary-40); }
table.compare-table thead th.plan-logo { width: 64%; padding-left: 32px; }
table.compare-table thead th.plan-logo img { height: 56px; width: auto; max-width: none; display: block; }
table.compare-table thead th.plan { width: 18%; text-align: center; }
table.compare-table tbody td {
  font-size: 13.5px;
  color: rgba(255,255,255,.85);
  font-family: var(--mtk-font-serif);
}
table.compare-table tbody td.feat-cell { width: 64%; }
table.compare-table tbody td.val {
  width: 18%;
  text-align: center;
  font-family: var(--mtk-font-sans);
  font-weight: 600;
}
table.compare-table tbody td.val .yes,
table.compare-table tbody td.val .no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 999px;
}
table.compare-table tbody td.val .yes { background: rgba(47,143,94,.18); color: var(--mtk-success); }
table.compare-table tbody td.val .yes svg { width: 16px; height: 16px; stroke-width: 3; }
table.compare-table tbody td.val .no { color: rgba(255,255,255,.32); }
table.compare-table tbody td.val .no::after { content: "—"; font-size: 14px; font-weight: 600; }
table.compare-table tbody td.val .text {
  font-family: var(--mtk-font-sans);
  font-size: 13px;
  color: rgba(255,255,255,.9);
}
table.compare-table tbody tr.group-head td {
  font-family: var(--mtk-font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.025);
  padding-top: 20px;
  padding-bottom: 12px;
}
table.compare-table tbody tr.group-head td .group-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mtk-secondary-40);
  margin-right: 10px;
  transform: translateY(-2px);
}
table.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 32px;
  gap: 12px;
}
.compare-cta-note {
  color: rgba(255,255,255,.65);
  font-family: var(--mtk-font-serif);
  font-size: 14px;
}
.btn-light {
  background: var(--mtk-white);
  color: var(--mtk-primary-100);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--mtk-font-sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background var(--mtk-duration-fast) var(--mtk-ease);
}
.btn-light:hover { background: var(--mtk-neutral-10); color: var(--mtk-primary-100); text-decoration: none; }
.btn-light svg { width: 16px; height: 16px; }

@media (max-width: 980px) {
  table.compare-table th, table.compare-table td { padding: 12px 16px; }
}
@media (max-width: 640px) {
  .compare { padding: 64px 0; }
  .compare-head h2 { font-size: 30px; }

  /* Compare table: shrink header type and padding so all 3 columns fit */
  table.compare-table th, table.compare-table td { padding: 8px 8px; }
  table.compare-table thead th { padding: 16px 6px; font-size: 10px; }
  table.compare-table thead th.plan-logo { padding-left: 12px; width: 52%; }
  table.compare-table thead th.plan-logo img { height: 36px; }
  table.compare-table thead th .plan-name { font-size: 13px; letter-spacing: -0.005em; }
  table.compare-table thead th.plan { width: 24%; padding-left: 4px; padding-right: 4px; }
  table.compare-table tbody td { font-size: 12.5px; }
  table.compare-table tbody td.feat-cell { padding-left: 12px; padding-right: 6px; width: 52%; }
  table.compare-table tbody tr.group-head td { padding-left: 12px; }
  table.compare-table tbody td.val { width: 24%; padding-left: 4px; padding-right: 4px; }
  table.compare-table tbody td.val .yes,
  table.compare-table tbody td.val .no { width: 24px; height: 24px; }
  table.compare-table tbody td.val .yes svg { width: 14px; height: 14px; }
}
