:root {
  --cor-primaria: #FFA69E;
  --sidebar: #14213d;
  --canvas: #FAF3DD;
  --surface: #ffffff;
  --menta: #B8F2E6;
  --ink: #3d3d3d;
  --muted: #6b6b6b;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Site institucional ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--canvas);
  max-width: 960px;
  margin: 0 auto;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--cor-primaria);
}

.site-brand img { width: 36px; height: 36px; border-radius: 8px; }

.site-nav { display: flex; gap: 1.25rem; font-size: 0.875rem; }
.site-nav a:hover { color: var(--cor-primaria); }

.site-main { max-width: 960px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

.hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--cor-primaria);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: filter 0.15s;
}

.btn-primary:hover { filter: brightness(0.92); }

.section-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.proc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.proc-card {
  background: var(--surface);
  border: 1px solid var(--canvas);
  border-radius: 10px;
  padding: 1.25rem;
}

.proc-card h3 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.5rem; }
.proc-card p { font-size: 0.8rem; color: var(--muted); }
.proc-card .price { color: var(--cor-primaria); font-weight: 600; margin-top: 0.5rem; }

.contact-section {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--canvas);
  border-radius: 10px;
  text-align: center;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--canvas);
}

/* ── Chat ── */
.chat-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--canvas);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.chat-header img { width: 32px; height: 32px; border-radius: 8px; }
.chat-header h1 { font-size: 1rem; font-weight: 500; color: var(--cor-primaria); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bubble {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  animation: fadeIn 0.2s ease;
}

.bubble.bot {
  align-self: flex-start;
  background: #f3f4f6;
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.bubble.user {
  align-self: flex-end;
  background: var(--cor-primaria);
  color: var(--ink);
  border-bottom-right-radius: 4px;
}

.bubble.typing {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
}

.bubble.typing span {
  width: 6px; height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: bounce 0.8s infinite alternate;
}

.bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce { to { transform: translateY(-4px); opacity: 0.5; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }

.chat-input-area {
  border-top: 1px solid var(--canvas);
  padding: 0.75rem;
  background: var(--surface);
}

.chat-text-input {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.chat-text-input input {
  flex: 1;
  border: 1px solid var(--canvas);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
}

.chat-text-input button {
  background: var(--cor-primaria);
  border: none;
  border-radius: 10px;
  padding: 0 1rem;
  font-weight: 500;
  cursor: pointer;
}

.chat-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat-btn {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 120px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--canvas);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.chat-btn:hover { border-color: var(--cor-primaria); background: #fafafa; }
.chat-btn.primary { background: var(--cor-primaria); border-color: var(--cor-primaria); font-weight: 500; }
.chat-btn.back { flex: 1 1 100%; color: var(--muted); font-size: 0.75rem; }

.hidden { display: none !important; }

@media (max-width: 600px) {
  .site-nav { gap: 0.75rem; font-size: 0.8rem; }
}
