/* compare.css — comparison / alternative landing pages.
   Extends the shared design system in /blog/blog.css (same :root tokens,
   header.site, footer.site, .btn, .cta-band, typography). This file only
   adds the net-new components: compare hero, comparison table, differentiator
   grid, and the FAQ block. No new style system — same dark/gold tokens. */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.compare-hero {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--line);
}
.compare-hero .chip {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  font: 500 11px/1 "DM Mono", monospace; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.compare-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  color: var(--parchment); margin-bottom: 18px;
}
.compare-hero .value-prop {
  font-size: 1.18rem; color: rgba(245,241,232,.82); max-width: 660px; margin: 0 0 28px;
}
.compare-hero .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost {
  display: inline-block; padding: 14px 22px; border-radius: 12px;
  background: transparent; color: var(--gold); border: 1px solid var(--line);
  font-weight: 700; text-decoration: none; transition: border-color .15s ease, color .15s ease;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* ── Generic section ──────────────────────────────────────────────────── */
.section { padding: 44px 0; border-bottom: 1px solid var(--line); }
.section > h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--gold); margin: 0 0 10px;
}
.section .intro { color: rgba(245,241,232,.84); max-width: 680px; margin: 0 0 24px; }

/* ── Comparison table ─────────────────────────────────────────────────── */
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare {
  width: 100%; border-collapse: collapse; min-width: 520px;
  font-size: 0.96rem;
}
table.compare th, table.compare td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare thead th {
  font-family: "DM Mono", monospace; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
table.compare thead th.col-fk { color: var(--gold); }
table.compare tbody th {
  font-weight: 600; color: rgba(245,241,232,.92); font-family: "DM Sans", sans-serif;
}
table.compare td.col-fk { color: var(--gold-2); background: rgba(201,162,75,.06); }
table.compare td.col-other { color: rgba(245,241,232,.78); }
.tick { color: var(--gold); font-weight: 700; }
.cross { color: rgba(245,241,232,.40); }
.cell-note { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Differentiator grid ──────────────────────────────────────────────── */
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.diff-card {
  padding: 22px 22px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(245,241,232,.02);
}
.diff-card .kicker {
  font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.diff-card h3 {
  font-family: "Syne", sans-serif; letter-spacing: -0.01em;
  font-size: 1.5rem; color: var(--parchment); margin: 0 0 8px;
}
.diff-card p { color: rgba(245,241,232,.82); margin: 0; font-size: 0.95rem; }

/* ── Ranked list (roundup ItemList) ───────────────────────────────────── */
.rank-list { display: grid; gap: 16px; }
.rank-card {
  position: relative; padding: 24px 24px 24px 76px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(245,241,232,.02);
}
.rank-card.is-winner { border-color: rgba(201,162,75,.55); background: linear-gradient(135deg, rgba(201,162,75,.10), var(--black) 72%); }
.rank-card .rank-num {
  position: absolute; left: 20px; top: 22px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 10px;
  font-family: "Syne", sans-serif; font-size: 22px;
  background: rgba(245,241,232,.06); color: var(--gold); border: 1px solid var(--line);
}
.rank-card.is-winner .rank-num { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--black); border: none; }
.rank-card h3 {
  font-family: "Syne", sans-serif; letter-spacing: -0.01em;
  font-size: 1.7rem; color: var(--parchment); margin: 0 0 4px;
}
.rank-card .rank-tag {
  font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.rank-card p { color: rgba(245,241,232,.82); margin: 0; font-size: 0.96rem; }
.rank-card.is-winner .rank-tag { color: var(--gold-2); }

/* ── Criteria list (roundup) ──────────────────────────────────────────── */
.criteria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.criteria li {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(245,241,232,.02); color: rgba(245,241,232,.84); font-size: 0.94rem;
}
.criteria li strong { color: var(--gold); display: block; font-size: 0.95rem; margin-bottom: 2px; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 12px; background: rgba(245,241,232,.02);
  padding: 0 20px;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
  font-family: "Syne", sans-serif; letter-spacing: -0.01em;
  font-size: 1.3rem; color: var(--parchment);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 16px;
  font-family: "DM Mono", monospace; color: var(--gold); font-size: 1.3rem; transition: transform .15s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 0 20px; color: rgba(245,241,232,.84); font-size: 0.97rem; }
.faq-item .faq-a p { margin: 0 0 10px; }
.faq-item .faq-a p:last-child { margin: 0; }

/* ── Cross-links between compare pages ────────────────────────────────── */
.compare-links { padding: 40px 0 8px; }
.compare-links h4 { font-family: "Syne", sans-serif; letter-spacing: 0.06em; color: var(--gold); font-size: 1.1rem; margin: 0 0 16px; }
.compare-links .grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.compare-links a {
  display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(245,241,232,.02); color: var(--parchment); text-decoration: none;
}
.compare-links a:hover { border-color: var(--gold); }
.compare-links a strong { color: var(--gold); display: block; font-family: "Syne", sans-serif; letter-spacing: 0.04em; font-size: 1.05rem; }
.compare-links a span { color: rgba(245,241,232,.70); font-size: 13px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .diff-grid { grid-template-columns: 1fr; }
  .criteria { grid-template-columns: 1fr; }
  .compare-links .grid { grid-template-columns: 1fr; }
}
