/* ============ Tool-page SaaS skin ============
   Loaded AFTER style.min.css + saas.css + inline blocks,
   restyles legacy tool-page classes to match the SaaS homepage design. */

:root {
  --primary-dark: #1d4ed8;
}

/* ---- Back link ---- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color var(--transition);
}
.back-btn:hover { text-decoration: underline; }

/* ---- Legacy button fixes (old vars) ---- */
.btn-primary:hover { background: var(--primary-dark); }
.btn { font-family: inherit; }

/* ---- Lang switcher in nav (ensure visible & consistent on every page) ---- */
.saas-nav-actions .lang-switcher {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  margin-right: 10px;
}
.saas-nav-actions .lang-switcher .lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 9px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  background: var(--bg-card);
  text-decoration: none;
  transition: all var(--transition);
}
.saas-nav-actions .lang-switcher .lang-btn:hover {
  color: var(--text);
  border-color: var(--primary);
  background: var(--bg-elevated);
}
.saas-nav-actions .lang-switcher .lang-btn.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* ---- SaaS FAQ section (replaces old seo-content) ---- */
.saas-faq {
  padding: 3rem 1.5rem 4rem;
  background: var(--bg);
}
.saas-faq .section-title {
  display: block;
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  border-bottom: none;
  margin: 0 0 2rem;
  padding: 0;
}
.faq-section {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.faq-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color var(--transition);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  flex: none;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--transition);
}
.faq-item[open] > summary::after { content: "\2212"; background: var(--primary); color: #fff; }
.faq-item > summary:hover { color: var(--primary); }
.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}
