/* ToolsStackHQ — Professional Stylesheet */

/* ========== TYPOGRAPHY ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Newsreader:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-50: #eef2ff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --surface: #ffffff;
  --surface-alt: #f9fafb;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --accent: #f59e0b;
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* ========== EDITORIAL TYPOGRAPHY ========== */
.editorial-intro {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.editorial-intro strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ========== CUSTOM COMPONENTS ========== */

/* Logo mark */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-mark .mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark .wordmark {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-mark .wordmark span {
  color: var(--text-muted);
  font-weight: 500;
}

/* Subtle gradient backgrounds */
.bg-mesh {
  background-color: #fafbff;
  background-image:
    radial-gradient(at 20% 20%, rgba(99, 102, 241, 0.04) 0px, transparent 60%),
    radial-gradient(at 80% 50%, rgba(245, 158, 11, 0.03) 0px, transparent 60%),
    radial-gradient(at 40% 80%, rgba(99, 102, 241, 0.03) 0px, transparent 60%);
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.1);
}

/* Role icon containers */
.role-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Tag pills */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.01em;
}

.tag-brand { background: #eef2ff; color: #4338ca; }
.tag-green { background: #ecfdf5; color: #065f46; }
.tag-amber { background: #fffbeb; color: #92400e; }
.tag-gray  { background: #f3f4f6; color: #6b7280; }

/* CTA buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-600);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--brand-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--brand-600);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1.5px solid #c7d2fe;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--brand-50);
  border-color: var(--brand-600);
}

/* Comparison tables */
.comp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.comp-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  background: var(--surface-alt);
}

.comp-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.comp-table tr:last-child td { border-bottom: none; }

.comp-table tbody tr:hover { background: #fafbff; }

.comp-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* Verdict box */
.verdict {
  border-left: 3px solid var(--brand-600);
  background: var(--surface-alt);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
}

/* Quick picks grid */
.quick-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.quick-pick .category {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.quick-pick .tool-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

/* Scroll wrapper for tables on mobile */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.table-scroll table { min-width: 600px; }

/* Feature check/x marks */
.check { color: #059669; font-weight: 600; }
.cross { color: #d1d5db; }

/* Section divider */
.section-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 3rem 0;
}

/* Prose */
.prose-custom p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose-custom h2 {
  color: var(--text-primary);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose-custom h3 {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Email form */
.email-form input[type="email"] {
  outline: none;
  transition: box-shadow 0.15s ease;
}

.email-form input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* FAQ Accordion */
details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker { display: none; }

details summary::before {
  content: "+";
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-right: 12px;
  transition: transform 0.2s;
}

details[open] summary::before {
  content: "−";
  color: var(--brand-600);
}

/* Number badges (for how-it-works) */
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}
