/* ============================================================
   TOOLBOX — content-page styles (comparison, listicle, about)
   These pages reuse the guide article shell (.guide-article,
   .guide-intro, .key-takeaway, .cta-box, .pro-referral, .faq-*,
   .symptom-chips — all styled in guide.css). This file adds the
   components unique to comparison/listicle pages.
   Load order: colors_and_type.css -> styles.css -> guide.css -> pages.css
   ============================================================ */

/* ---------- Comparison table ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--tb-s-6) 0 var(--tb-s-8);
  font-size: var(--tb-fs-sm);
  background: var(--tb-bg);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-r-lg);
  overflow: hidden;
  box-shadow: var(--tb-shadow-sm);
}
.compare-table th,
.compare-table td {
  padding: var(--tb-s-4);
  text-align: left;
  border-bottom: 1px solid var(--tb-divider);
  vertical-align: top;
}
.compare-table th {
  background: var(--tb-bg-cool);
  font-weight: var(--tb-fw-semibold);
  color: var(--tb-text-strong);
  font-size: var(--tb-fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tb-tr-wide);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .tool-name { font-weight: var(--tb-fw-semibold); color: var(--tb-text-strong); }

/* ---------- Tool / option card ---------- */
.tool-card {
  background: var(--tb-bg);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-r-xl);
  padding: var(--tb-s-6);
  margin: var(--tb-s-5) 0;
  box-shadow: var(--tb-shadow-sm);
}
.tool-card h3 {
  font-size: var(--tb-fs-h4);
  font-weight: var(--tb-fw-bold);
  color: var(--tb-text);
  margin: 0 0 var(--tb-s-1) 0;
}
.tool-card .tool-tagline {
  font-size: var(--tb-fs-sm);
  color: var(--tb-text-muted);
  font-style: italic;
  margin: 0 0 var(--tb-s-4) 0;
}
.tool-card .tool-pricing {
  display: inline-block;
  font-size: var(--tb-fs-xs);
  background: var(--tb-bg-cool);
  color: var(--tb-text-muted);
  padding: 4px 10px;
  border-radius: var(--tb-r-sm);
  margin-bottom: var(--tb-s-3);
}

@media (max-width: 640px) {
  .compare-table { font-size: var(--tb-fs-xs); }
  .compare-table th, .compare-table td { padding: var(--tb-s-3) var(--tb-s-2); }
}

/* ---------- Creator card (top-home-repair-creators) ---------- */
.creator-card {
  background: var(--tb-bg);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-r-xl);
  padding: var(--tb-s-6);
  margin: var(--tb-s-5) 0;
  box-shadow: var(--tb-shadow-sm);
}
.creator-card h3 { font-size: var(--tb-fs-h4); font-weight: var(--tb-fw-bold); color: var(--tb-text); margin: 0 0 var(--tb-s-1) 0; }
.creator-meta { font-size: var(--tb-fs-sm); color: var(--tb-text-muted); margin-bottom: var(--tb-s-3); }
.creator-meta span { margin-right: var(--tb-s-4); }
.creator-card p { margin: 0 0 var(--tb-s-3) 0; }
.creator-card p:last-child { margin-bottom: 0; }
.creator-link { display: inline-block; font-size: var(--tb-fs-sm); font-weight: var(--tb-fw-semibold); color: var(--tb-orange-700); text-decoration: none; }
.creator-link:hover { text-decoration: underline; }
.category-tag {
  display: inline-block; font-size: 11px; font-weight: var(--tb-fw-semibold);
  padding: 4px 10px; border-radius: var(--tb-r-sm);
  text-transform: uppercase; letter-spacing: var(--tb-tr-wide); margin-bottom: var(--tb-s-3);
}
.category-tag.plumbing   { background: #DBEAFE; color: #1D4ED8; }
.category-tag.electrical { background: var(--tb-heat-bg); color: #92500A; }
.category-tag.hvac       { background: var(--tb-safe-bg); color: #1B7F35; }
.category-tag.general    { background: #E0E7FF; color: #4338CA; }
.category-tag.tools      { background: #FCE7F3; color: #DB2777; }

/* ---------- About page ---------- */
.page-content { max-width: 800px; margin-inline: auto; padding: var(--tb-s-12) var(--tb-s-6) var(--tb-s-16); }
.page-content h1 { font-size: var(--tb-fs-h1); font-weight: var(--tb-fw-bold); color: var(--tb-text); line-height: var(--tb-lh-snug); letter-spacing: var(--tb-tr-tight); margin-bottom: var(--tb-s-6); text-wrap: balance; }
.page-content h2 { font-size: var(--tb-fs-h3); font-weight: var(--tb-fw-bold); color: var(--tb-text); margin: var(--tb-s-10) 0 var(--tb-s-3); }
.page-content p { color: var(--tb-text-muted); margin-bottom: var(--tb-s-4); }
.page-content .lead { font-size: var(--tb-fs-lg); color: var(--tb-text); line-height: var(--tb-lh-relaxed); margin-bottom: var(--tb-s-6); }
.page-content a { color: var(--tb-orange-700); }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--tb-s-6); margin: var(--tb-s-6) 0 var(--tb-s-8); }
.value-card { background: var(--tb-bg-cool); border: 1px solid var(--tb-border); border-radius: var(--tb-r-lg); padding: var(--tb-s-6); }
.value-card h3 { font-size: var(--tb-fs-body); font-weight: var(--tb-fw-semibold); color: var(--tb-text); margin-bottom: var(--tb-s-2); }
.value-card p { font-size: var(--tb-fs-sm); margin-bottom: 0; }
.cta-section { background: var(--tb-bg-cool); border: 1px solid var(--tb-border); border-radius: var(--tb-r-xl); padding: var(--tb-s-10); text-align: center; margin-top: var(--tb-s-12); }
.cta-section h2 { margin-top: 0; }
.cta-section .store-badges { justify-content: center; margin-top: var(--tb-s-5); }
@media (max-width: 640px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- Best-apps listicle (best-home-repair-apps) ---------- */
.article-content { max-width: 780px; margin-inline: auto; padding: 0 var(--tb-s-6) var(--tb-s-16); }
.article-content h1 { font-size: var(--tb-fs-h1); font-weight: var(--tb-fw-bold); color: var(--tb-text); line-height: var(--tb-lh-snug); letter-spacing: var(--tb-tr-tight); margin-bottom: var(--tb-s-2); text-wrap: balance; }
.article-meta { font-size: var(--tb-fs-sm); color: var(--tb-text-subtle); margin-bottom: var(--tb-s-6); }
.article-intro { font-size: var(--tb-fs-lg); line-height: var(--tb-lh-relaxed); color: var(--tb-text); margin-bottom: var(--tb-s-8); }
.article-content h2 { font-size: var(--tb-fs-h3); font-weight: var(--tb-fw-bold); color: var(--tb-text); margin: var(--tb-s-12) 0 var(--tb-s-4); }
.article-content h3 { font-size: var(--tb-fs-h4); font-weight: var(--tb-fw-semibold); color: var(--tb-text); margin: var(--tb-s-6) 0 var(--tb-s-3); }
.article-content p { color: var(--tb-text-muted); margin-bottom: var(--tb-s-4); }
.article-content a { color: var(--tb-orange-700); }
.app-card { background: var(--tb-bg); border: 1px solid var(--tb-border); border-radius: var(--tb-r-xl); padding: var(--tb-s-6); margin-bottom: var(--tb-s-6); box-shadow: var(--tb-shadow-sm); }
.app-card.featured { border: 2px solid var(--tb-orange); background: var(--tb-bg-warm); }
.app-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--tb-s-3); margin-bottom: var(--tb-s-3); }
.app-name { font-size: var(--tb-fs-h4); font-weight: var(--tb-fw-bold); color: var(--tb-text); }
.app-badge { font-size: 11px; font-weight: var(--tb-fw-semibold); padding: 4px 10px; border-radius: var(--tb-r-sm); text-transform: uppercase; letter-spacing: var(--tb-tr-wide); white-space: nowrap; }
.badge-diagnosis { background: var(--tb-orange-100); color: var(--tb-orange-700); }
.badge-pro { background: #EBF5FF; color: #2563EB; }
.badge-management { background: var(--tb-safe-bg); color: #16A34A; }
.badge-diy { background: var(--tb-heat-bg); color: #A16207; }
.app-tagline { font-size: var(--tb-fs-body); color: var(--tb-text-muted); margin-bottom: var(--tb-s-3); }
.app-details { font-size: var(--tb-fs-sm); line-height: var(--tb-lh-relaxed); color: var(--tb-text); margin-bottom: var(--tb-s-3); }
.app-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--tb-s-4); margin-top: var(--tb-s-3); }
.pros, .cons { font-size: var(--tb-fs-sm); line-height: 1.8; }
.pros span, .cons span { display: block; font-weight: var(--tb-fw-semibold); font-size: 12px; text-transform: uppercase; letter-spacing: var(--tb-tr-wide); margin-bottom: var(--tb-s-1); }
.pros span { color: #16A34A; }
.cons span { color: var(--tb-danger); }
.app-meta { display: flex; gap: var(--tb-s-5); margin-top: var(--tb-s-3); padding-top: var(--tb-s-3); border-top: 1px solid var(--tb-divider); font-size: var(--tb-fs-sm); color: var(--tb-text-muted); flex-wrap: wrap; }
.app-meta strong { color: var(--tb-text); }
.comparison-table-wrapper { overflow-x: auto; margin: var(--tb-s-6) 0 var(--tb-s-8); border-radius: var(--tb-r-lg); border: 1px solid var(--tb-border); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: var(--tb-fs-sm); }
.comparison-table th { background: var(--tb-text); color: #fff; padding: var(--tb-s-3) var(--tb-s-4); text-align: left; font-weight: var(--tb-fw-semibold); font-size: 12px; white-space: nowrap; }
.comparison-table td { padding: var(--tb-s-3) var(--tb-s-4); border-bottom: 1px solid var(--tb-divider); vertical-align: top; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) { background: var(--tb-bg-cool); }
.comparison-table .highlight-row { background: var(--tb-bg-warm) !important; font-weight: var(--tb-fw-medium); }
.check { color: #16A34A; font-weight: var(--tb-fw-semibold); }
.cross { color: var(--tb-danger); }
.cta-btn, .early-access-btn { display: inline-block; background: var(--tb-orange); color: #fff; text-decoration: none; padding: 14px 28px; border-radius: var(--tb-r-pill); font-size: var(--tb-fs-body); font-weight: var(--tb-fw-semibold); transition: background var(--tb-dur-base) var(--tb-ease); }
.cta-btn:hover, .early-access-btn:hover { background: var(--tb-orange-700); color: #fff; }

/* ---------- Guides index (listing page) ---------- */
.hub-hero { max-width: 880px; margin: 0 auto; padding: var(--tb-s-12) var(--tb-s-6) var(--tb-s-6); text-align: center; }
.hub-hero h1 { font-size: var(--tb-fs-h1); font-weight: var(--tb-fw-bold); color: var(--tb-text); letter-spacing: var(--tb-tr-tight); margin: 0 0 var(--tb-s-3); }
.hub-hero .subtitle { font-size: var(--tb-fs-lg); color: var(--tb-text-muted); line-height: var(--tb-lh-relaxed); margin: 0 auto; max-width: 640px; }
.hub-legend { max-width: 1120px; margin: 0 auto; padding: 0 var(--tb-s-6) var(--tb-s-8); display: flex; flex-wrap: wrap; gap: var(--tb-s-5); font-size: var(--tb-fs-sm); color: var(--tb-text-muted); justify-content: center; }
.hub-legend span { display: flex; align-items: center; gap: var(--tb-s-2); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-dot.green { background: #34C759; }
.legend-dot.yellow { background: #D97706; }
.legend-dot.red { background: #DC2626; }
.hub-section { max-width: 1120px; margin: 0 auto; padding: 0 var(--tb-s-6) var(--tb-s-10); }
.hub-section-header { display: flex; align-items: center; gap: var(--tb-s-3); margin-bottom: var(--tb-s-5); padding-bottom: var(--tb-s-3); border-bottom: 1px solid var(--tb-divider); }
.hub-section-icon { width: 44px; height: 44px; background: var(--tb-orange-100); border-radius: var(--tb-r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hub-section-icon svg { width: 22px; height: 22px; }
.hub-section-header h2 { font-size: var(--tb-fs-h3); font-weight: var(--tb-fw-bold); color: var(--tb-text); }
.hub-section-header .count { font-size: var(--tb-fs-sm); color: var(--tb-text-muted); font-weight: 400; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--tb-s-4); }
.guide-card { display: flex; align-items: flex-start; gap: var(--tb-s-3); padding: var(--tb-s-5); background: var(--tb-bg); border: 1px solid var(--tb-border); border-radius: var(--tb-r-lg); text-decoration: none; box-shadow: var(--tb-shadow-xs); transition: border-color var(--tb-dur-base) var(--tb-ease), transform var(--tb-dur-base) var(--tb-ease), box-shadow var(--tb-dur-base) var(--tb-ease); }
.guide-card:hover { border-color: var(--tb-orange); transform: translateY(-2px); box-shadow: var(--tb-shadow-md); }
.guide-card .card-badge { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.guide-card .card-badge.green { background: #34C759; }
.guide-card .card-badge.yellow { background: #D97706; }
.guide-card .card-badge.red { background: #DC2626; }
.guide-card .card-text h3 { font-size: var(--tb-fs-body); font-weight: var(--tb-fw-semibold); line-height: var(--tb-lh-snug); margin: 0 0 var(--tb-s-1); color: var(--tb-text); }
.guide-card .card-text .card-desc { font-size: var(--tb-fs-sm); color: var(--tb-text-muted); line-height: var(--tb-lh-snug); margin: 0; }
.hub-cta { max-width: 1120px; margin: 0 auto; padding: var(--tb-s-6) var(--tb-s-6) var(--tb-s-20); }
.hub-cta-inner { background: var(--tb-bg); border: 1px solid var(--tb-orange-100); border-radius: var(--tb-r-xl); padding: var(--tb-s-12) var(--tb-s-8); text-align: center; box-shadow: var(--tb-shadow-md); }
.hub-cta-inner h2 { font-size: var(--tb-fs-h2); font-weight: var(--tb-fw-bold); color: var(--tb-text); margin: 0 0 var(--tb-s-3); }
.hub-cta-inner p { font-size: var(--tb-fs-lg); color: var(--tb-text-muted); margin: 0 auto var(--tb-s-6); max-width: 500px; }
.hub-cta-inner .store-badges { justify-content: center; }
@media (max-width: 640px) { .guide-grid { grid-template-columns: 1fr; } }
