/* Free Alternatives pages: comparison layout. Builds on tool.css tokens. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alt-hero { max-width: 820px; }
.alt-hero .h-section { margin: 10px 0 12px; }
.alt-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.alt-meta { margin: 14px 0 0; font-size: var(--fs-small); color: var(--text-2); }
.alt-disclosure { margin: 10px 0 0; font-size: var(--fs-small); color: var(--text-2); }

/* Ad placeholders: invisible until ads are switched on (see ADSENSE_CLIENT in scripts/build.mjs) */
.ad-slot { display: none; }
.ad-slot.is-live { display: block; max-width: 970px; min-height: 120px; margin: 24px auto; padding-inline: 16px; text-align: center; }
.ad-slot.is-live::before { content: "Advertisement"; display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }

.alt-verdict, .alt-proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.alt-card { padding: 24px; background: var(--surface); border-radius: var(--r-lg); border: 2px solid var(--border-strong); box-shadow: var(--shadow-card); }
.alt-card h3 { margin: 0 0 12px; font-size: 20px; }
.alt-card ul { margin: 0 0 18px; padding-inline-start: 1.3em; list-style: disc; color: var(--text-2); line-height: 1.6; }
.alt-card li + li { margin-top: 8px; }
.alt-card-free { border-color: var(--teal); }
.alt-pros, .alt-cons { list-style: none !important; padding-inline-start: 0 !important; margin-bottom: 0 !important; }
.alt-pros li, .alt-cons li { position: relative; padding-inline-start: 26px; }
.alt-pros li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: #1E8449; font-weight: 800; }
.alt-cons li::before { content: "!"; position: absolute; inset-inline-start: 4px; color: var(--coral-dark); font-weight: 800; }

.cmp-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 2px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-card); }
.cmp-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.cmp-table th, .cmp-table td { padding: 14px 18px; text-align: start; vertical-align: top; border-bottom: 1px dashed var(--border-strong); }
.cmp-table thead th { background: var(--teal-bg); font-weight: 800; border-bottom: 2px solid var(--border-strong); }
.cmp-table tbody th { width: 20%; font-weight: 800; color: var(--text); }
.cmp-table tr:last-child > * { border-bottom: 0; }
.cmp-table tr.is-key th { background: rgba(43, 168, 162, .08); }
.cmp-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 10px; border-radius: var(--r-round); background: var(--chip-bg); color: var(--chip-text); font-size: 12px; font-weight: 800; }
.cmp-cell.is-win { background: rgba(39, 174, 96, .12); }
.cmp-win { display: inline-block; margin-bottom: 4px; padding: 1px 10px; border-radius: var(--r-round); background: #1E8449; color: #fff; font-size: 12px; font-weight: 800; }
.alt-note { margin: 14px 0 0; font-size: var(--fs-small); color: var(--text-2); }

.alt-final { margin-bottom: 40px; padding: 32px; text-align: center; background: var(--teal-bg); border-radius: var(--r-lg); border: 2px dashed var(--border-strong); }
.alt-final .sub { margin: 8px 0 18px; }
.alt-more-title { margin: 36px 0 16px; font-size: 22px; }
.alt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.alt-grid-lg { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.alt-link { display: block; padding: 18px 20px; background: var(--surface); border-radius: var(--r-lg); border: 2px solid var(--border-strong); box-shadow: var(--shadow-card); color: var(--text); text-decoration: none; transition: transform .15s; }
.alt-link:hover { transform: translateY(-2px); border-color: var(--teal); }
.alt-link strong { display: block; margin-bottom: 4px; font-size: 17px; }
.alt-link span { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.alt-legal { margin: 32px 0 0; font-size: 13px; color: var(--text-2); }

@media (max-width: 700px) {
  .cmp-wrap { overflow: visible; border: 0; background: none; box-shadow: none; }
  .cmp-table { min-width: 0; }
  .cmp-table thead { display: none; }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; width: auto; }
  .cmp-table tr { margin-bottom: 16px; background: var(--surface); border: 2px solid var(--border-strong); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
  .cmp-table tbody th { width: auto; padding: 12px 16px; background: var(--teal-bg); border-bottom: 2px solid var(--border-strong); }
  .cmp-table td { padding: 12px 16px; border-bottom: 1px dashed var(--border-strong); }
  .cmp-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
  .cmp-table tr:last-child > * { border-bottom: 1px dashed var(--border-strong); }
  .cmp-table tr > td:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  .alt-verdict, .alt-proscons { grid-template-columns: minmax(0, 1fr); }
  .alt-cta .btn { flex: 1 1 100%; justify-content: center; }
  .alt-card { padding: 20px; }
}
