/* Harvey App — identidade Nexo: fundo #000, General Sans 500,
   gold #FEC80C · blue #3A86F4 · green #6EC632 */

:root {
  --bg: #000000;
  --surface: #0d0d0f;
  --surface-2: #131316;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --text-muted: #a1a1aa;
  --gold: #FEC80C;
  --blue: #3A86F4;
  --green: #6EC632;
  --danger: #f26d6d;
  --radius: 12px;
  --sidebar-w: 280px;
  --z-drawer: 30;
  --z-overlay: 20;
}

* { box-sizing: border-box; }

/* Atributo hidden SEMPRE vence — mesmo em elementos com display próprio */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "General Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
}

button { font: inherit; }
a { color: var(--blue); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- componentes base ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #141414;
  font-weight: 600;
}
.btn-primary:hover { background: #ffd83f; }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-muted);
}
.field input, .chat-input textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  transition: border-color 200ms ease;
}
.field input:focus, .chat-input textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-error {
  color: var(--danger);
  font-size: 14px;
  margin: 0 0 14px;
}

/* ---------- login ---------- */

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
}

.brand { text-align: center; margin-bottom: 32px; }
.brand-name { font-size: 34px; font-weight: 600; letter-spacing: -0.5px; }
.brand-dot { color: var(--gold); }
.brand-sub { display: block; color: var(--text-muted); font-size: 14px; margin-top: 2px; }

.btn-block { width: 100%; }

.login-foot {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin: 28px 0 0;
}
.nexo { color: var(--gold); letter-spacing: 2px; font-weight: 600; }

/* ---------- layout do painel ---------- */

.app-page { height: 100vh; height: 100dvh; overflow: hidden; }

.app-shell { display: flex; height: 100%; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  overflow-y: auto; /* muitos módulos / landscape não escondem o rodapé */
}

.sidebar .brand { text-align: left; margin: 4px 8px 26px; }
.sidebar .brand-name { font-size: 24px; }
.sidebar .brand-sub {
  font-size: 12px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-muted);
  margin: 0 8px 8px;
}

.module-list { list-style: none; margin: 0 0 auto; padding: 0; }

.module-item button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  margin-bottom: 2px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background-color 180ms ease;
}
.module-item button:hover { background: rgba(255, 255, 255, 0.06); }
.module-item button.selected { background: rgba(254, 200, 12, 0.12); }
.module-item .icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-muted); }
.module-item button.selected .icon { color: var(--gold); }

.module-item .mod-state { margin-left: auto; display: inline-flex; }
.dot-active { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.icon-lock { width: 15px; height: 15px; color: var(--text-muted); }

.side-foot { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }

.usage-meter { padding: 0 8px 12px; }
.usage-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.usage-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}
.usage-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: var(--green);
  transition: width 300ms ease;
}
.usage-fill.warn { background: var(--gold); }
.usage-fill.full { background: var(--danger); }

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
}
.user-email {
  font-size: 13px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logout-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: color 180ms ease, background-color 180ms ease;
}
.logout-btn:hover { color: var(--danger); background: rgba(255, 255, 255, 0.05); }
.logout-btn svg { width: 18px; height: 18px; }

/* ---------- área principal ---------- */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 17px; font-weight: 600; margin: 0; }
.topbar .subtitle { color: var(--text-muted); font-size: 13px; }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.banner {
  padding: 10px 22px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.banner.warn { background: rgba(254, 200, 12, 0.1); color: var(--gold); }
.banner.danger { background: rgba(242, 109, 109, 0.1); color: var(--danger); }

/* ---------- chat ---------- */

.chat-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg { max-width: 720px; }
.msg .msg-author { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.msg .msg-body {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 15px;
  overflow-wrap: break-word;
}
.msg .msg-body p { margin: 0 0 10px; }
.msg .msg-body p:last-child { margin-bottom: 0; }
.msg .msg-body ul, .msg .msg-body ol { margin: 0 0 10px; padding-left: 22px; }

.msg-user { align-self: flex-end; }
.msg-user .msg-author { text-align: right; }
.msg-user .msg-body {
  background: rgba(254, 200, 12, 0.14);
  border: 1px solid rgba(254, 200, 12, 0.25);
}

.msg-harvey { align-self: flex-start; }
.msg-harvey .msg-body {
  background: var(--surface);
  border: 1px solid var(--border);
}

/* entrada suave das mensagens (respeita prefers-reduced-motion via reset acima) */
.msg { animation: msg-in 180ms ease both; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* títulos que o Harvey às vezes emite (## …) */
.msg-body .md-h { font-size: 15px; margin: 4px 0 6px; color: var(--text); }
.msg-body a { color: var(--blue); word-break: break-word; }

/* bolha de erro/aviso — distinta de uma resposta normal */
.msg-error .msg-body {
  background: rgba(242, 109, 109, 0.08);
  border-color: rgba(242, 109, 109, 0.4);
}
.msg-error .msg-author { color: var(--danger); }

.msg-status {
  align-self: flex-start;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--text-muted);
  max-width: 420px;
}
.chat-empty h2 { color: var(--text); font-size: 20px; margin-bottom: 6px; }

.chat-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 22px 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
}
.chat-controls {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-input textarea {
  resize: none;
  max-height: 160px;
  min-height: 48px;
}

.icon-btn {
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease, border-color 200ms ease;
}
.icon-btn:hover { color: var(--gold); border-color: rgba(254, 200, 12, 0.5); }
.icon-btn svg { width: 20px; height: 20px; }

/* anexos aguardando envio */
.attach-row { display: flex; flex-wrap: wrap; gap: 8px; }
.attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text);
}
.attach-chip .msg-tag-icon { width: 13px; height: 13px; color: var(--blue); }
.attach-error { color: var(--danger); border-color: rgba(242, 109, 109, 0.4); }
.attach-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}
.attach-remove:hover { color: var(--danger); }

/* barra de gravação */
.record-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 6px;
  flex-wrap: wrap; /* em telas estreitas os botões descem em vez de estourar */
}
.rec-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
.rec-timer { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 42px; }
.rec-timer.rec-ending { color: var(--danger); }
.rec-hint {
  color: var(--text-muted);
  font-size: 14px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-bar .btn { min-height: 40px; padding: 6px 16px; }

/* chip de anexo em upload: aparência de carregando */
.attach-chip.attach-loading { opacity: 0.7; }
.attach-chip.attach-loading .msg-tag-icon { animation: pulse 1.2s ease-in-out infinite; }

/* boot: falha ao carregar o painel */
.boot-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 22px;
  padding: 20px 22px;
  background: rgba(242, 109, 109, 0.08);
  border: 1px solid rgba(242, 109, 109, 0.35);
  border-radius: 14px;
}
.boot-error strong { display: block; margin-bottom: 4px; }
.boot-error span { color: var(--text-muted); font-size: 14px; }

/* skeleton de carregamento em Meus Pedidos */
.pedido-skeleton {
  height: 58px;
  border-radius: 14px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* marcadores dentro do balão de mensagem */
.msg-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.msg-tag-icon { width: 13px; height: 13px; flex-shrink: 0; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.msg-files:last-child, .msg-tag:last-child { margin-bottom: 0; }
.msg-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}
.msg-file .msg-tag-icon { color: var(--blue); }
.send-btn {
  min-width: 48px;
  min-height: 48px;
  border-radius: var(--radius);
  border: none;
  background: var(--gold);
  color: #141414;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms ease;
}
.send-btn:hover { background: #ffd83f; }
.send-btn:disabled { opacity: 0.5; cursor: default; }
.send-btn svg { width: 20px; height: 20px; }

/* ---------- home: visão do negócio ---------- */

.home-view {
  flex: 1;
  overflow-y: auto;
  padding: 30px 22px 60px;
}
.home-inner { max-width: 860px; margin: 0 auto; }

.home-hero { margin-bottom: 24px; }
.home-hero h2 { font-size: 28px; margin: 0 0 4px; letter-spacing: -0.4px; }
.home-hero p { margin: 0; color: var(--text-muted); font-size: 15px; }

.onboarding-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: rgba(254, 200, 12, 0.08);
  border: 1px solid rgba(254, 200, 12, 0.35);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 24px;
}
.onboarding-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--gold); }
.onboarding-card p { margin: 0; color: var(--text-muted); font-size: 14px; max-width: 480px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text);
  text-align: left;
}
.stat-click { cursor: pointer; transition: border-color 200ms ease, background-color 200ms ease; }
.stat-click:hover { border-color: rgba(255, 255, 255, 0.25); background: var(--surface-2); }
/* affordance de clique visível também no touch (sem hover): seta discreta */
.stat-click .stat-hint::after {
  content: " ›";
  color: var(--blue);
  font-weight: 700;
}
.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}
.stat-value { font-size: 30px; font-weight: 600; line-height: 1.2; }
.stat-value.gold { color: var(--gold); }
.stat-value.blue { color: var(--blue); }
.stat-value.green { color: var(--green); }
.stat-hint { font-size: 12px; color: var(--text-muted); }
.stat-usage { width: 100%; margin-top: 8px; }

.home-section { margin-bottom: 30px; }
.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.home-section-head h3 { margin: 0; font-size: 16px; }
.link-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
}
.link-btn:hover { text-decoration: underline; }

.suggestion-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
  text-align: left;
}
.chip:hover { border-color: rgba(254, 200, 12, 0.5); background: rgba(254, 200, 12, 0.08); }
.chat-chips { justify-content: center; margin-top: 18px; }

.module-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.module-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.module-card:hover { border-color: rgba(58, 134, 244, 0.5); background: var(--surface-2); }
.module-card .icon { width: 22px; height: 22px; color: var(--blue); margin-bottom: 4px; }
.module-card-title { font-weight: 600; font-size: 15px; }
.module-card-tag { font-size: 13px; color: var(--text-muted); }
.module-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.module-card-more .icon-lock { width: 12px; height: 12px; }

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blue);
  color: #04122b; /* texto escuro sobre azul — contraste AA */
  font-size: 12px;
  font-weight: 700;
}

/* ---------- meus pedidos ---------- */

.pedidos-view {
  flex: 1;
  overflow-y: auto;
  padding: 30px 22px 60px;
}
.pedidos-inner { max-width: 860px; margin: 0 auto; }

.pedidos-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  color: var(--text-muted);
}
.legend-arrow { width: 14px; height: 14px; color: var(--text-muted); }

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  white-space: nowrap;
}
.status-novo { background: rgba(254, 200, 12, 0.14); color: var(--gold); }
.status-andamento { background: rgba(58, 134, 244, 0.16); color: var(--blue); }
.status-entregue { background: rgba(110, 198, 50, 0.16); color: var(--green); }

.pedido-list { list-style: none; margin: 0; padding: 0; }
.pedido-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.pedido-main { display: flex; align-items: center; gap: 14px; }
.pedido-unseen { border-color: rgba(58, 134, 244, 0.45); }
.pedido-new-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--blue);
  background: rgba(58, 134, 244, 0.14);
  border-radius: 999px;
  padding: 3px 10px;
}
.pedido-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}
.pedido-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.pedido-response {
  border-left: 3px solid var(--gold);
  background: rgba(254, 200, 12, 0.05);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
}
.pedido-response-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 4px;
}
.pedido-response p { margin: 0; font-size: 14px; }

.pedido-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.btn-fb {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  padding: 7px 16px;
  min-height: 40px;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.btn-fb-ok:hover { border-color: var(--green); background: rgba(110, 198, 50, 0.1); }
.btn-fb-adj:hover { border-color: var(--gold); background: rgba(254, 200, 12, 0.1); }
.pedido-feedback-done { font-size: 13px; font-weight: 600; }
.pedido-feedback-done.ok { color: var(--green); }
.pedido-feedback-done.adj { color: var(--gold); }

/* Na home os pedidos recentes são compactos (2 linhas no máx.) */
#home-pedidos .pedido-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pedidos-empty {
  text-align: center;
  color: var(--text-muted);
  max-width: 420px;
  margin: 60px auto 0;
}
.pedidos-empty h3 { color: var(--text); font-size: 18px; margin: 0 0 8px; }
.pedidos-empty p { margin: 0 0 20px; }

/* ---------- página "Como usar?" ---------- */

.module-view {
  flex: 1;
  overflow-y: auto;
  padding: 34px 22px 60px;
}
.module-inner { max-width: 680px; margin: 0 auto; }

.locked-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.locked-tag svg { width: 12px; height: 12px; }

.module-view h2 { font-size: 28px; margin: 0 0 4px; letter-spacing: -0.4px; }
.module-view .tagline { color: var(--text-muted); margin: 0 0 28px; }

.info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 14px;
}
.info-block h3 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.info-block:nth-of-type(1) h3 { color: var(--gold); }
.info-block:nth-of-type(2) h3 { color: var(--blue); }
.info-block:nth-of-type(3) h3 { color: var(--green); }
.info-block p { margin: 0; color: var(--text); }

.cta-box {
  margin-top: 28px;
  text-align: center;
  padding: 28px 22px;
  border: 1px dashed rgba(254, 200, 12, 0.4);
  border-radius: 14px;
}
.cta-box .cta-lead { margin: 0 0 16px; color: var(--text-muted); }
.cta-sent { color: var(--green); font-weight: 600; }

/* ---------- responsivo ---------- */

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: var(--z-overlay);
  border: none;
  cursor: pointer;
}

/* Drawer até 1024px — em tablet retrato a sidebar fixa apertaria o conteúdo */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: var(--z-drawer);
    transform: translateX(-100%);
    transition: transform 250ms ease;
  }
  .sidebar.open { transform: translateX(0); }
  .drawer-overlay.visible { display: block; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 820px) {
  .msg { max-width: 100%; }
  .home-view, .pedidos-view { padding: 22px 16px 50px; }
  .home-hero h2 { font-size: 24px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 26px; }
  .onboarding-card { flex-direction: column; align-items: stretch; }
  .pedido-main { flex-wrap: wrap; }
  .pedido-text { flex-basis: 100%; order: 3; }
  .boot-error { margin: 16px; }
}

@media (max-width: 420px) {
  .rec-hint { display: none; } /* libera espaço pros botões da gravação */
}
