h1 {
  font-size: 2rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9fafb;
  color: #111827;
  line-height: 1.5;
}

/* ✅ Adição para atender boas práticas PageSpeed */
h1 {
  font-size: 2.5rem;
}

/* Responsividade para h1 */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
}

header {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header .logo img {
  height: 42px;
  width: auto;
  cursor: pointer;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #3b82f6;
}

.banner {
  text-align: center;
  padding: 100px 20px 80px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
}

.banner h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.banner p {
  font-size: 1.125rem;
  opacity: 0.9;
}

.banner.light {
  background-color: #f3f4f6;
  color: #111827;
}

.banner.azul {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
}

.popular-tools {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 16px;
  text-align: center;
}

.popular-tools h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.popular-tools p {
  color: #6b7280;
  margin-bottom: 24px;
  font-size: 1rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-buttons a button {
  background-color: white;
  border: 1px solid #d1d5db;
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.filter-buttons a button:hover {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
  transform: translateY(-2px);
}

footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 20px 0;
  margin-top: 50px;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}

footer a {
  color: #374151;
  text-decoration: none;
  margin: 0 8px;
}

footer a:hover {
  color: #111827;
}

.faq {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #111827;
}

.faq p {
  margin-bottom: 15px;
  color: #374151;
}

.content {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content h2 {
  margin-top: 20px;
  font-size: 1.5rem;
  color: #111827;
}

.content p {
  margin: 12px 0;
}

.content ul {
  margin: 10px 0 20px 20px;
}

.content ul li {
  margin-bottom: 8px;
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
}

form button {
  background: #2563eb;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

form button:hover {
  background: #1e40af;
}

.tool-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.tool-container button {
  border: none;
  align-self: center;
  width: 200px;
  background-color: #3b82f6;
  color: white;
  padding: 12px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tool-container button:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
}

#qr-text {
  height: 60px;
  vertical-align: top;
}

#length,
input[type="number"] {
  height: 50px;
}

#result,
#resultado {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  color: #111827;
  word-break: break-word;
}
