/* ============================================================
   MEA Reviews — Pros & Cons ("the verdict in brief") — TABLE
   Znaki-equivalent "Vor- und Nachteile" table: a genuine two-column
   <table> with a PROS column (green accent, check markers) beside a
   CONS column (red accent, x markers), paired row by row. Sits
   between hero-intro and the long-form review. Light "tech /
   computer" theme, matching hero-intro / licences / top3-cards.
   Tokens are scoped to .mea-pc so they won't clash with page :root
   vars. Self-contained — no external CSS or JS.
   ============================================================ */

.mea-pc {
  /* ---- Design tokens (mirror of hero-intro / licences) ---- */
  --pc-bg: #f4f4f4;
  --pc-surface: #ffffff;
  --pc-surface-2: #eef2f8;
  --pc-border: #e0e0e0;
  --pc-text: #1f2733;
  --pc-muted: #5b6676;
  --pc-faint: #8a94a6;
  --pc-accent: #0f62fe;      /* electric blue */
  --pc-ok: #16a34a;          /* pros green */
  --pc-bad: #dc2626;         /* cons red */

  --pc-radius: 0;
  --pc-radius-sm: 0;
  --pc-space: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --pc-gap: clamp(1.5rem, 1rem + 2.4vw, 3rem);

  --pc-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --pc-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --pc-duration: 200ms;
  --pc-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  background: var(--pc-bg);
  color: var(--pc-text);
  font-family: var(--pc-sans);
  padding: var(--pc-space) 0;
  overflow: hidden;
}

/* faint circuit-grid atmosphere, tech theme, very light */
.mea-pc::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--pc-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--pc-border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 90% at 15% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 90% at 15% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.mea-pc__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 0.5rem + 2vw, 2.5rem);
}

/* ---------- Header ---------- */
.mea-pc__head {
  max-width: 62ch;
  margin: 0 0 var(--pc-gap);
}

.mea-pc__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--pc-border);
  border-radius: 0;
  background: var(--pc-surface);
  color: var(--pc-faint);
  font-family: var(--pc-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mea-pc__kicker svg { width: 12px; height: 12px; color: var(--pc-accent); }

.mea-pc__title {
  margin: 0.85rem 0 0.5rem;
  font-size: clamp(1.5rem, 1.05rem + 2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.mea-pc__sub {
  margin: 0;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  line-height: 1.6;
  color: var(--pc-muted);
}

/* ---------- Table shell ---------- */
.mea-pc__scroll {
  position: relative;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  background: var(--pc-surface);
  box-shadow: none;
  overflow: hidden;                 /* clip rounded corners */
}

.mea-pc__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.94rem;
}

.mea-pc__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;                        /* visually-hidden, kept for a11y */
}

/* ---------- Column headers ---------- */
.mea-pc__colhead {
  width: 50%;
  text-align: left;
  vertical-align: middle;
  padding: 1rem 1.4rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--pc-text);
  border-bottom: 1px solid var(--pc-border);
  background: var(--pc-surface-2);
  white-space: nowrap;
}
.mea-pc__colhead--pro {
  border-top: 3px solid var(--pc-ok);
  border-right: 1px solid var(--pc-border);
}
.mea-pc__colhead--con {
  border-top: 3px solid var(--pc-bad);
}

.mea-pc__colhead .mea-pc__badge {
  display: inline-grid;
  place-items: center;
  vertical-align: -0.45em;
  width: 30px;
  height: 30px;
  margin-right: 0.55rem;
  border-radius: 0;
  border: 1px solid var(--pc-border);
}
.mea-pc__colhead .mea-pc__badge svg { width: 16px; height: 16px; }
.mea-pc__colhead--pro .mea-pc__badge {
  color: var(--pc-ok);
  background: rgba(22, 163, 74, 0.10);
  border-color: rgba(22, 163, 74, 0.25);
}
.mea-pc__colhead--con .mea-pc__badge {
  color: var(--pc-bad);
  background: rgba(220, 38, 38, 0.10);
  border-color: rgba(220, 38, 38, 0.25);
}

/* ---------- Body cells ---------- */
.mea-pc__cell {
  width: 50%;
  vertical-align: top;
  padding: 0.85rem 1.4rem;
  line-height: 1.5;
  color: var(--pc-muted);
  border-bottom: 1px solid var(--pc-border);
}
.mea-pc__cell--pro { border-right: 1px solid var(--pc-border); }

.mea-pc__table tbody tr:last-child .mea-pc__cell { border-bottom: 0; }
.mea-pc__table tbody tr:nth-child(even) .mea-pc__cell { background: rgba(238, 242, 248, 0.45); }

/* marker + text sit inline; text wraps with a hanging indent so
   multi-line points stay clear of the marker */
.mea-pc__cell .mea-pc__text {
  display: inline;
  color: inherit;
}
.mea-pc__cell strong { color: var(--pc-text); font-weight: 700; }

.mea-pc__marker {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 0.55rem;
  border-radius: 0;
  vertical-align: -0.32em;
}
.mea-pc__marker svg { width: 13px; height: 13px; }

.mea-pc__cell--pro .mea-pc__marker {
  color: var(--pc-ok);
  background: rgba(22, 163, 74, 0.12);
}
.mea-pc__cell--con .mea-pc__marker {
  color: var(--pc-bad);
  background: rgba(220, 38, 38, 0.12);
}

/* soft "no other drawbacks" filler cell — neutral, de-emphasised */
.mea-pc__cell--empty { color: var(--pc-faint); }
.mea-pc__marker--none {
  color: var(--pc-faint) !important;
  background: rgba(138, 148, 166, 0.12) !important;
}
.mea-pc__text--none { font-style: italic; }

/* ---------- Responsive ---------- */
/* On narrow viewports the two columns stack: each header + its
   cells become a full-width band, PROS above CONS. */
@media (max-width: 640px) {
  .mea-pc__table,
  .mea-pc__table thead,
  .mea-pc__table tbody,
  .mea-pc__table tr {
    display: block;
    width: 100%;
  }
  .mea-pc__colhead,
  .mea-pc__cell {
    display: block;
    width: 100%;
    border-right: 0;
  }
  .mea-pc__table thead { display: none; }          /* inline pill headers instead */
  .mea-pc__table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .mea-pc__table tbody tr .mea-pc__cell--pro {
    border-right: 1px solid var(--pc-border);
  }
}

@media (max-width: 460px) {
  .mea-pc__table tbody tr { grid-template-columns: 1fr; }
  .mea-pc__table tbody tr .mea-pc__cell--pro { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mea-pc__scroll { transition: none; }
}
