/* SEO-Check Tool Styles */
.tool-wrap {
  max-width: 880px;
  margin: 3rem auto;
  padding: 0 1.2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a202c;
}
.tool-wrap h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 0.5rem;
}
.tool-wrap .lead {
  color: #4a5568;
  font-size: 1.1rem;
  margin: 0 0 2rem;
}
.tool-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.tool-form input[type=url] {
  flex: 1 1 320px;
  padding: 0.8rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
}
.tool-form input[type=url]:focus {
  outline: none;
  border-color: #667eea;
}
.tool-form button {
  padding: 0.8rem 1.5rem;
  background: #667eea;
  color: white;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.tool-form button:disabled { opacity: 0.6; cursor: progress; }

#tool-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f7fafc;
  border-radius: 10px;
  display: none;
}
#tool-result.is-active { display: block; }

.score-pill {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  color: white;
}
.score-pill.bad { background: #e53e3e; }
.score-pill.ok { background: #ed8936; }
.score-pill.good { background: #38a169; }

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.tool-card {
  background: white;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  border-left: 4px solid #cbd5e0;
}
.tool-card.win { border-left-color: #38a169; }
.tool-card.issue { border-left-color: #e53e3e; }
.tool-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}
.tool-card ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #2d3748;
}
.tool-meta {
  font-size: 0.9rem;
  color: #4a5568;
  margin: 0.5rem 0;
}

.lead-form {
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  border: 2px dashed #667eea;
}
.lead-form h3 { margin: 0 0 0.8rem; }
.lead-form input, .lead-form textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  box-sizing: border-box;
}
.lead-form button {
  background: #667eea;
  color: white;
  border: 0;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.lead-msg { margin-top: 0.8rem; font-size: 0.9rem; }
.lead-msg.ok { color: #38a169; }
.lead-msg.err { color: #e53e3e; }

.tool-detail {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.85rem;
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
  margin-top: 1rem;
  max-height: 360px;
  overflow: auto;
}

@media (max-width: 600px) {
  .tool-grid { grid-template-columns: 1fr; }
}
