:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #8b5cf6;
  --text-primary: #1a1a1a;
  --text-secondary: #525252;
  --muted: #737373;
  --bg: #fafafa;
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.tools-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.tools-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.tools-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.tools-brand:hover {
  text-decoration: none;
  opacity: 0.88;
}

.tools-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tools-nav a {
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
}
.tools-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

.tools-nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.tools-nav-cta:hover {
  background: var(--primary-hover) !important;
  color: #fff !important;
}

.tools-main {
  padding: 32px 0 56px;
}

.tools-page-root {
  min-height: 48vh;
}

.tools-hero {
  text-align: center;
  padding: 28px 0 36px;
  max-width: 760px;
  margin: 0 auto;
}

.tools-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.tools-hero-lead {
  margin: 0 0 24px;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.tools-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #818cf8 0%, var(--primary) 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tools-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  color: #fff;
  text-decoration: none;
}

.tools-section {
  margin-top: 40px;
}

.tools-section h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tools-intro p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 720px;
}
.tools-intro p:last-child {
  margin-bottom: 0;
}

.tools-features {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.tools-features ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}
.tools-features li {
  margin-bottom: 10px;
  padding-left: 4px;
}
.tools-features li:last-child {
  margin-bottom: 0;
}

.tools-expanded-wrap {
  margin-top: 8px;
}

.tools-expanded-loading {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}

.tools-expanded-loading-text {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.tools-skeleton-line {
  height: 13px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eee 0%, #e4e4e4 50%, #eee 100%);
  background-size: 220% 100%;
  animation: tools-shimmer 1.15s ease-in-out infinite;
  margin-bottom: 11px;
  width: 100%;
}

.tools-skeleton-line:nth-last-child(1) {
  width: 55%;
}

@keyframes tools-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.tools-expanded-root {
  margin-top: 0;
}

.tools-prose {
  max-width: 900px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px 28px;
  line-height: 1.8;
  font-size: 17px;
  box-shadow: var(--shadow);
}

.tools-prose h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  margin: 1.35em 0 0.65em;
  line-height: 1.3;
  color: var(--text-primary);
}

.tools-prose h2:first-child {
  margin-top: 0;
}

.tools-prose p {
  margin: 0 0 1em;
  color: #1f2937;
}

.tools-prose ul {
  margin: 0 0 1.1em 1.3em;
  color: #1f2937;
}

.tools-prose li {
  margin-bottom: 0.45em;
}

.tools-expanded-ai {
  margin-top: 0 !important;
}

.tools-use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tools-use-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tools-use-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tools-use-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.tools-faq {
  max-width: 720px;
}

.tools-faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.tools-faq-item summary {
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tools-faq-item summary::-webkit-details-marker {
  display: none;
}

.tools-faq-item summary::after {
  content: '+';
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.tools-faq-item[open] summary::after {
  content: '−';
}

.tools-faq-body {
  padding: 0 18px 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tools-cta-block {
  margin-top: 48px;
  padding: 28px 24px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid #c7d2fe;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #faf5ff 100%);
}

.tools-cta-block h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 800;
}

.tools-cta-block p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.tools-internal {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 28px;
}

@media (min-width: 720px) {
  .tools-internal {
    grid-template-columns: 1fr 1fr;
  }
}

.tools-internal h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.tools-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.tools-link-list a {
  font-weight: 500;
  display: inline-block;
}

.tools-fallback {
  text-align: center;
  padding: 48px 16px;
  max-width: 560px;
  margin: 0 auto;
}

.tools-fallback h1 {
  margin: 0 0 12px;
  font-size: 1.75rem;
}

.tools-fallback p {
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.tools-tool-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.tools-pill-link {
  display: inline-flex;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.tools-pill-link:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.tools-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  background: #fff;
}

.tools-footer-inner {
  text-align: center;
}

.tools-footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.tools-footer-copy a {
  font-weight: 500;
}

@media (max-width: 900px) {
  .tools-use-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tools-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }
  .tools-nav {
    width: 100%;
    justify-content: flex-start;
  }
}
