@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --primary: #25D366;
  --primary-hover: #20b955;
  --border: #e5e7eb;
  --card: #ffffff;
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 20px;
}

.container-full {
  max-width: 960px;
  margin: auto;
  padding: 20px;
}

/* Logo */
.logo-box {
  text-align: center;
  margin-bottom: 20px;
}
.logo {
  max-width: 200px;
}

/* Header */
.header-text {
  text-align: center;
  margin-bottom: 40px;
}
.header-text h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.header-text p {
  font-size: 1rem;
  color: var(--muted);
}

/* Layout principal */
.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }
}

/* Caixas (cards) */
.form-box, .preview-box, .result-box, .faq-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Formulário */
label {
  display: block;
  font-weight: 600;
  margin-top: 15px;
  font-size: 0.95rem;
}
input, textarea {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}
textarea {
  resize: none;
  height: 100px;
}
small {
  display: block;
  text-align: right;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Botões */
button {
  margin-top: 20px;
  padding: 14px 22px;
  background: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
button:active {
  transform: translateY(0);
}

/* Prévia do WhatsApp */
.preview-box h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.whatsapp-preview {
  background: #ece5dd;
  border-radius: var(--radius);
  padding: 16px;
  max-width: 320px;
}
.chat-header {
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.chat-message {
  background: #dcf8c6;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 0;
  font-size: 0.95rem;
  max-width: 240px;
}

/* Resultado */
.result-box {
  margin-top: 40px; /* espaço entre blocos */
  text-align: center;
}
.result-box h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.result-box input {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.result-box button {
  width: 100%;
}

/* FAQ */
.faq-section {
  margin-top: 50px;
}

.faq-section h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.faq-item {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background: #fff;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  color: var(--text); /* texto escuro por padrão */
}

.faq-question:hover {
  background: #f9f9f9;
}

.faq-question.active {
  color: var(--primary); /* verde quando ativo */
}

.faq-answer {
  display: none;
  padding: 12px;
  font-size: 0.95rem;
  color: #333;
  border-left: 3px solid var(--primary);
  margin-top: 6px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Identidade visual — Tudo Para Empresas
   Os tons verdes abaixo permanecem restritos à experiência do WhatsApp. */
:root {
  --tpe-blue: #3348ff;
  --tpe-blue-hover: #2035e8;
  --tpe-black: #000000;
  --tpe-white: #ffffff;
  --tpe-ink: #141414;
  --tpe-muted: #606060;
  --tpe-line: #dedede;
  --whatsapp: #25d366;
  --whatsapp-hover: #1fb757;
}

* { font-family: Helvetica, Arial, sans-serif; }

body {
  background: var(--tpe-black);
  background-image: radial-gradient(circle at 7% 4%, rgba(51, 72, 255, .4), transparent 24rem), radial-gradient(circle at 94% 94%, rgba(51, 72, 255, .27), transparent 26rem);
  color: var(--tpe-ink);
  padding: 0 20px 48px;
}

.container-full {
  max-width: 1080px;
  padding: 0;
}

.logo-box {
  align-items: center;
  display: flex;
  height: 96px;
  justify-content: space-between;
  margin: 0;
  text-align: left;
}

.logo { display: block; max-width: 191px; width: 191px; }

.tools-link {
  border-bottom: 2px solid var(--tpe-blue);
  color: var(--tpe-white);
  font-size: 14px;
  font-weight: 700;
  padding-bottom: 4px;
  text-decoration: none;
}

.tools-link:hover { color: #dfe2ff; }

.header-text {
  color: var(--tpe-white);
  margin: 48px 0 56px;
  max-width: 750px;
  text-align: left;
}

.header-text::before {
  color: var(--tpe-white);
  content: "Ferramenta gratuita";
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.header-text h1 {
  font-size: clamp(38px, 6vw, 62px);
  letter-spacing: -.06em;
  line-height: .98;
  margin-bottom: 18px;
}

.header-text p { color: #e5e5e5; font-size: 18px; line-height: 1.5; max-width: 680px; }

.container {
  background: var(--tpe-white);
  border-radius: 18px;
  gap: 18px;
  padding: 24px;
}

.form-box,
.preview-box,
.result-box,
.faq-section {
  border: 1px solid var(--tpe-line);
  border-radius: 12px;
  box-shadow: none;
  padding: 28px;
}

.form-box { background: #fafafa; }
.preview-box { background: var(--tpe-white); }

label { color: var(--tpe-ink); font-size: 14px; font-weight: 700; margin-top: 0; }
label + input, label + textarea { margin-bottom: 18px; }

input,
textarea {
  border: 1.5px solid #cfcfcf;
  border-radius: 8px;
  color: var(--tpe-ink);
  font-size: 16px;
  margin-top: 8px;
}

input:focus,
textarea:focus { border-color: var(--tpe-blue); box-shadow: 0 0 0 3px rgba(51, 72, 255, .14); }
small { color: var(--tpe-muted); }

.form-box button,
.result-box button {
  background: var(--whatsapp);
  border-radius: 8px;
  margin-top: 22px;
  width: 100%;
}

.form-box button:hover,
.result-box button:hover { background: var(--whatsapp-hover); }

.preview-box h2,
.result-box h2,
.faq-section h2 { color: var(--tpe-ink); letter-spacing: -.025em; }
.preview-box h2 { font-size: 20px; }

/* Mantém intacta a linguagem visual da conversa do WhatsApp. */
.whatsapp-preview { background: #ece5dd; border-radius: 12px; max-width: 100%; min-height: 180px; padding: 18px; }
.chat-header { color: #667781; font-weight: 700; }
.chat-message { background: #dcf8c6; color: #111b21; }

.result-box {
  background: var(--tpe-white);
  margin-top: 18px;
  text-align: left;
}

.result-box input { background: #f0f2ff; border-color: #b7c0ff; margin-bottom: 0; }

.faq-section { background: var(--tpe-white); margin-top: 18px; }
.faq-section h2 { font-size: 28px; }
.faq-question { background: transparent; border-radius: 6px; color: var(--tpe-ink); font-family: inherit; }
.faq-question:hover { background: #f2f3ff; }
.faq-question.active { color: var(--tpe-blue); }
.faq-answer { border-left-color: var(--tpe-blue); color: var(--tpe-muted); }

@media (max-width: 768px) {
  body { padding: 0 12px 28px; }
  .logo-box { height: 74px; }
  .logo { width: 158px; }
  .tools-link { font-size: 12px; }
  .header-text { margin: 32px 0 38px; }
  .header-text p { font-size: 16px; }
  .container { border-radius: 14px; grid-template-columns: 1fr; padding: 14px; }
  .form-box, .preview-box, .result-box, .faq-section { padding: 22px; }
}

