/* ═══════════════════════════════════════════════════════════════
   compare.css — /compare/ series template
   Built on the site token system (styles.css :root vars).
   Zero new visual language: same beige/gold/emerald light mode,
   same dark mode via html.dark, same fonts + kicker + btn classes.
   ═══════════════════════════════════════════════════════════════ */

.compare-page { padding-bottom: 0; }

/* ── Compare hero: clears the fixed site header ── */
.compare-hero { padding: 140px 0 40px; }
.compare-hero-inner { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.compare-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 12px 0 18px; }
.compare-hero .hero-sub { font-size: 17px; line-height: 1.7; color: var(--text-muted); max-width: 720px; }
.compare-hero .compare-arrived { font-size: 15px; line-height: 1.7; color: var(--text-faint); max-width: 720px; margin-top: 14px; }

/* ── Section scaffolding ── */
.compare-section { padding: 56px 0; }
.compare-section-inner { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.compare-section h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 10px 0 22px; }
.compare-section p.body-text { margin: 0 0 18px; }
.compare-section p.body-text:last-child { margin-bottom: 0; }

/* ── The measures table: signature element ── */
.measures-wrap { overflow-x: auto; margin: 26px 0 8px; }
table.measures {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  min-width: 560px;
}
table.measures caption { caption-side: top; text-align: left; padding: 0 0 12px; font-size: 13px; color: var(--text-faint); font-family: var(--font-mono); }
table.measures th, table.measures td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}
table.measures thead th {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-inset);
  border-bottom: 2px solid var(--border-gold);
}
table.measures tbody tr:last-child td { border-bottom: none; }
table.measures td:first-child { font-weight: 500; color: var(--text); width: 34%; }
table.measures td:nth-child(2), table.measures th:nth-child(2) { color: var(--text-muted); }
table.measures td:nth-child(3) { color: var(--text-muted); }
.measures-em { color: var(--gold-deep); font-weight: 600; }
html.dark .measures-em { color: var(--gold-bright); }
.measures-none { color: var(--text-faint); }
.measures-note { font-size: 13.5px; color: var(--text-faint); margin-top: 14px; line-height: 1.6; }

/* ── Decision cards: when to choose X / Y / both ── */
.decision-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 26px; }
.decision-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  padding: 26px 26px 22px;
  position: relative;
}
.decision-card.before { border-top: 3px solid var(--border-gold); }
.decision-card.emrald { border-top: 3px solid var(--gold); }
.decision-card.both { border-top: 3px solid var(--gold-deep); }
.decision-card h3 { font-size: 1.15rem; margin: 0 0 12px; }
.decision-card p { font-size: 14.5px; line-height: 1.7; color: var(--text-muted); margin: 0; }

/* ── Conclusion band ── */
.compare-conclusion { padding: 56px 0; }
.compare-conclusion-inner { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.compare-verdict {
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  background: var(--bg-alt);
  padding: 30px 30px;
  position: relative;
}
.compare-verdict .verdict-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 10px;
}
html.dark .compare-verdict .verdict-kicker { color: var(--gold-bright); }
.compare-verdict p { font-size: 15px; line-height: 1.75; color: var(--text); margin: 0 0 16px; }
.compare-verdict p:last-child { margin-bottom: 0; }

/* ── Demand-sensor CTA ── */
.demand-cta {
  margin-top: 26px;
  padding: 22px 26px;
  border: 1px dashed var(--border-gold);
  border-radius: 8px;
  background: var(--bg-inset);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.demand-cta p { margin: 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }
.demand-cta .btn-primary { white-space: nowrap; }

/* ── How-to steps ── */
.howto-list { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: howto; }
.howto-list li {
  counter-increment: howto;
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}
.howto-list li:last-child { border-bottom: none; }
.howto-list li::before {
  content: counter(howto, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-deep);
  padding-top: 3px;
  flex-shrink: 0;
}
html.dark .howto-list li::before { color: var(--gold-bright); }

/* ── FAQ: gold-ruled accordion, mirrors the /learn pattern ── */
.compare-faq { margin-top: 8px; }
.compare-faq .accordion { margin-bottom: 18px; border: 1px solid rgba(201, 169, 110, 0.7); border-radius: 8px; overflow: hidden; background: var(--bg-alt); }
html.dark .compare-faq .accordion { background: var(--bg-card); }
.compare-faq .accordion-header { width: 100%; text-align: left; border: none; background: none; color: inherit; font: inherit; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px; cursor: pointer; transition: background-color .2s ease; }
.compare-faq .accordion-header:hover { background: var(--bg-inset); }
.compare-faq .accordion-header h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.compare-faq .accordion-chevron { width: 18px; height: 18px; color: var(--gold-deep); transition: transform .2s ease; flex-shrink: 0; }
html.dark .compare-faq .accordion-chevron { color: var(--gold-bright); }
.compare-faq .accordion.open .accordion-chevron { transform: rotate(180deg); }
.compare-faq .accordion-body { display: none; padding: 4px 26px 26px; }
.compare-faq .accordion.open .accordion-body { display: block; }
.compare-faq .accordion-body p { font-size: 14.5px; line-height: 1.7; color: var(--text-muted); margin: 0 0 12px; }
.compare-faq .accordion-body p:last-child { margin-bottom: 0; }

/* ── Freshness stamp + hub link ── */
.compare-stamp {
  padding: 26px 0 40px;
  border-top: 1px solid var(--border);
}
.compare-stamp-inner { max-width: 880px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }
.compare-stamp-inner a { color: var(--gold-deep); }
html.dark .compare-stamp-inner a { color: var(--gold-bright); }

/* ── Hub stub ── */
.hub-list { margin-top: 28px; }
.hub-item {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  padding: 26px 28px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease;
}
.hub-item:hover { border-color: var(--border-gold); }
.hub-item h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 8px; color: var(--text); }
.hub-item p { font-size: 14.5px; color: var(--text-muted); margin: 0; line-height: 1.65; }

@media (max-width: 640px) {
  .compare-hero { padding: 120px 0 28px; }
  .compare-section { padding: 40px 0; }
  .demand-cta { flex-direction: column; align-items: flex-start; }
}
