.brand-link {
  color: hsl(var(--foreground));
  text-decoration: none;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-wordmark span {
  color: hsl(var(--laser));
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 1rem;
}

.eyebrow,
.mini-eyebrow {
  margin: 0 0 0.85rem;
  color: hsl(var(--laser));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mini-eyebrow {
  margin-bottom: 0.45rem;
}

.compare-shell {
  display: grid;
  gap: 1.6rem;
  min-width: 0;
}

.legal-card.compare-shell {
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: none;
  box-shadow: none;
}

.legal-card.compare-shell::before {
  display: none;
}

.compare-section:first-of-type h2 {
  margin-top: 0;
}

.compare-shell > *,
.compare-section,
.comparison-table-shell,
.comparison-table-scroll {
  min-width: 0;
  max-width: 100%;
}

.compare-section + .compare-section {
  padding-top: 0.2rem;
}

.compare-detail-layout {
  display: grid;
  gap: 1.35rem;
  align-items: start;
}

.compare-detail-layout__section {
  min-width: 0;
}

.compare-detail-layout__section h2 {
  margin-top: 0;
}

.compare-section p:last-child,
.summary-card p:last-child,
.detail-card p:last-child {
  margin-bottom: 0;
}

.section-note {
  color: hsl(var(--muted-fg));
  font-size: 0.95rem;
}

.section-list {
  margin: 1rem 0 0 1.2rem;
  padding: 0;
}

.text-link {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.comparison-table-shell {
  position: relative;
  margin-top: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1.1rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, hsl(var(--laser) / 0.05), transparent 42%),
    hsla(var(--void) / 0.34);
}

.comparison-table-caption {
  padding: 1rem 1.25rem 0;
  color: hsl(var(--muted-fg));
  font-size: 0.9rem;
}

.comparison-table-scroll {
  display: block;
  width: 100%;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  overscroll-behavior-x: contain;
  padding-bottom: 0.35rem;
}

.comparison-table-shell::after {
  content: "";
  position: absolute;
  top: 0.85rem;
  right: 0;
  bottom: 0.85rem;
  width: 2rem;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, hsl(var(--void) / 0.38));
  z-index: 4;
}

.comparison-table {
  --comparison-app-column-bg: hsl(var(--steel));
  --comparison-app-column-width: 13rem;
  --comparison-club46-row-bg: linear-gradient(
    180deg,
    color-mix(in hsl, hsl(var(--laser)) 16%, hsl(var(--steel))),
    hsl(var(--steel))
  );

  width: 72rem;
  min-width: 72rem;
  max-width: none;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
  border-right: 1px solid hsl(var(--border));
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
  line-height: 1.45;
  background: hsla(var(--void) / 0.2);
}

.comparison-table thead th {
  position: sticky;
  top: 0;
  background: hsl(var(--steel));
  color: hsl(var(--foreground));
  font-size: 0.78rem;
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  z-index: 3;
  /* First row (header): laser accent under labels */
  border-bottom: 2px solid color-mix(in hsl, hsl(var(--laser)) 50%, hsl(var(--border)));
}

/* First column (app name): sticky + opaque fill (tune via --comparison-app-column-bg on .comparison-table) */
.comparison-table thead th:first-child,
.comparison-table tbody th {
  width: var(--comparison-app-column-width);
  min-width: var(--comparison-app-column-width);
  max-width: var(--comparison-app-column-width);
  background: var(--comparison-app-column-bg);
  vertical-align: middle;
}

.comparison-table thead th:first-child {
  left: 0;
  z-index: 5;
  box-shadow: 1px 0 0 hsl(var(--border)), 16px 0 20px -20px hsl(var(--void) / 0.85);
}

.comparison-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 1px 0 0 hsl(var(--border)), 16px 0 20px -20px hsl(var(--void) / 0.85);
}

.comparison-table thead th:last-child,
.comparison-table tbody td:last-child {
  min-width: 17rem;
}

.comparison-table thead th:not(:first-child):not(:last-child),
.comparison-table tbody td:not(:last-child) {
  min-width: 7.5rem;
}

.comparison-table tbody td:last-child {
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Club46 / first highlighted data row: same fill on app column + cells */
.comparison-table tbody tr.is-club46 th,
.comparison-table tbody tr.is-club46 td {
  background: var(--comparison-club46-row-bg);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table thead th:last-child,
.comparison-table tbody td:last-child {
  border-right: 0;
}

/* Whole app column hit target: inset from cell edges, logo + name + badge */
.comparison-table tbody th .app-cell--link {
  box-sizing: border-box;
  margin: 0.18rem 0.2rem;
  padding: 0.28rem 0.35rem;
  border-radius: 0.48rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.comparison-table tbody th .app-cell--link:hover {
  color: hsl(var(--laser));
  background: hsl(var(--laser) / 0.08);
}

.comparison-table tbody th .app-cell--link:focus-visible {
  outline: 2px solid hsl(var(--laser));
  outline-offset: 2px;
}

.app-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.app-cell--club46 {
  align-items: center;
  justify-content: flex-start;
}

/* Framed block for screenshots (compare detail pages); logos in the table stay unframed */
.app-cell__frame {
  flex-shrink: 0;
  padding: 0.22rem;
  border-radius: 0.7rem;
  line-height: 0;
  background: linear-gradient(
    155deg,
    hsl(0 0% 100% / 0.1) 0%,
    hsl(0 0% 100% / 0.02) 45%,
    hsl(0 0% 0% / 0.06) 100%
  );
  border: 1px solid hsl(var(--border) / 0.7);
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.14),
    0 1px 0 hsl(0 0% 0% / 0.35),
    0 5px 14px hsl(0 0% 0% / 0.22);
}

.app-cell__frame--laser {
  border-color: color-mix(in hsl, hsl(var(--laser)) 46%, hsl(var(--border)));
  box-shadow:
    inset 0 1px 0 hsl(var(--laser) / 0.22),
    0 0 0 1px hsl(var(--laser) / 0.14),
    0 4px 16px hsl(var(--void) / 0.45);
  background: linear-gradient(
    155deg,
    hsl(var(--laser) / 0.12) 0%,
    hsl(0 0% 100% / 0.03) 50%,
    hsl(0 0% 0% / 0.08) 100%
  );
}

.app-cell__frame--muted {
  border-color: hsl(var(--border) / 0.5);
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.07),
    0 2px 10px hsl(0 0% 0% / 0.14);
  background: linear-gradient(
    180deg,
    hsl(0 0% 100% / 0.05),
    hsl(0 0% 0% / 0.05)
  );
}

.app-cell__logo {
  flex-shrink: 0;
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  object-fit: contain;
}

.app-cell__club46-wordmark {
  display: block;
  width: 6rem;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
}

.app-cell__frame--screenshot {
  display: block;
  width: fit-content;
  max-width: min(36rem, 100%);
}

.compare-screenshot {
  margin: 0;
}

.compare-screenshot--aside {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  width: min(100%, 22rem);
  margin-inline: auto;
}

.compare-screenshot__frame {
  display: block;
  padding: 0.72rem;
  border: 1px solid hsl(var(--border) / 0.9);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, hsl(0 0% 100% / 0.06), hsl(0 0% 0% / 0.12)),
    hsl(var(--steel));
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.08),
    0 14px 34px hsl(0 0% 0% / 0.22);
}

.compare-screenshot__frame--laser {
  border-color: color-mix(in hsl, hsl(var(--laser)) 40%, hsl(var(--border)));
  box-shadow:
    inset 0 1px 0 hsl(var(--laser) / 0.16),
    0 16px 36px hsl(var(--void) / 0.3);
}

.compare-screenshot__frame--muted {
  border-color: hsl(var(--border) / 0.75);
}

.compare-screenshot__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.85rem;
  background: hsl(var(--void));
}

@media (max-width: 767px) {
  .app-cell__frame {
    padding: 0.18rem;
    border-radius: 0.62rem;
  }

  .app-cell__logo {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.45rem;
  }

  .app-cell__club46-wordmark {
    width: 5.1rem;
  }

  .app-cell {
    gap: 0.55rem;
  }
}

@media (min-width: 1024px) {
  .app-cell__frame {
    padding: 0.26rem;
    border-radius: 0.75rem;
  }

  .app-cell__logo {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.52rem;
  }

  .app-cell__club46-wordmark {
    width: 6.4rem;
  }
}

.app-cell__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}

.app-cell__name {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
}

.row-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.55rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: hsl(var(--laser) / 0.15);
  color: hsl(var(--laser));
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.support-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  min-height: 1.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.support-pill-yes {
  background: hsl(var(--laser) / 0.15);
  color: hsl(var(--laser));
}

.support-pill-limited {
  background: hsl(42 100% 62% / 0.14);
  color: hsl(42 95% 68%);
}

.support-pill-no {
  background: hsl(0 0% 100% / 0.07);
  color: hsl(var(--muted-fg));
}

@media (max-width: 1023px) {
  .compare-shell {
    gap: 1.35rem;
  }

  .compare-section + .compare-section {
    padding-top: 0.1rem;
  }

  .comparison-table {
    --comparison-app-column-width: 12rem;
    width: 64rem;
    min-width: 64rem;
  }

  .comparison-table thead th:last-child,
  .comparison-table tbody td:last-child {
    min-width: 14.5rem;
  }

  .comparison-table thead th:not(:first-child):not(:last-child),
  .comparison-table tbody td:not(:last-child) {
    min-width: 6.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.74rem 0.6rem;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .comparison-table thead th {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .app-cell__name {
    font-size: 0.86rem;
  }

  .support-pill {
    min-width: 3.5rem;
    font-size: 0.66rem;
  }
}

@media (max-width: 767px) {
  .compare-shell {
    gap: 1.15rem;
  }

  .comparison-table-caption {
    padding: 0.8rem 0.9rem 0;
    font-size: 0.76rem;
  }

  .comparison-table {
    --comparison-app-column-width: 11rem;
    width: 58rem;
    min-width: 58rem;
  }

  .comparison-table thead th:last-child,
  .comparison-table tbody td:last-child {
    min-width: 12.5rem;
  }

  .comparison-table thead th:not(:first-child):not(:last-child),
  .comparison-table tbody td:not(:last-child) {
    min-width: 6.2rem;
  }

  .comparison-table tbody td:last-child {
    font-size: 0.76rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.66rem 0.52rem;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .comparison-table thead th {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }

  .app-cell__name {
    font-size: 0.78rem;
  }

  .support-pill {
    min-width: 3.1rem;
    min-height: 1.65rem;
    padding: 0.24rem 0.46rem;
    font-size: 0.6rem;
  }

  .row-badge {
    margin-left: 0.4rem;
    padding-inline: 0.45rem;
    font-size: 0.66rem;
  }
}

.decision-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.highlight-card {
  border-color: hsl(var(--laser) / 0.3);
  background:
    linear-gradient(180deg, hsl(var(--laser) / 0.08), transparent 50%),
    hsla(var(--void) / 0.34);
}

@media (min-width: 768px) {
  .compare-screenshot--aside {
    width: min(100%, 24rem);
  }

  .decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .compare-detail-layout--with-screenshot {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    gap: 1.75rem;
  }

  .compare-detail-layout__section {
    grid-column: 1;
  }

  .compare-detail-layout__aside {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .compare-screenshot--aside {
    justify-self: end;
    margin-inline: 0;
    width: min(100%, 24rem);
  }
}
