/* Tools index */
.tools-hero {
  text-align: center;
  padding: 64px 24px 40px;
  max-width: 900px;
  margin: 0 auto;
}
.tools-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tools-hero h1 {
  font-size: 46px;
  font-weight: 800;
  margin: 0 0 16px;
  color: #111827;
  line-height: 1.05;
}
.tools-hero p {
  font-size: 18px;
  color: var(--muted, #6b7280);
  margin: 0;
  line-height: 1.55;
}
.tool-clusters {
  max-width: 1120px;
  margin: 0 auto 30px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tool-cluster {
  display: block;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: inherit;
  background: #fff;
  text-decoration: none;
}
.tool-cluster:hover {
  border-color: #a5b4fc;
  box-shadow: 0 8px 20px rgba(17,24,39,0.06);
}
.tool-cluster strong {
  display: block;
  color: #111827;
  font-size: 15px;
  margin-bottom: 6px;
}
.tool-cluster span {
  display: block;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}
.tools-grid-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.tools-category {
  margin-bottom: 42px;
  scroll-margin-top: 90px;
}
.tools-category-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}
.tools-category-head h2 {
  margin: 0;
  color: #111827;
  font-size: 24px;
}
.tools-category-head span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.tool-card {
  display: block;
  padding: 28px 24px;
  border-radius: 8px;
  background: white;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #c7d2fe;
}
.tool-card-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.tool-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #111827;
}
.tool-card-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 16px;
  line-height: 1.5;
}
.tool-card-cat {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}
.tools-seo {
  margin: 12px 0 0;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.tools-seo h2 {
  margin: 0 0 12px;
  font-size: 24px;
  color: #111827;
}
.tools-seo p {
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.7;
}
.tools-seo p:last-child { margin-bottom: 0; }

/* Tool page */
.tool-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.tool-page-inner { padding: 0; }
.breadcrumb {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}
.breadcrumb a { color: #6366f1; text-decoration: none; }
.breadcrumb span { margin: 0 6px; }
.tp-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #111827;
  line-height: 1.2;
}
.tp-sub {
  font-size: 17px;
  color: #6b7280;
  margin: 0 0 32px;
  line-height: 1.5;
}

/* Form */
.tool-form {
  background: white;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 32px;
}
.tf-row { margin-bottom: 18px; }
.tf-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.tf-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: white;
  box-sizing: border-box;
  transition: border 0.15s;
}
.tf-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.tf-textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.btn-generate {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 8px;
}
.btn-generate:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(99,102,241,0.3); }
.btn-generate:disabled { opacity: 0.6; cursor: not-allowed; }
.tf-meta {
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
  margin-top: 12px;
}

/* Output */
.tool-output {
  background: #f9fafb;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 40px;
}
.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.output-header h2 { font-size: 18px; margin: 0; color: #111827; }
.output-actions { display: flex; gap: 8px; }
.btn-copy-output, .btn-regenerate {
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #374151;
}
.btn-copy-output:hover, .btn-regenerate:hover { background: #f3f4f6; }
.output-text {
  font-size: 16px;
  line-height: 1.7;
  color: #1f2937;
  white-space: pre-wrap;
  font-family: Georgia, 'Times New Roman', serif;
}

/* Supporting content sections */
.tp-section {
  margin-bottom: 36px;
  padding-top: 8px;
}
.tp-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #111827;
}
.steps { display: flex; flex-direction: column; gap: 14px; }
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #6366f1;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.step-text { font-size: 14px; color: #6b7280; line-height: 1.5; margin-top: 4px; }
.tip-list, .mistake-list { padding-left: 22px; line-height: 1.7; color: #374151; }
.tip-list li, .mistake-list li { margin-bottom: 6px; }
.examples { display: flex; flex-direction: column; gap: 12px; }
.ex-item { padding: 14px 16px; background: white; border-radius: 8px; border: 1px solid #e5e7eb; }
.ex-meta { font-size: 12px; color: #6366f1; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.ex-snippet { font-size: 15px; line-height: 1.5; color: #4b5563; font-style: italic; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 16px; background: white; border-radius: 8px; border: 1px solid #e5e7eb; }
.faq-q { font-weight: 600; color: #111827; margin-bottom: 6px; font-size: 15px; }
.faq-a { color: #4b5563; line-height: 1.6; font-size: 14px; }

@media (max-width: 640px) {
  .tp-title { font-size: 28px; }
  .tools-hero h1 { font-size: 34px; }
  .tool-form, .tool-output { padding: 20px; }
  .tool-clusters { grid-template-columns: 1fr; }
  .tools-category-head { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (min-width: 641px) and (max-width: 980px) {
  .tool-clusters { grid-template-columns: repeat(2, 1fr); }
}
