/* =========================================================
   nflo Marketing — compare.css
   Styles for the "alternative to X" comparison pages
   ========================================================= */

.cmp {
  padding: 120px 0 0;
}

.cmp__inner {
  max-width: 860px;
}

.cmp__eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet);
  margin-bottom: 14px;
  opacity: 0.85;
}

.cmp__headline {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cmp__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 32px;
}

.cmp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cmp__note {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 16px;
}

/* ----- Section rhythm ----- */
.cmp-section {
  padding: 72px 0 0;
}

/* .cmp-section only pads its top, so a following section that draws a divider
   (.faq, .cta) rules straight up against the previous section's last line.
   Push the divider down so it has the same air above it as below it. */
.cmp-section + .faq { margin-top: 72px; }
.cmp-section + .cta { margin-top: 96px; }

.cmp-section__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.cmp-section__sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 32px;
}

.cmp-prose p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
  max-width: 680px;
}

.cmp-prose p:last-child { margin-bottom: 0; }
.cmp-prose strong { color: var(--text); font-weight: 600; }

/* ----- Fair-play cards: what they're good at vs where nflo fits ----- */
.cmp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cmp-card {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--glass-shadow);
}

.cmp-card--accent {
  border-color: var(--violet-dim);
  box-shadow: var(--glass-shadow), 0 0 40px var(--violet-glow);
}

.cmp-card__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.cmp-card--accent .cmp-card__label { color: var(--violet); opacity: 0.9; }

.cmp-card__title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.cmp-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cmp-card li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.cmp-card li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}

.cmp-card--accent li::before { background: var(--violet); }

/* ----- Structural comparison table ----- */
.cmp-table-wrap {
  overflow-x: auto;
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--glass-shadow);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 15px;
}

.cmp-table th,
.cmp-table td {
  text-align: left;
  padding: 16px 20px;
  vertical-align: top;
  line-height: 1.55;
}

.cmp-table thead th {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.cmp-table thead th:first-child {
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.09em;
}

.cmp-table tbody tr + tr th,
.cmp-table tbody tr + tr td {
  border-top: 1px solid var(--border-subtle);
}

.cmp-table tbody th {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  width: 30%;
}

.cmp-table td { color: var(--text-muted); }

.cmp-table .cmp-table__us {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* ----- Verdict / who-should-switch callout ----- */
.cmp-verdict {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cmp-verdict__card {
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.cmp-verdict__card--stay { border-color: var(--border); }
.cmp-verdict__card--switch { border-color: var(--violet-dim); background: var(--bg-card); }

.cmp-verdict__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
}

.cmp-verdict__card--switch .cmp-verdict__title { color: var(--violet); }

.cmp-verdict__card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cmp-verdict__card li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.cmp-verdict__card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

.cmp-verdict__card--switch li::before { color: var(--violet); }

/* ----- Trademark / accuracy footnote ----- */
.cmp-disclaimer {
  margin-top: 56px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-faint);
  max-width: 680px;
}

/* ----- Cross-links to the other comparisons ----- */
.cmp-others {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cmp-others a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-item);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cmp-others a:hover {
  background: var(--bg-item-hover);
  border-color: var(--border-hover);
}

/* ----- Responsive ----- */
@media (max-width: 860px) {
  .cmp { padding-top: 96px; }
  .cmp-split,
  .cmp-verdict { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cmp-section { padding-top: 56px; }
  .cmp-section + .faq { margin-top: 56px; }
  .cmp-section + .cta { margin-top: 72px; }
  .cmp-card { padding: 22px; }
}

/* Below 600px a 3-column table would push the nflo column off-screen behind a
   horizontal scroll, hiding the half of the comparison that matters. Stack each
   row into its own card instead, labelled from the cell's data-label. */
@media (max-width: 600px) {
  .cmp-table-wrap {
    overflow-x: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .cmp-table { min-width: 0; display: block; font-size: 15px; }
  .cmp-table thead { display: none; }

  .cmp-table tbody,
  .cmp-table tbody tr,
  .cmp-table tbody th,
  .cmp-table tbody td { display: block; width: auto; }

  .cmp-table tbody tr {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 18px 20px;
    margin-bottom: 12px;
  }

  .cmp-table tbody tr + tr th,
  .cmp-table tbody tr + tr td { border-top: 0; }

  .cmp-table tbody th {
    padding: 0 0 14px;
    font-size: 16px;
  }

  .cmp-table tbody td {
    padding: 12px 0 0;
    margin-top: 12px;
    border-top: 1px solid var(--border-subtle);
  }

  .cmp-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-faint);
    margin-bottom: 5px;
  }

  .cmp-table .cmp-table__us { background: transparent; }
  .cmp-table .cmp-table__us::before { color: var(--violet); opacity: 0.9; }
}
