/* ==============================================================
   RunSpection — comparison page styles
   Used by /compare/ and /compare/runspection-vs-<slug>/
   ============================================================== */

/* ------ At-a-glance side-by-side card ------ */
.glance {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 860px) {
  .glance { grid-template-columns: minmax(0, 1fr); }
}

.glance-col { padding: 32px; }
.glance-col.us { background: var(--card); }
.glance-col.them { background: var(--card-subtle); border-left: 1px solid var(--border); }
@media (max-width: 860px) {
  .glance-col.them { border-left: none; border-top: 1px solid var(--border); }
  .glance-col { padding: 28px 24px; }
}

.glance-tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.glance-col.us .glance-tag { color: var(--brand); background: var(--brand-soft); }
.glance-col.them .glance-tag { color: var(--muted-foreground); background: var(--muted); }

.glance-col h3 {
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 10px;
  line-height: 1.2;
  text-wrap: balance;
}
.glance-col p {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.6;
  text-wrap: pretty;
  margin-bottom: 18px;
}

.glance-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.glance-list li {
  font-size: 13.5px; line-height: 1.5;
  padding-left: 24px; position: relative;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  color: var(--foreground);
}
.glance-list li::before {
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
  font-family: var(--f-mono);
  content: "✓";
}
.glance-col.us .glance-list li::before {
  background: var(--brand-soft); color: var(--brand);
}
.glance-col.them .glance-list li::before {
  background: var(--muted); color: var(--muted-foreground);
}

/* ------ Detailed comparison table ------ */
.compare-table-wrap {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table thead th {
  text-align: left;
  font-size: 12px;
  font-family: var(--f-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  padding: 16px 20px;
  background: var(--card-subtle);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.compare-table thead th.col-us {
  color: var(--brand);
}
.compare-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
  text-wrap: pretty;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--card-subtle); }

.compare-table .row-label {
  font-weight: 500;
  color: var(--foreground);
  width: 36%;
}
.compare-table .col-us {
  color: var(--foreground);
}
.compare-table .col-them {
  color: var(--muted-foreground);
}

.cell-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  margin-right: 8px;
  vertical-align: -3px;
}
.cell-icon.yes { background: var(--brand-soft); color: var(--brand); }
.cell-icon.no { background: var(--danger-soft); color: var(--danger); font-size: 13px; }
.cell-icon.partial { background: var(--gold-soft); color: var(--gold); font-size: 14px; line-height: 1; }

.cell-text { display: inline; }

/* Responsive: stack to card layout on small screens */
@media (max-width: 720px) {
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td {
    display: block;
    width: 100%;
  }
  .compare-table tr {
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
  }
  .compare-table tr:last-child { border-bottom: none; }
  .compare-table tbody td {
    border-bottom: none;
    padding: 6px 20px;
  }
  .compare-table .row-label {
    width: 100%;
    font-size: 12px;
    font-family: var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    padding-bottom: 8px;
  }
  .compare-table .col-us::before {
    content: "RunSpection ";
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--brand);
    font-weight: 500;
    margin-right: 6px;
  }
  .compare-table .col-them::before {
    content: "Them ";
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--muted-foreground);
    font-weight: 500;
    margin-right: 6px;
  }
}

/* ------ Deep-dive content blocks ------ */
.dive {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
@media (max-width: 860px) {
  .dive { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 40px; }
}
.dive-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.dive-card .dive-tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}
.dive-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--foreground);
  line-height: 1.3;
}
.dive-card p {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.6;
  text-wrap: pretty;
}
.dive-card p strong { color: var(--foreground); font-weight: 500; }

/* ------ "When to pick what" honest section ------ */
.verdict {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .verdict { grid-template-columns: minmax(0, 1fr); }
}
.verdict-card {
  background: var(--card-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}
.verdict-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.012em;
  margin-bottom: 10px;
}
.verdict-card.us h3 { color: var(--brand); }
.verdict-card p {
  font-size: 13.5px;
  color: var(--muted-foreground);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ------ FAQ ------ */
.faq-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 720px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.faq-item h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.012em;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 13.5px;
  color: var(--muted-foreground);
  line-height: 1.6;
  text-wrap: pretty;
}
.faq-item a { color: var(--brand); font-weight: 500; }

/* ------ "Compared to" footer nav grid ------ */
.compare-nav {
  background: var(--card-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--section-pad) 0;
}
.compare-nav-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 960px) {
  .compare-nav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .compare-nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .compare-nav-grid { grid-template-columns: minmax(0, 1fr); }
}
.compare-nav-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.compare-nav-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.compare-nav-card.current {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.compare-nav-card .cn-vs {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.compare-nav-card .cn-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  letter-spacing: -0.01em;
}
.compare-nav-card.current .cn-name { color: var(--brand); }

/* ------ Long-form prose block ------ */
.prose {
  max-width: 720px;
  margin: 40px auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--foreground);
}
.prose p { margin-bottom: 16px; color: var(--muted-foreground); text-wrap: pretty; }
.prose p strong { color: var(--foreground); font-weight: 500; }
.prose h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--foreground);
  margin: 28px 0 10px;
}
