*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --roxo: #6c47ff; --roxo-hover: #5535e0; --fundo: #f9f8ff;
  --branco: #ffffff; --borda: #e5e7eb; --texto: #1a1a2e;
  --suave: #6b7280; --verde: #10b981; --raio: 12px;
  --fonte: 'Segoe UI', system-ui, sans-serif;
}

body { font-family: var(--fonte); background: var(--fundo); color: var(--texto); line-height: 1.6; }

header { background: var(--branco); border-bottom: 1px solid var(--borda); position: sticky; top: 0; z-index: 10; }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.2rem; font-weight: 700; color: var(--roxo); }
.btn-pro { background: var(--roxo); color: #fff; text-decoration: none; padding: 9px 20px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: background 0.2s; }
.btn-pro:hover { background: var(--roxo-hover); }

.hero { background: linear-gradient(135deg, #f0edff, #fdf4ff); text-align: center; padding: 64px 24px 48px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -1px; line-height: 1.2; margin-bottom: 16px; }
.destaque { color: var(--roxo); }
.hero p { color: var(--suave); font-size: 1.05rem; }

.ferramenta { max-width: 1100px; margin: 0 auto; padding: 48px 24px 64px; }
.modo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-weight: 500; }
.modo-row select { padding: 10px 14px; border: 2px solid var(--borda); border-radius: var(--raio); font-size: 0.95rem; font-family: var(--fonte); background: var(--branco); cursor: pointer; outline: none; transition: border-color 0.2s; }
.modo-row select:focus { border-color: var(--roxo); }

.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.coluna { background: var(--branco); border: 2px solid var(--borda); border-radius: var(--raio); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s; box-shadow: 0 2px 12px rgba(108,71,255,0.06); }
.coluna:focus-within { border-color: var(--roxo); }
.coluna-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--fundo); border-bottom: 1px solid var(--borda); font-size: 0.85rem; font-weight: 600; color: var(--suave); }
.contador { font-weight: 400; font-size: 0.78rem; }

textarea { width: 100%; min-height: 280px; padding: 16px; border: none; outline: none; resize: vertical; font-family: var(--fonte); font-size: 0.97rem; line-height: 1.7; color: var(--texto); background: var(--branco); }
textarea.campo-erro { background: #fff5f5; }
.output { min-height: 280px; padding: 16px; font-size: 0.97rem; line-height: 1.7; white-space: pre-wrap; overflow-y: auto; }
.output.loading { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--roxo); font-weight: 500; }
.placeholder { color: var(--suave); opacity: 0.6; }
.erro-txt { color: #e53e3e; }

.acoes { display: flex; gap: 12px; margin-top: 20px; }
button { display: flex; align-items: center; gap: 8px; padding: 14px 28px; border: none; border-radius: var(--raio); font-size: 1rem; font-weight: 600; font-family: var(--fonte); cursor: pointer; transition: all 0.2s; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
#btn-humanizar { background: var(--roxo); color: #fff; box-shadow: 0 4px 14px rgba(108,71,255,0.35); }
#btn-humanizar:hover:not(:disabled) { background: var(--roxo-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(108,71,255,0.4); }
#btn-copiar { background: var(--branco); color: var(--texto); border: 2px solid var(--borda); }
#btn-copiar:hover:not(:disabled) { border-color: var(--roxo); color: var(--roxo); }
#btn-copiar.copiado { border-color: var(--verde); color: var(--verde); }

.uso-info { margin-top: 14px; font-size: 0.88rem; color: var(--suave); display: flex; align-items: center; gap: 8px; }
.uso-info a { color: var(--roxo); font-weight: 600; text-decoration: none; }
.uso-info a:hover { text-decoration: underline; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(108,71,255,0.2); border-top-color: var(--roxo); border-radius: 50%; animation: spin 0.7s linear infinite; }

.exemplo { background: linear-gradient(135deg, #f0edff, #fdf4ff); padding: 64px 24px; text-align: center; }
.exemplo h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 40px; }
.exemplo-grid { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; max-width: 900px; margin: 0 auto; }
.card { background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); padding: 24px; max-width: 360px; text-align: left; box-shadow: 0 2px 12px rgba(108,71,255,0.06); }
.card p { font-size: 0.95rem; line-height: 1.7; font-style: italic; }
.card-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: inline-block; padding: 4px 10px; border-radius: 6px; }
.antes .card-label { background: #fff0f0; color: #e53e3e; }
.depois .card-label { background: #f0fdf4; color: #16a34a; }
.seta { font-size: 2rem; color: var(--roxo); }

footer { background: var(--texto); color: #9ca3af; text-align: center; padding: 28px 24px; font-size: 0.88rem; }
footer strong { color: #fff; }

@media (max-width: 700px) {
  .editor { grid-template-columns: 1fr; }
  .acoes { flex-direction: column; }
  button { justify-content: center; }
  .seta { transform: rotate(90deg); }
}
