/* ==========================================================================
   compare.css — the small additions the competitor comparison pages need on
   top of feature-v2.css (tokens, .faq-*, .tq) and feature-v3.css (.matrix).
   Load order: feature-v2, feature-v3, compare.

   Everything general already exists. What is here is only:
     1. matrix cell states, because a three-column head-to-head needs a real
        word in a cell ("Partial", "Not publicly documented"), not a glyph;
     2. the legend under the table;
     3. the sourced sentiment list;
     4. the date stamp.
   Contrast floor is #6b7088 (var(--v2-body) is #4a5065 and also passes).
   Nothing here is smaller than 13px.
   ========================================================================== */

/* ---------- 1. matrix cells ---------- */

/* feature-v3 sizes columns 2..n at 18% for a four-column table. A comparison
   table has three columns and one of them can hold a full sentence, so the
   capability column gets the remainder and the two verdict columns get more. */
.matrix.cmp th:not(:first-child),
.matrix.cmp td:not(:first-child) { width: 27%; }
.matrix.cmp { min-width: 560px; }

/* The row header is a <th scope="row">, so undo the centred, semibold column-
   header styling feature-v3 gives every .matrix th. */
.matrix.cmp th.cmp-cap { text-align: left; font: 400 14.5px/1.45 var(--font-body); color: var(--ink); font-weight: 400; }
.matrix.cmp th.cmp-cap b { display: block; font: 600 14.5px/1.4 var(--font-display); color: var(--ink); }
.matrix.cmp th.cmp-cap small { display: block; margin-top: 3px; font: 400 13px/1.45 var(--font-body); color: #6b7088; }

/* yes — the check icon, with an sr-only "Yes" beside it for screen readers.
   styles.css sets `img, svg { display: block }`, so the icon ignores the cell's
   text-align and pins left unless it is centred by its own margins. */
.matrix.cmp .cmp-yes { width: 22px; height: 22px; margin: 0 auto; color: #0c7a52; }

/* partial — the word, because a tilde in a table nobody has a legend for is a
   guess. The note rides on the title attribute. */
.matrix.cmp .cmp-partial { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fff0cc; color: #7a4f00; font: 600 13px/1.4 var(--font-display); cursor: help; }

/* no — only ever rendered when a source exists (the component throws otherwise),
   and always as a link to the page we read it on. */
.matrix.cmp .cmp-no { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1.4 var(--font-display); color: #6b7088; }
.matrix.cmp .cmp-no .cmp-x { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f1f2f7; color: #6b7088; font: 700 13px/1 var(--font-display); }

/* undocumented — a sentence, never a cross. Deliberately quiet: it is an
   absence of evidence, not a finding. */
.matrix.cmp .cmp-undoc { display: block; font: 400 13px/1.45 var(--font-body); color: #6b7088; text-wrap: balance; }

/* ---------- 2. legend ---------- */
/* One line per rule: run together they read as a wall and nobody reads a legend twice. */
.cmp-legend { margin-top: 14px; max-width: 78ch; font: 400 13.5px/1.6 var(--font-body); color: #6b7088; }
.cmp-legend span { display: block; }
.cmp-legend span + span { margin-top: 4px; }
.cmp-legend b { font-weight: 600; color: var(--ink); }

/* ---------- 3. sourced sentiment ---------- */
/* ---------- what their customers say: quote cards (2026-09-05) ---------- */
.cmp-sent { margin-top: 44px; }
.cmp-sent h2 { margin-bottom: 18px; }
.cmp-sent-lead { font: 400 17px/1.6 var(--font-body); color: var(--v2-body); max-width: 68ch; margin-bottom: 26px; }
.cmp-quotes { columns: 3; column-gap: 18px; }
.cmp-quote { break-inside: avoid; display: block; margin: 0 0 18px; padding: 22px 24px 20px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(15, 13, 25, .04), 0 10px 30px -18px rgba(15, 13, 25, .25), inset 0 0 0 1px var(--v2-line); }
.cmp-quote-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
/* Nothing on these pages renders under 13px (simplify pass, 2026-09-05): the mark ran at 12.5px and the G2 disc at
   12px, both under the floor. The disc grew to 32px to keep the two letters centred at the larger size. */
.cmp-mark { display: inline-grid; place-items: center; height: 28px; padding: 0 10px; border-radius: 7px; font: 700 13px/1 var(--font-display); letter-spacing: .01em; color: #fff; }
.cmp-mark-g2 { background: #ff492c; width: 32px; padding: 0; border-radius: 50%; height: 32px; font-size: 13px; }
.cmp-mark-capterra { background: #044d80; }
.cmp-mark-bbb { background: #005f86; }
.cmp-mark-trustpilot { background: #00b67a; }
.cmp-stars { font: 500 15px/1 var(--font-display); letter-spacing: .06em; color: #e0244f; }
.cmp-quote blockquote { margin: 0; }
.cmp-quote blockquote p { font: 500 16.5px/1.5 var(--font-serif); color: var(--ink); text-wrap: pretty; }
.cmp-quote-meta { margin-top: 14px; font: 500 13px/1.4 var(--font-display); color: #6b7088; }
.cmp-themes { display: grid; gap: 14px; }
.cmp-themes li { padding: 20px 22px; border-radius: 16px; background: var(--v2-card); box-shadow: inset 0 0 0 1px var(--v2-line); }
.cmp-themes li > p { font: 400 15.5px/1.55 var(--font-body); color: var(--ink); max-width: 72ch; }
.cmp-sent-note { margin-top: 10px; max-width: 72ch; }
@media (max-width: 991px) { .cmp-quotes { columns: 2; } }
@media (max-width: 640px) { .cmp-quotes { columns: 1; } }

/* ---------- 4. date stamp ---------- */
.cmp-stamp { margin-top: 28px; max-width: 72ch; font: 400 13.5px/1.6 var(--font-body); color: #6b7088; }
.cmp-stamp a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- phones ---------- */
/* The matrix scrolls inside .matrix-wrap rather than collapsing; the known
   backlog item about the matrix on phones is the v3 table's, not this one's. */
.matrix-wrap { position: relative; } /* the sr-only "Yes" is absolutely positioned; without this it escapes the scroller and widens the document (Birdeye writer, 2026-09-05) */
@media (max-width: 700px) {
  /* On a phone the three columns fit rather than hiding the competitor behind a sideways swipe (ported from the Birdeye page). */
  .matrix.cmp { min-width: 0; }
  .matrix.cmp th, .matrix.cmp td { padding: 12px 7px; }
  .matrix.cmp th:first-child, .matrix.cmp th.cmp-cap { min-width: 0; width: auto; }
  .matrix.cmp th:not(:first-child), .matrix.cmp td:not(:first-child) { width: 24%; }
  .matrix.cmp th.cmp-cap b { font-size: 14px; }
  .matrix.cmp .cmp-no { flex-direction: column; gap: 3px; }
  .matrix.cmp .cmp-undoc { font-size: 13px; }
  .cmp-themes li { padding: 18px; }
}

/* ---------- the proof band (Lachlan, 2026-09-05: the testimonial and the FAQ were clustered) ----------
   The proof heading and the quote sit on one tinted band with real air above and below, so the tail of the page
   reads switching band / proof / FAQ / closing as four beats instead of one column of text. The FAQ that follows
   gets a full section top, whatever its own class says. Three-part selectors so the per-page proof rules lose. */
.v2 main .cmp-proof { margin-top: clamp(24px, 3vw, 40px); padding: clamp(80px, 8.5vw, 120px) 0 0; background: var(--v2-card); }
.v2 main .cmp-proof + .tq-section { padding: clamp(28px, 3vw, 40px) 0 clamp(80px, 8.5vw, 120px); background: var(--v2-card); }
.v2 main .cmp-proof + .tq-section + section { padding-top: clamp(80px, 8.5vw, 120px); }
.v2 main .cmp-proof + .tq-section .tq figcaption { border-top-color: rgba(15, 13, 25, .1); }
