/* Shopify compare — product-strategy sections */

.cmp-strategy-section .section-intro {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.cmp-strategy-section .section-intro h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* —— Section 1: Storefront table —— */

.cmp-table-wrap--storefront {
  margin-top: 0;
}

.cmp-table-wrap--storefront .cmp-table-scroll {
  max-height: none;
}

.cmp-table-wrap--storefront .cmp-table--storefront {
  width: 100%;
  min-width: 0;
  margin: 0;
  table-layout: fixed;
}

/* Table header — branded columns */
.cmp-table--storefront thead th {
  top: 0;
  padding: 1.125rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}

.cmp-th-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cmp-th-brand--platform {
  flex-wrap: wrap;
  gap: 0.5rem 0.625rem;
}

.cmp-th-brand__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(64, 80, 208, 0.08);
  color: var(--accent);
}

.cmp-th-brand__logo {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.cmp-th-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.cmp-th-brand__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
}

.cmp-th-brand__sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--muted-60);
  line-height: 1.35;
}

.cmp-th-brand--platform .cmp-badge {
  margin-left: 0;
}

/* Column widths */
.cmp-table--storefront .cmp-th-capability,
.cmp-table--storefront .cmp-capability--rich {
  width: 42%;
}

.cmp-table--storefront .cmp-th-platform,
.cmp-table--storefront tbody td:nth-child(2) {
  width: 29%;
}

.cmp-table--storefront thead th.cmp-col--highlight,
.cmp-table--storefront tbody td.cmp-col--highlight {
  width: 29%;
}

/* Rich capability rows */
.cmp-capability--rich {
  font-weight: 400;
}

.cmp-capability__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.cmp-capability__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(64, 80, 208, 0.08);
  color: var(--accent);
}

.cmp-capability__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cmp-capability__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.cmp-capability__desc {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted-60);
  line-height: 1.45;
}

/* Status cells */
.cmp-table--storefront tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
}

.cmp-cell-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.cmp-cell-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted-60);
  line-height: 1.3;
  padding-left: 1.65rem;
}

.cmp-table--storefront .cmp-status {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: normal;
}

.cmp-table--storefront .cmp-status__icon {
  width: 1.375rem;
  height: 1.375rem;
  font-size: 0.75rem;
}

.cmp-status--limited {
  color: #dc2626;
}

.cmp-status--limited .cmp-status__icon {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.cmp-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.1);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.22);
}

.cmp-tag--warn {
  margin-left: 1.65rem;
}

/* SellerGrid highlight column */
.cmp-table--storefront .cmp-col--highlight {
  background: rgba(64, 80, 208, 0.04);
  border-left: 2px solid rgba(64, 80, 208, 0.15);
}

.cmp-table--storefront thead th.cmp-col--highlight {
  background: rgba(64, 80, 208, 0.07);
  border-bottom-color: rgba(64, 80, 208, 0.12);
  box-shadow: inset 2px 0 0 rgba(64, 80, 208, 0.18);
}

.cmp-table--storefront tbody tr:hover td.cmp-col--highlight {
  background: rgba(64, 80, 208, 0.07);
}

@media (max-width: 768px) {
  .cmp-table-wrap--storefront .cmp-table--storefront {
    table-layout: auto;
    min-width: 640px;
  }

  .cmp-capability__desc {
    font-size: 0.75rem;
  }
}

/* —— Section 2: Cost breakdown table —— */

.cmp-cost-breakdown {
  margin-top: 1.5rem;
}

.cmp-cost-breakdown .cmp-table tbody tr.cmp-cost-row--total td {
  font-weight: 600;
  background: #f8fafc;
  border-top: 2px solid var(--linen);
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
}

.cmp-cost-breakdown .cmp-table tbody tr.cmp-cost-row--total td.cmp-col--highlight {
  background: rgba(64, 80, 208, 0.08);
}

.cmp-cost-breakdown .cmp-table tbody tr.cmp-cost-row--total strong {
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.cmp-cost-breakdown .cmp-table .cmp-cost-shopify {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.cmp-cost-breakdown .cmp-table .cmp-cost-sg {
  color: var(--accent);
  font-weight: 600;
}

.cmp-cost-breakdown-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-60);
  text-align: center;
}

.cmp-cost-savings-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin-top: 1.25rem;
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  background: rgba(64, 80, 208, 0.06);
  border: 1px solid rgba(64, 80, 208, 0.12);
  border-radius: 0.75rem;
}

.cmp-cost-savings-banner strong {
  color: var(--ink);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

/* —— Section 3: Module cards —— */

.cmp-module-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cmp-module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cmp-module-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.125rem;
  }

  .cmp-module-grid .cmp-module-card:last-child:nth-child(3n + 1) {
    grid-column: span 1;
  }
}

.cmp-module-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.25rem 1.125rem;
  background: linear-gradient(160deg, #fff 0%, rgba(239, 246, 255, 0.55) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
  .cmp-module-card:hover {
    transform: translateY(-3px);
    border-color: rgba(64, 80, 208, 0.18);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  }
}

.cmp-module-card__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(64, 80, 208, 0.08);
  color: var(--accent);
}

.cmp-module-card__icon img,
.cmp-module-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cmp-module-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cmp-module-card p {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted-60);
}

.cmp-module-card__badge {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 999px;
}
