/* ── COMPARISON PAGE ── */
.comp-hero {
  padding: 120px 40px 60px;
  text-align: center;
}
.comp-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.comp-title {
  font-family: 'Roboto Flex', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 12px;
}
.comp-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 20px;
}
.comp-intro {
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ── PRODUCT CARDS ── */
.comp-products {
  padding: 0 40px 48px;
}
.comp-products-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.comp-product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .25s, transform .2s;
}
.comp-product-card:hover {
  transform: translateY(-3px);
}
.comp-product-card-cometa:hover {
  border-color: var(--accent-cometa);
}
.comp-product-card-materialise:hover {
  border-color: var(--accent-materialise);
}
.comp-product-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}
.comp-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.comp-product-card:hover .comp-product-img img {
  transform: scale(1.05);
}
.comp-product-info {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.comp-product-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.comp-product-badge-cometa {
  color: var(--accent-cometa);
  background: rgba(0,159,227,.1);
}
.comp-product-badge-materialise {
  color: var(--accent-materialise);
  background: rgba(0,191,165,.1);
}
.comp-product-name {
  font-family: 'Roboto Flex', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}
.comp-product-link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-cometa);
  transition: background .2s, color .2s;
  padding: 6px 16px;
  border: 1px solid var(--accent-cometa);
  border-radius: 100px;
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
}
.comp-product-link:hover {
  background: var(--accent-cometa);
  color: #0a0e1a;
}
.comp-product-card-materialise .comp-product-link {
  color: var(--accent-materialise);
  border-color: var(--accent-materialise);
}
.comp-product-card-materialise .comp-product-link:hover {
  background: var(--accent-materialise);
  color: #0a0e1a;
}

/* ── TABLE ── */
.comp-table-section {
  padding: 0 40px 80px;
}
.comp-table-wrap {
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.comp-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
.comp-product-header {
  padding: 20px 16px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
}
.comp-product-header.cometa {
  color: var(--accent-cometa);
  border-bottom-color: var(--accent-cometa);
}
.comp-product-header.materialise {
  color: var(--accent-materialise);
  border-bottom-color: var(--accent-materialise);
}
.comp-feature-header {
  padding: 20px 16px;
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  min-width: 160px;
}
.comp-feature {
  padding: 14px 16px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.comp-value {
  padding: 14px 16px;
  font-size: .82rem;
  font-weight: 300;
  color: var(--text-secondary);
  text-align: center;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  line-height: 1.5;
}
.comp-table tr:last-child .comp-feature,
.comp-table tr:last-child .comp-value {
  border-bottom: none;
}
.comp-table tr:hover .comp-value,
.comp-table tr:hover .comp-feature {
  background: rgba(255,255,255,.03);
}

/* ── STACKED VIEW (Mobile) ── */
.comp-stacked { display: none; }
.comp-stack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.comp-stack-header {
  padding: 16px 20px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 2px solid var(--border);
}
.comp-stack-header-cometa { border-bottom-color: var(--accent-cometa); }
.comp-stack-header-materialise { border-bottom-color: var(--accent-materialise); }
.comp-stack-badge {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px;
}
.comp-stack-name {
  font-size: .92rem; font-weight: 600;
  color: var(--text-primary); margin: 0;
}
.comp-stack-list { margin: 0; padding: 0; }
.comp-stack-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  gap: 16px;
}
.comp-stack-row:last-child { border-bottom: none; }
.comp-stack-row dt {
  font-size: .76rem; font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}
.comp-stack-row dd {
  font-size: .8rem; font-weight: 300;
  color: var(--text-primary);
  text-align: right; margin: 0;
}

/* ── RECOMMENDATION ── */
.comp-recommendation {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.comp-recommendation p {
  font-size: .86rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}
.comp-recommendation a {
  color: var(--accent-cometa);
  text-decoration: none;
  font-weight: 500;
}
.comp-recommendation-materialise a { color: var(--accent-materialise); }
.comp-recommendation a:hover { text-decoration: underline; }

/* ── CTA ── */
.comp-cta {
  padding: 80px 40px;
  text-align: center;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.comp-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.comp-cta h2 {
  font-family: 'Roboto Flex', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.comp-cta p {
  font-size: .88rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .comp-hero { padding: 100px 24px 40px; }
  .comp-products { padding: 0 24px 36px; }
  .comp-products-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
  .comp-table-section { padding: 0 24px 60px; }
  .comp-cta { padding: 60px 24px; }
  .comp-feature { font-size: .72rem; white-space: normal; }
  .comp-value { font-size: .75rem; padding: 12px; }
}
@media (max-width: 580px) {
  .comp-products-grid { grid-template-columns: repeat(2, 1fr); }
  .comp-product-info { padding: 12px 14px 16px; }
  .comp-product-name { font-size: .84rem; }
  .comp-table-wrap { display: none; }
  .comp-stacked { display: block; }
}
