/** Shopify CDN: Minification failed

Line 480:0 Unexpected "}"

**/
/*
 * Mg Theme — Feature Matrix
 * © 2026 NAMY SOLUTIONS LLC – All Rights Reserved.
 * Conditionally loaded by sections/mg-feature-matrix.liquid.
 *
 * Pattern: criterion column + 1-3 brand columns. Highlighted brand cells
 * stack a small pill badge above the main metric. Competitor cells render
 * a single plain value. Token-driven, zero hex.
 */

mg-feature-matrix {
  display: block;
  position: relative;
  /* Block-axis spacing is owned by the shared .mg-spacing utility, which
     this same element carries. These rules read --fm-pt/-pb/-mt/-mb, which
     nothing has written since the section moved to mg-spacing-style
     (it emits --mg-pt/-pb/-mt/-mb), so the four spacing settings were
     inert and the padding was pinned to the --space-xl fallback. The schema
     defaults were raised 32 -> 64 in the same change so the rendered result
     is unchanged. */
}

.mg-feature-matrix__container {
  max-width: 60rem;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* ---- Header ---- */
.mg-feature-matrix__header {
  max-width: 38rem;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.mg-feature-matrix__header[data-align='left'] {
  max-width: none;
  margin-inline: 0;
  text-align: start;
}

.mg-feature-matrix__heading {
  margin: 0 0 var(--space-sm);
  color: var(--color-headings);
  text-wrap: balance;
}

.mg-feature-matrix__description {
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  text-wrap: pretty;
}

/* ---- Table ---- */
.mg-feature-matrix__table {
  position: relative;
  border: var(--border-thickness) solid color-mix(in srgb, var(--color-text) 6%, transparent);
  border-radius: var(--radius-lg);
  background-color: color-mix(in srgb, var(--color-background) 80%, transparent);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

@supports (backdrop-filter: blur(1px)) {
  .mg-feature-matrix__table {
    backdrop-filter: blur(8px) saturate(1.2);
    background-color: color-mix(in srgb, var(--color-background) 70%, transparent);
  }
}

/* Mobile: horizontal scroll inside table; criterion sticky on left.
   Desktop: full grid no scroll. Cells use min-width to keep columns readable
   (no awkward 2-3 line wraps in the highlighted main value). */
.mg-feature-matrix__thead,
.mg-feature-matrix__tbody {
  display: block;
}

/* Criterion column: tighter min so 2-word labels wrap to 2 balanced lines
   instead of pushing brand columns narrower. text-wrap: balance + hyphens:none
   below ensure the wrap reads as intentional design, not browser overflow. */
mg-feature-matrix[data-cols="1"] .mg-feature-matrix__row {
  grid-template-columns: minmax(6rem, 0.65fr) minmax(11rem, 1.4fr);
}
mg-feature-matrix[data-cols="2"] .mg-feature-matrix__row {
  grid-template-columns: minmax(6rem, 0.65fr) minmax(9rem, 1.35fr) minmax(7rem, 1fr);
}
mg-feature-matrix[data-cols="3"] .mg-feature-matrix__row {
  grid-template-columns: minmax(6rem, 0.6fr) minmax(9rem, 1.3fr) minmax(7rem, 1fr) minmax(7rem, 1fr);
}

/* Column width control (merchant setting `namy_column_width`).
   `normal` keeps the default rules above untouched (zero regression).
   `small` = narrower comparison columns (criterion column takes more share);
   `large` = wider comparison columns. Higher specificity (data-col-width +
   data-cols) wins over the default per-cols rule. */
mg-feature-matrix[data-col-width="small"][data-cols="1"] .mg-feature-matrix__row {
  grid-template-columns: minmax(6rem, 1.3fr) minmax(8rem, 1fr);
}
mg-feature-matrix[data-col-width="large"][data-cols="1"] .mg-feature-matrix__row {
  grid-template-columns: minmax(6rem, 0.4fr) minmax(13rem, 1.7fr);
}
mg-feature-matrix[data-col-width="small"][data-cols="2"] .mg-feature-matrix__row {
  grid-template-columns: minmax(6rem, 1.1fr) minmax(7rem, 1fr) minmax(6rem, 0.85fr);
}
mg-feature-matrix[data-col-width="large"][data-cols="2"] .mg-feature-matrix__row {
  grid-template-columns: minmax(6rem, 0.4fr) minmax(11rem, 1.6fr) minmax(9rem, 1.25fr);
}
mg-feature-matrix[data-col-width="small"][data-cols="3"] .mg-feature-matrix__row {
  grid-template-columns: minmax(6rem, 1fr) minmax(6rem, 1fr) minmax(6rem, 0.85fr) minmax(6rem, 0.85fr);
}
mg-feature-matrix[data-col-width="large"][data-cols="3"] .mg-feature-matrix__row {
  grid-template-columns: minmax(6rem, 0.4fr) minmax(11rem, 1.5fr) minmax(9rem, 1.2fr) minmax(9rem, 1.2fr);
}

.mg-feature-matrix__row {
  display: grid;
  align-items: stretch;
  border-block-end: var(--border-thickness) solid color-mix(in srgb, var(--color-text) 5%, transparent);
  min-inline-size: 100%;
}

/* On narrow viewports, allow horizontal scroll inside the rounded table. Fade gradient on right edge signals "more content right". */
@media (width <= 750px) {
  .mg-feature-matrix__table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 1.5rem), transparent 100%);
            mask-image: linear-gradient(to right, black 0, black calc(100% - 1.5rem), transparent 100%);
  }
  .mg-feature-matrix__thead,
  .mg-feature-matrix__tbody {
    min-inline-size: 32rem;
  }
  /* Sticky criterion column — keeps context while scrolling */
  .mg-feature-matrix__cell--criterion {
    position: sticky;
    inset-inline-start: 0;
    background-color: color-mix(in srgb, var(--color-background) 96%, transparent);
    z-index: var(--z-local-1, 1);
  }
}

.mg-feature-matrix__row:last-child {
  border-block-end: 0;
}

.mg-feature-matrix__row[data-extra="true"] {
  display: none;
}

mg-feature-matrix[data-expanded="true"] .mg-feature-matrix__row[data-extra="true"] {
  display: grid;
}

/* Cells base — tight density (IM8-aligned) */
.mg-feature-matrix__cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--space-sm-plus) var(--space-sm);
  font-family: var(--font-body--family);
  color: var(--color-text);
  text-align: start;
}

/* Criterion column — modern 2-line wrap.
   text-wrap: balance (Baseline 2025) distributes text evenly so 2-line
   wraps read as intentional. hyphens: none prevents browser auto-breaks
   inside compound words ("Streak-free" stays whole, never "Streak-" / "free").
   overflow-wrap: normal stops mid-word breaks even on overflow. */
.mg-feature-matrix__cell--criterion {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-headings);
  letter-spacing: var(--letter-spacing-normal);
  text-transform: none;
  text-wrap: balance;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  line-height: var(--line-height-snug);
}

/* Header row */
.mg-feature-matrix__row--head {
  border-block-end: var(--border-thickness) solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

.mg-feature-matrix__cell--head {
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  gap: var(--space-xs-plus);
  padding: var(--space-sm);
  font-family: var(--font-heading--family);
  font-weight: var(--font-heading--weight, 600);
  font-size: var(--font-size-sm);
  color: var(--color-headings);
  min-block-size: 3.5rem;
}

.mg-feature-matrix__col-name { display: contents; } /* versus wrapper; neutral in the table layout */
.mg-feature-matrix__cell--head .mg-feature-matrix__col-label {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-snug);
}

@media (width > 750px) {
  .mg-feature-matrix__cell--head .mg-feature-matrix__col-label {
    font-size: var(--font-size-md);
  }
}

.mg-feature-matrix__cell--head.mg-feature-matrix__cell--criterion {
  align-items: flex-start;
  justify-content: flex-end;
  text-align: start;
  font-family: var(--font-body--family);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.mg-feature-matrix__col-image {
  inline-size: clamp(2.5rem, 6vw, 4rem);
  block-size: clamp(2.5rem, 6vw, 4rem);
  object-fit: contain;
}

.mg-feature-matrix__col-label {
  display: block;
  text-wrap: balance;
}

.mg-feature-matrix__col-badge {
  display: inline-block;
  padding: var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-pill);
  background-color: var(--color-text);
  color: var(--color-background);
  font-family: var(--font-body--family);
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  line-height: var(--line-height-none);
}

/* Highlighted column tint */
.mg-feature-matrix__cell.is-highlighted,
.mg-feature-matrix__cell--highlight {
  background-color: color-mix(in srgb, var(--color-text) 4%, transparent);
}

.mg-feature-matrix__cell--head.is-highlighted {
  background-color: color-mix(in srgb, var(--color-text) 7%, transparent);
}

.mg-feature-matrix__row:first-child .mg-feature-matrix__cell.is-highlighted,
.mg-feature-matrix__row:first-child .mg-feature-matrix__cell--head.is-highlighted {
  border-start-start-radius: var(--radius-md);
  border-start-end-radius: var(--radius-md);
}

.mg-feature-matrix__row:last-child .mg-feature-matrix__cell.is-highlighted,
.mg-feature-matrix__row:last-child .mg-feature-matrix__cell--highlight {
  border-end-start-radius: var(--radius-md);
  border-end-end-radius: var(--radius-md);
}

/* Highlighted cell: pill + main value + subtitle stacked, tight density */
/* La pastille reprend la paire pastille du schema — la seule paire dont le
   controle de contraste verifie deja. Mesure de l'ancienne version :
   texte `--color-links` sur une teinte a 12 %, 3,85 puis 3,96:1. */
.mg-feature-matrix__pill {
  display: inline-block;
  padding: 0.0625rem var(--space-xs-plus);
  border-radius: 0.1875rem;
  background-color: var(--color-badge-bg);
  color: var(--color-badge-text);
  font-family: var(--font-body--family);
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  line-height: var(--line-height-comfortable);
}

.mg-feature-matrix__value {
  font-family: var(--font-body--family);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-snug);
  color: var(--color-text);
}

.mg-feature-matrix__sub {
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
  line-height: var(--line-height-snug);
}

/* Competitor cell */
.mg-feature-matrix__cell--alt {
  align-items: flex-start;
  justify-content: center;
}

.mg-feature-matrix__value--alt {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-sm);
}

.mg-feature-matrix__dash {
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
}

/* Cell-state marks (check / cross / partial) — themed icons via `mg-icon`.
   Editorial-minimal: bare 1.5-stroke glyph, success-green check; cross + partial
   stay muted neutral (absence reads as quiet, not alarm — pairs with `__dash`). */
.mg-feature-matrix__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: var(--line-height-none);
}
.mg-feature-matrix__mark--check {
  color: var(--color-success);
}
.mg-feature-matrix__mark--cross {
  color: var(--color-text-muted);
}
.mg-feature-matrix__mark--partial {
  color: var(--color-text-muted);
}

/* Optional text beside an icon state — quieter than a standalone value. */
.mg-feature-matrix__value--with-mark {
  margin-block-start: var(--space-2xs);
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
}

/* Text alignment control (merchant setting `namy_text_alignment`).
   Scopes to the comparison VALUE cells (highlight + alt both carry
   `--value`); the criterion label column and brand headers keep their own
   alignment. `left` (default) emits no rule → current flex-start render
   preserved (zero regression). Specificity (element + 2 attrs + class) wins
   over the (0,1,0) base + `--alt` rules. */
mg-feature-matrix[data-text-align="center"] .mg-feature-matrix__cell--value {
  align-items: center;
  text-align: center;
}
mg-feature-matrix[data-text-align="end"] .mg-feature-matrix__cell--value {
  align-items: flex-end;
  text-align: end;
}

/* Icon alignment control (merchant setting `namy_icon_alignment`).
   Targets ONLY cells that render a state icon (`:has(.__mark)`), so check/cross
   cells can sit centered while text cells keep `namy_text_alignment`. Specificity
   (element + 2 attrs/classes + 1 in :has = 0,3,1) beats the text-align rule (0,2,1).
   `inherit` emits no rule → mark cells follow text alignment (also the graceful
   fallback for browsers without `:has()`). Zero regression: matches no text-only cell. */
mg-feature-matrix[data-icon-align="left"] .mg-feature-matrix__cell--value:has(.mg-feature-matrix__mark) {
  align-items: flex-start;
  text-align: start;
}
mg-feature-matrix[data-icon-align="center"] .mg-feature-matrix__cell--value:has(.mg-feature-matrix__mark) {
  align-items: center;
  text-align: center;
}
mg-feature-matrix[data-icon-align="end"] .mg-feature-matrix__cell--value:has(.mg-feature-matrix__mark) {
  align-items: flex-end;
  text-align: end;
}

/* ---- Toggle (collapse/expand) ---- */
.mg-feature-matrix__toggle-wrap {
  display: flex;
  justify-content: center;
  margin-block-start: var(--space-md);
}

.mg-feature-matrix__toggle {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  min-height: 2.25rem;
  border: var(--border-thickness) solid color-mix(in srgb, var(--color-text) 12%, transparent);
  border-radius: var(--radius-pill);
  background-color: color-mix(in srgb, var(--color-background) 60%, transparent);
  color: var(--color-text);
  font-family: var(--font-body--family);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: background-color var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo);
}

.mg-feature-matrix__toggle:hover {
  border-color: color-mix(in srgb, var(--color-text) 25%, transparent);
}

.mg-feature-matrix__toggle:focus-visible {
  outline: 2px solid var(--color-links);
}

.mg-feature-matrix__toggle-chevron {
  width: 1rem;
  height: 1rem;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

mg-feature-matrix[data-expanded="true"] .mg-feature-matrix__toggle-chevron {
  transform: rotate(180deg);
}

/* ---- CTA + Footer ---- */
.mg-feature-matrix__cta-wrap {
  display: flex;
  justify-content: center;
  margin-block-start: var(--space-md);
}

.mg-feature-matrix__footer {
  margin: var(--space-md) 0 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  line-height: var(--line-height-normal);
  text-align: center;
}

/* ---- Display visibility ---- */
.mg-feature-matrix--desktop-only { display: none; }
.mg-feature-matrix--mobile-only { display: block; }
@media (width > 750px) {
  .mg-feature-matrix--desktop-only { display: block; }
  .mg-feature-matrix--mobile-only { display: none; }

  .mg-feature-matrix__cell {
    padding: var(--space-sm-plus) var(--space-md);
    gap: var(--space-xs);
  }
  .mg-feature-matrix__cell--criterion {
    padding-inline-start: var(--space-lg);
    font-size: var(--font-size-sm);
  }
  .mg-feature-matrix__cell--head { font-size: var(--font-size-base); padding: var(--space-md); min-block-size: 4rem; }
  .mg-feature-matrix__value { font-size: var(--font-size-base); }
  .mg-feature-matrix__value--alt { font-size: var(--font-size-sm); }
  .mg-feature-matrix__pill { font-size: var(--font-size-2xs); padding: var(--space-2xs) var(--space-sm); }
  .mg-feature-matrix__sub { font-size: var(--font-size-xs); }
}

@media (prefers-reduced-motion: reduce) {
  .mg-feature-matrix__toggle,
  .mg-feature-matrix__toggle-chevron,
}

/* ---- Liquid-glass surface mode override ---- */
body[data-surface="liquid-glass"] .mg-feature-matrix__table {
  background-color: color-mix(in srgb, var(--color-background) 55%, transparent);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: inset 0 var(--border-thickness) 0 color-mix(in srgb, white 12%, transparent),
              var(--shadow-md);
}

@supports not (backdrop-filter: blur(1px)) {
  body[data-surface="liquid-glass"] .mg-feature-matrix__table {
    background-color: color-mix(in srgb, var(--color-background) 92%, transparent);
  }
}
