/* SoftStack Theme — matches landing page design tokens */

/* ─── Variables ─── */
:root {
  --bg: #0b0f1a;
  --surface: #131929;
  --surface2: #1a2235;
  --accent: #f59e0b;
  --accent-dim: rgba(245,158,11,0.12);
  --fg: #f1f5f9;
  --fg-muted: #94a3b8;
  --fg-subtle: #64748b;
  --border: rgba(148,163,184,0.1);
  --radius: 10px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── Nav ─── */
.top-nav {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(11,15,26,0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.top-nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--fg-muted); text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: var(--fg); }

/* ─── Page Header ─── */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.page-header.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.page-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 16px;
}
.page-header p { font-size: 1.1rem; color: var(--fg-muted); max-width: 600px; }

/* ─── Product Grid ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

/* ─── Product Card ─── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 0 0 1px rgba(245,158,11,0.1), 0 8px 24px rgba(0,0,0,0.3);
}
.product-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface2);
  padding: 4px;
}
.product-logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.product-name { font-size: 1rem; font-weight: 600; color: var(--fg); }
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { color: var(--accent); }
.product-tagline { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.5; flex-grow: 1; }
.product-rating { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; }
.rating-stars { color: var(--accent); letter-spacing: 1px; }
.rating-value { color: var(--fg); font-weight: 600; }
.review-count { color: var(--fg-subtle); }
.product-pricing { font-size: 0.85rem; color: var(--fg-muted); }
.btn-affiliate {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
}
.btn-affiliate:hover { background: rgba(245,158,11,0.25); }

/* ─── Comparison Table ─── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 48px;
}
.comparison-table th,
.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.comparison-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-family: 'Outfit', sans-serif;
}
.comparison-table thead th:first-child { color: transparent; }
.comparison-table tbody tr:hover { background: var(--surface); }
.comparison-table .product-header { min-width: 180px; }
.comparison-table .product-name-cell {
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}
.comparison-table .product-name-cell:hover { color: var(--accent); }
.comparison-table .product-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--surface2);
  margin-bottom: 8px;
}
.comparison-table .feature-check { color: var(--accent); font-size: 1.1rem; }
.comparison-table .feature-x { color: var(--fg-subtle); }
.comparison-table .feature-text { font-size: 0.85rem; color: var(--fg-muted); }

/* ─── CTA Banner ─── */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-bottom: 64px;
}
.cta-banner h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-banner p { color: var(--fg-muted); margin-bottom: 24px; }

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--fg-muted);
}
.empty-state h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--fg); }

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 64px;
}
.site-footer p { font-size: 0.8rem; color: var(--fg-subtle); }

/* ─── Feature List ─── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}
.feature-list .check { color: var(--accent); font-weight: 700; }

/* ─── Badge ─── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-featured { background: var(--accent-dim); color: var(--accent); }

/* ─── FAQ Section ─── */
.faq-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.faq-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--fg);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.faq-item p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ─── Product Detail Layout ─── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}
.detail-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.detail-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--fg);
}
.detail-section p {
  color: var(--fg-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
.pricing-highlight {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.related-item:hover { background: var(--surface2); }
.related-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--surface2);
  padding: 2px;
}
.related-logo-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ─── Pricing Page ─── */
.pricing-category { margin-bottom: 64px; }
.category-heading {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.category-desc { font-size: 0.9rem; color: var(--fg-muted); margin-bottom: 24px; }

.pricing-table-wrap { overflow-x: auto; }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.pricing-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.pricing-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.pricing-table tbody tr:hover { background: var(--surface); }
.pricing-table td { padding: 16px; vertical-align: middle; }

.product-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.table-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--surface2);
  padding: 4px;
  flex-shrink: 0;
}
.table-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.product-link {
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
}
.product-link:hover { color: var(--accent); }
.product-tagline-cell { font-size: 0.78rem; color: var(--fg-muted); margin-top: 2px; }
.review-count-cell { font-size: 0.75rem; color: var(--fg-subtle); margin-top: 2px; }
.pricing-cell { white-space: nowrap; }
.pricing-value { font-size: 0.9rem; font-weight: 600; color: var(--fg); }
.pricing-unknown { font-size: 0.85rem; color: var(--fg-subtle); }
.cta-cell { white-space: nowrap; text-align: right; }
.btn-secondary {
  display: inline-block;
  padding: 8px 16px;
  background: var(--surface2);
  color: var(--fg-muted);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--border); color: var(--fg); }

/* ─── Affiliate Disclosure ─── */
.disclosure-content { max-width: 680px; }
.disclosure-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.disclosure-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.disclosure-section p { font-size: 0.95rem; color: var(--fg-muted); line-height: 1.7; }
.disclosure-section strong { color: var(--fg); }
.disclosure-section a { color: var(--accent); }

/* ─── Editorial Section (comparison page markdown) ─── */
.editorial-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 48px;
}
.editorial-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin: 28px 0 16px;
  line-height: 1.3;
}
.editorial-section h2:first-child { margin-top: 0; }
.editorial-section h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin: 24px 0 12px;
}
.editorial-section p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.editorial-section ul {
  list-style: none;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.editorial-section ul li {
  font-size: 0.9rem;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}
.editorial-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
}
.editorial-section strong {
  color: var(--fg);
  font-weight: 600;
}
.editorial-section .best-for-label {
  color: var(--accent);
  font-weight: 600;
  font-style: normal;
}
.editorial-section .what-to-know {
  background: var(--surface2);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--fg-muted);
  border-left: 3px solid var(--accent);
  margin: 8px 0;
}
@media (max-width: 640px) {
  .comparison-table { font-size: 0.85rem; }
  .comparison-table th, .comparison-table td { padding: 10px 8px; }
  .page-header h1 { font-size: 1.75rem; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .pricing-table-wrap { overflow-x: auto; }
}