/* =========================================================================
 * Comparisons — block 2, the comparison tables (inc/comparison-tables.php).
 *
 * A dark section: a graphite background with a barely visible grid and a teal
 * glow; each table is a card with thin translucent dividers. The LMNTRIX
 * column gets a thin teal accent (a rule on the left and a slightly lighter
 * background), the vendor column stays neutral. The tokens are those of the
 * service blocks (page.css): --lmx-ms-font / --lmx-ms-display, accent #52C7C6,
 * side padding --lmx-section-padding-x. The section is marked data-tall, so
 * --ms-scale is always 1 here and sizes are in px and clamp().
 *
 * Three types: .lmx-ct-sb (criterion / LMNTRIX / vendor; ≤768px turns into
 * cards: the criterion as the heading and two cells labelled from data-col),
 * .lmx-ct-fb (category / text; ≤768px turns into cards) and .lmx-ct-mx — the
 * Y/N/L/O matrix: a real table in a horizontally scrolling container with a
 * sticky header and a sticky first column, plus a scroll hint on narrow
 * screens. A value is colour + icon + letter (a screen reader gets the full
 * wording). There are no animations; the only transitions are link hover and
 * the rows appearing by class.
 * ====================================================================== */

.lmx-ct-inner{position:relative;width:100%;min-height:100vh;background:#050708 !important;color:#fff;font-family:var(--lmx-ms-font,'Hanken Grotesk',Helvetica,Arial,sans-serif);padding:0 var(--lmx-section-padding-x);box-sizing:border-box;overflow:hidden;--ct-accent:#52C7C6;--ct-accent-hi:#83DAD9;--ct-on-accent:#04211F;--ct-line:rgba(255,255,255,.10);--ct-line-hi:rgba(255,255,255,.16);--ct-surface:rgba(255,255,255,.03);--ct-surface-hi:rgba(255,255,255,.055);--ct-muted:rgba(255,255,255,.58);--ct-text:rgba(255,255,255,.84);--ct-y:#5fe3a1;--ct-n:#ff7b7b;--ct-l:#ffcf66;--ct-o:#7cc4ff}
.lmx-ct-inner *{box-sizing:border-box;min-width:0}

/* --- background --------------------------------------------------------- */
.lmx-ct-bg{position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(60% 34% at 50% 0%,rgba(82,199,198,.12),transparent 70%),radial-gradient(40% 30% at 10% 70%,rgba(82,199,198,.05),transparent 70%)}
.lmx-ct-bg::before{content:'';position:absolute;inset:0;background:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:56px 56px;-webkit-mask-image:radial-gradient(70% 45% at 50% 18%,#000 20%,transparent 100%);mask-image:radial-gradient(70% 45% at 50% 18%,#000 20%,transparent 100%)}
.lmx-ct-bg::after{content:'';position:absolute;left:50%;top:0;width:min(720px,80%);height:1px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,rgba(82,199,198,.55),transparent)}

.lmx-ct-wrap{position:relative;z-index:1;max-width:1400px;margin:0 auto;padding:clamp(56px,7vw,96px) 0 clamp(64px,8vw,104px);display:flex;flex-direction:column;gap:clamp(56px,7vw,96px)}

/* --- table header ------------------------------------------------------- */
.lmx-ct-table{min-width:0}
.lmx-ct-head{margin-bottom:22px}
.lmx-ct-kind{margin:0 0 10px !important;font-family:var(--lmx-ms-font) !important;font-weight:600;font-size:12px !important;letter-spacing:.3em;text-transform:uppercase;color:var(--ct-accent) !important;line-height:1.4 !important}
.lmx-ct-title{margin:0 !important;font-family:var(--lmx-ms-display,'Outfit','Poppins',sans-serif) !important;font-weight:300 !important;font-size:clamp(30px,3.6vw,52px) !important;line-height:1.08 !important;letter-spacing:-.02em;color:#fff !important;text-wrap:balance}
.lmx-ct-desc{margin:12px 0 0 !important;max-width:72ch;font-family:var(--lmx-ms-font) !important;font-size:16px !important;line-height:1.6 !important;color:var(--ct-text) !important}

/* --- table card --------------------------------------------------------- */
.lmx-ct-card{border:1px solid var(--ct-line);border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.015));box-shadow:0 1px 0 rgba(255,255,255,.03) inset,0 24px 60px rgba(0,0,0,.4);overflow:hidden}
.lmx-ct-card table{width:100%;border-collapse:separate;border-spacing:0;margin:0;table-layout:fixed}
.lmx-ct-card th,.lmx-ct-card td{vertical-align:top;text-align:left;padding:22px 24px;border-top:1px solid var(--ct-line);font-family:var(--lmx-ms-font);letter-spacing:0;background:transparent}
.lmx-ct-card thead th{border-top:0;background:rgba(255,255,255,.035);border-bottom:1px solid var(--ct-line-hi)}
.lmx-ct-card tbody tr:first-child th,.lmx-ct-card tbody tr:first-child td{border-top:0}
.lmx-ct-card tbody th{font-family:var(--lmx-ms-display,'Outfit','Poppins',sans-serif);font-weight:400;font-size:19px;line-height:1.25;color:#fff}
.lmx-ct-cell{font-size:15px;line-height:1.6;color:var(--ct-text);font-weight:300}
.lmx-ct-cell p{margin:0 0 .75em;font:inherit;color:inherit}
.lmx-ct-cell p:last-child{margin-bottom:0}
/* Bold as in the old cells: usually a separate first paragraph, sometimes mid-line (“…Alerts**:”), hence inline. */
.lmx-ct-cell strong{font-weight:600;color:#fff}
.lmx-ct-cell p:has(> strong:only-child){margin-bottom:.35em}
.lmx-ct-cell--lmx strong{color:#dcfbfa}

/* Side by side: the LMNTRIX column gets a thin teal accent. */
.lmx-ct-sb__crit{width:20%}
.lmx-ct-sb__lmx{width:40%}
.lmx-ct-sb__vendor{width:40%}
.lmx-ct-card td.lmx-ct-sb__lmx{background:rgba(82,199,198,.045);box-shadow:inset 2px 0 0 rgba(82,199,198,.6)}
.lmx-ct-card thead th.lmx-ct-sb__lmx{background:rgba(82,199,198,.10);box-shadow:inset 2px 0 0 rgba(82,199,198,.8)}
.lmx-ct-logo{display:inline-flex;align-items:center;justify-content:flex-start;min-height:40px;max-width:100%}
/* The logos are light and on a transparent background (see
   design-source/feedback/swap-comparison-logos.php), so they need no plate:
   there used to be a light rectangle here for the dark logos of the old site,
   and inside a dark table it read as a white hole. One height for all — 34px,
   fitted whole (contain), proportions untouched. */
.lmx-ct-logo__img{display:block;max-width:min(100%,190px) !important;height:34px !important;width:auto !important;object-fit:contain;object-position:left center;box-sizing:border-box}
/* The LMNTRIX logo no longer has a teal frame: on a transparent image it drew
   an empty rectangle around the mark. The column is already set apart by its
   background and the rule on the left. */
.lmx-ct-logo__img--text{font-family:var(--lmx-ms-font);font-weight:600;font-size:14px;letter-spacing:.14em;text-transform:uppercase;color:#fff}

/* Customer feedback */
.lmx-ct-fb__cat{width:32%}
.lmx-ct-fb__col{display:block;font-family:var(--lmx-ms-font);font-weight:600;font-size:13px;letter-spacing:.18em;text-transform:uppercase;color:#fff}
.lmx-ct-fb__source{display:block;margin-top:6px;font-size:13px;letter-spacing:.02em;color:var(--ct-muted)}

/* --- matrix ------------------------------------------------------------------ */
.lmx-ct-legend{display:flex;flex-wrap:wrap;gap:10px 22px;margin:0 0 18px;padding:0;list-style:none}
.lmx-ct-legend__item{display:inline-flex;align-items:center;gap:10px;font-family:var(--lmx-ms-font);font-size:14px;color:var(--ct-text)}
.lmx-ct-scroll-hint{display:none;align-items:center;gap:8px;margin:0 0 10px !important;font-family:var(--lmx-ms-font) !important;font-size:12px !important;letter-spacing:.08em;text-transform:uppercase;color:var(--ct-muted) !important}
.lmx-ct-scroll-hint svg{width:18px;height:18px;color:var(--ct-accent)}
.lmx-ct-scroll{position:relative;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;border:1px solid var(--ct-line);border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.015));box-shadow:0 1px 0 rgba(255,255,255,.03) inset,0 24px 60px rgba(0,0,0,.4);scrollbar-width:thin;scrollbar-color:rgba(82,199,198,.45) transparent}
.lmx-ct-scroll:focus-visible{outline:2px solid var(--ct-accent);outline-offset:3px}
.lmx-ct-scroll::-webkit-scrollbar{height:8px}
.lmx-ct-scroll::-webkit-scrollbar-thumb{background:rgba(82,199,198,.35);border-radius:8px}
/* The parent theme gives every <table> a light border and a bottom margin
   (phlox-pro/css/base.css: table{border:1px solid #EAEAEA;margin-bottom:1.4em}).
   On a dark table that reads as a white rectangle around it. */
.lmx-ct-card table,.lmx-ct-mx,.lmx-ct-sb,.lmx-ct-fb,.lmx-ct-cx{border:0;margin-bottom:0}
.lmx-ct-mx{width:100%;min-width:640px;border-collapse:separate;border-spacing:0;margin:0;font-family:var(--lmx-ms-font)}
.lmx-ct-mx th,.lmx-ct-mx td{padding:13px 20px;border-top:1px solid var(--ct-line);text-align:left;vertical-align:middle;background:#0b0f11;font-size:15px;line-height:1.35;letter-spacing:0}
.lmx-ct-mx thead th{position:sticky;top:0;z-index:3;border-top:0;border-bottom:1px solid var(--ct-line-hi);background:#141a1d;font-weight:600;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:#fff}
.lmx-ct-mx thead th.lmx-ct-mx__feat{z-index:4}
.lmx-ct-mx__feat{width:56%;font-weight:400;color:var(--ct-text);position:sticky;left:0;z-index:2}
.lmx-ct-mx tbody th.lmx-ct-mx__feat{box-shadow:inset -1px 0 0 var(--ct-line)}
.lmx-ct-mx__vendor,.lmx-ct-mx__lmx{width:22%;text-align:center}
.lmx-ct-mx td.lmx-ct-mx__lmx{background:rgba(82,199,198,.05)}
.lmx-ct-mx thead th.lmx-ct-mx__lmx{background:#16221f;color:#dcfbfa}
/* Group heading: a full-width (colspan) cell is not sticky — in Chrome sticky
   colspan cells lose their contents while scrolling; the label inside sticks
   instead (inline-block), so it stays visible at any offset. */
.lmx-ct-mx__group th{padding:12px 20px;background:#101619;font-family:var(--lmx-ms-display,'Outfit','Poppins',sans-serif);font-weight:400;font-size:17px;letter-spacing:.02em;color:var(--ct-accent);box-shadow:inset 0 1px 0 rgba(82,199,198,.25),inset 0 -1px 0 rgba(82,199,198,.25)}
.lmx-ct-mx__group-label{position:sticky;left:20px;display:inline-block}
.lmx-ct-mx tbody tr:nth-child(even) th,.lmx-ct-mx tbody tr:nth-child(even) td{background:#0d1214}
.lmx-ct-mx tbody tr:nth-child(even) td.lmx-ct-mx__lmx{background:rgba(82,199,198,.07)}

/* Value: letter + icon, in an accessible colour. */
.lmx-ct-badge{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:56px;height:30px;padding:0 10px;border-radius:999px;border:1px solid transparent;font-family:var(--lmx-ms-font);font-weight:700;font-size:13px;letter-spacing:.06em;line-height:1}
.lmx-ct-badge__icon{display:inline-flex}
.lmx-ct-badge__icon svg{width:15px;height:15px}
.lmx-ct-badge--y{color:var(--ct-y);border-color:rgba(95,227,161,.45);background:rgba(95,227,161,.10)}
.lmx-ct-badge--n{color:var(--ct-n);border-color:rgba(255,123,123,.45);background:rgba(255,123,123,.10)}
.lmx-ct-badge--l{color:var(--ct-l);border-color:rgba(255,207,102,.45);background:rgba(255,207,102,.10)}
.lmx-ct-badge--o{color:var(--ct-o);border-color:rgba(124,196,255,.45);background:rgba(124,196,255,.10)}
.lmx-ct-badge--none{color:var(--ct-muted);border-color:var(--ct-line)}

/* --- narrow screens: short tables become cards -------------------------------- */
@media (max-width:1024px){
.lmx-ct-card th,.lmx-ct-card td{padding:18px 18px}
.lmx-ct-mx th,.lmx-ct-mx td{padding:12px 14px}
.lmx-ct-scroll-hint{display:inline-flex}
}
@media (max-width:768px){
.lmx-ct-card table,.lmx-ct-card thead,.lmx-ct-card tbody,.lmx-ct-card tr,.lmx-ct-card th,.lmx-ct-card td{display:block;width:auto}
.lmx-ct-card thead{border-bottom:1px solid var(--ct-line-hi)}
.lmx-ct-card thead tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 16px;background:rgba(255,255,255,.035)}
.lmx-ct-card thead th{padding:0;border:0;background:transparent !important;box-shadow:none !important}
.lmx-ct-sb thead th.lmx-ct-sb__crit{display:none}
.lmx-ct-fb thead tr{grid-template-columns:1fr}
.lmx-ct-fb thead th.lmx-ct-fb__cat{display:none}
.lmx-ct-card tbody tr{padding:16px 16px 18px;border-top:1px solid var(--ct-line)}
.lmx-ct-card tbody tr:first-child{border-top:0}
.lmx-ct-card tbody th{padding:0 0 12px;border:0;font-size:20px}
.lmx-ct-card tbody td{padding:12px 14px;border:0;border-radius:12px;margin-top:8px;background:var(--ct-surface)}
.lmx-ct-card td.lmx-ct-sb__lmx{background:rgba(82,199,198,.07);box-shadow:inset 2px 0 0 rgba(82,199,198,.7)}
.lmx-ct-card td[data-col]::before{content:attr(data-col);display:block;margin-bottom:8px;font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--ct-muted)}
.lmx-ct-card td.lmx-ct-sb__lmx[data-col]::before{color:var(--ct-accent)}
.lmx-ct-logo{min-height:0}
.lmx-ct-legend{gap:8px 16px}
.lmx-ct-legend__item{font-size:13px}
.lmx-ct-mx{min-width:560px}
.lmx-ct-mx__feat{width:auto;min-width:220px;max-width:60vw}
.lmx-ct-mx__vendor,.lmx-ct-mx__lmx{width:auto;min-width:110px}
.lmx-ct-mx__feat{box-shadow:inset -1px 0 0 var(--ct-line)}
}
@media (max-width:480px){
.lmx-ct-title{font-size:28px !important}
.lmx-ct-mx th,.lmx-ct-mx td{padding:11px 12px;font-size:14px}
.lmx-ct-mx__feat{min-width:190px;max-width:64vw}
.lmx-ct-badge{min-width:50px;height:28px;padding:0 8px}
}

/* --- less motion -------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
.lmx-ct-inner *{transition:none !important;scroll-behavior:auto !important}
}

/* --- competitive matrix (type cx, the Platform “Competitive Feature
   Comparison”) — there are several vendor columns (--ct-cols), the first one is
   LMNTRIX (highlighted); a cell holds a status badge (icon plus text for a
   screen reader) and a note. The first column is sticky and on narrow screens
   the container scrolls horizontally. */
.lmx-ct-cx{min-width:calc(280px + var(--ct-cols,4) * 200px)}
.lmx-ct-cx th,.lmx-ct-cx td{vertical-align:top;line-height:1.45}
.lmx-ct-cx .lmx-ct-cx__feat{width:24%;min-width:220px;font-family:var(--lmx-ms-display,'Outfit','Poppins',sans-serif);font-weight:400;font-size:16px;color:#fff}
.lmx-ct-cx .lmx-ct-cx__col{width:auto;min-width:180px;text-align:left}
.lmx-ct-cx thead th.lmx-ct-cx__col{font-size:12px;letter-spacing:.14em}
.lmx-ct-cx__cell{display:flex;align-items:flex-start;gap:10px}
.lmx-ct-cx__status{flex:0 0 auto;min-width:0;width:30px;padding:0;margin-top:-2px}
.lmx-ct-cx__text{font-size:14.5px;color:var(--ct-text);font-weight:300}
.lmx-ct-cx td.lmx-ct-cx__lmx .lmx-ct-cx__text{color:#dcfbfa;font-weight:400}
.lmx-ct-cx tbody tr:nth-child(even) td.lmx-ct-cx__lmx{background:rgba(82,199,198,.07)}
.lmx-ct-legend__item .lmx-ct-cx__status{width:auto;min-width:30px;padding:0 8px}
@media (max-width:768px){
.lmx-ct-cx .lmx-ct-cx__feat{min-width:170px;max-width:56vw;font-size:15px}
.lmx-ct-cx .lmx-ct-cx__col{min-width:170px}
}

/* =========================================================================
 * Phone (≤600px): the matrix is shown as a list, not as a scrolling table.
 *
 * At 390px the first column of the table (560px minimum) ate two thirds of
 * the screen, the vendor columns shrank to a couple of letters, and even
 * scrolling did not help to read the values. Now every row is the feature name
 * with two values and their column labels underneath: no horizontal scrolling
 * and the badges and headings are readable in full. From 601px up the table is
 * unchanged.
 * ====================================================================== */
@media (max-width:600px){
/* Both scrolling tables are shown as a list: the comparison matrix (mx) and
   the four-vendor Platform table (cx). The .lmx-ct-mx-wrap wrapper exists only
   around the first one, so the scroll container itself is reset. */
.lmx-ct-scroll-hint{display:none}
.lmx-ct-scroll{overflow:visible;border:0;background:none;box-shadow:none;border-radius:0}
.lmx-ct-mx{display:block;min-width:0;width:100%}
.lmx-ct-mx thead{display:none}
.lmx-ct-mx tbody{display:block}
.lmx-ct-mx tbody tr{display:block;margin:0 0 10px;border:1px solid var(--ct-line);border-radius:14px;overflow:hidden;background:var(--ct-surface,#0b0f11)}
.lmx-ct-mx tbody tr.lmx-ct-mx__group{margin:18px 0 10px;border:0;background:none}
.lmx-ct-mx__group th{display:block;padding:0 2px 6px;background:none;box-shadow:none;font-size:15px;letter-spacing:.1em;text-transform:uppercase}
.lmx-ct-mx__group-label{position:static;left:auto}
.lmx-ct-mx tbody th.lmx-ct-mx__feat{display:block;position:static;width:auto;min-width:0;max-width:none;padding:12px 14px 8px;border:0;box-shadow:none;background:transparent;font-size:16px;line-height:1.3;color:#fff}
.lmx-ct-mx tbody td{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;width:auto;min-width:0;padding:9px 14px;border:0;border-top:1px solid var(--ct-line);text-align:left}
.lmx-ct-mx tbody td::before{content:attr(data-col);font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--ct-muted)}
.lmx-ct-mx tbody td.lmx-ct-mx__lmx::before{color:var(--ct-accent)}
.lmx-ct-mx tbody tr:nth-child(even) th,.lmx-ct-mx tbody tr:nth-child(even) td{background:transparent}
.lmx-ct-mx tbody tr:nth-child(even) td.lmx-ct-mx__lmx,.lmx-ct-mx tbody td.lmx-ct-mx__lmx{background:rgba(82,199,198,.06)}
.lmx-ct-mx .lmx-ct-badge{justify-self:end}

/* Platform table: a value is an icon with a line of text rather than a badge,
   so the column label goes on its own line above the value instead of beside
   it. */
.lmx-ct-cx{min-width:0}
.lmx-ct-cx tbody th.lmx-ct-cx__feat{display:block;width:auto;min-width:0;max-width:none}
.lmx-ct-cx tbody td{display:block;padding:10px 14px}
.lmx-ct-cx tbody td::before{display:block;margin:0 0 5px}
.lmx-ct-cx tbody td.lmx-ct-cx__lmx::before{color:var(--ct-accent)}
.lmx-ct-cx__cell{align-items:flex-start;gap:8px}
.lmx-ct-cx__status{width:26px}
.lmx-ct-cx__text{font-size:14px}
}
