/* ============================================================
   ORÇAMENTOS EXPRESS — Design System Global
   Ficheiro: public/assets/css/style.css
   Paleta: Lavanda e Roxos
   Tipografia: Plus Jakarta Sans (títulos/botões) + Instrument Sans (corpo)
   ============================================================ */

/* ── 1. RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ── 2. VARIÁVEIS CSS (Design Tokens) ────────────────────── */
:root {
  /* Cores principais — Roxo Ametista */
  --primary:       #56197E;   /* A cor da marca: navs, banda, botões, links, títulos */
  --primary-dark:  #431362;   /* Apenas hover/press + fim de gradiente */
  --primary-light: #C2A0D6;   /* Texto sobre fundo escuro, acentos */
  --primary-mid:   #6E2A97;   /* Passo intermédio de gradientes */
  --primary-pale:  #f1e8f6;   /* Banners info, hovers suaves */

  /* Fundos e superfícies */
  --bg:            #F5F0F8;   /* Lavanda — fundo de página */
  --bg-white:      #ffffff;

  /* Tipografia */
  --text:          #1C1C1C;
  --text-muted:    #5e545e;

  /* Bordas */
  --border:        #e3d9ea;
  --border-soft:   rgba(86,25,126,.12);

  /* Estados */
  --success:       #2d7a4a;
  --success-bg:    #f0fdf4;
  --error:         #c0392b;
  --error-bg:      #fee2e2;
  --warning:       #d97706;
  --warning-bg:    #fffbeb;

  /* Sombras (tingidas de Ametista fundo) */
  --shadow:        0 4px 20px rgba(67,19,98,.08);
  --shadow-sm:     0 2px 8px  rgba(67,19,98,.06);
  --shadow-lg:     0 16px 56px rgba(67,19,98,.12);
  --shadow-btn:    0 8px 28px rgba(86,25,126,.28);

  /* Raios de canto */
  --radius:        14px;
  --radius-sm:     10px;
  --radius-input:  12px;
  --radius-lg:     24px;
  --radius-full:   99px;
}

/* ── 3. TIPOGRAFIA BASE ──────────────────────────────────── */
body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── 4. NAVBAR ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
  color: var(--primary-light);
  white-space: nowrap;
}

.nav-logo-text span {
  color: white;
}

.nav-cta {
  background: white;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 22px;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--bg);
  transform: translateY(-1px);
}

/* ── 5. HEADER DE PÁGINA INTERNA (ex: perfil.php) ────────── */
.page-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.page-header-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  box-shadow: 0 3px 10px rgba(86,25,126,.30);
}

.page-header-text h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.page-header-text p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

/* ── 6. COMPONENTE: CARD ─────────────────────────────────── */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border-soft);
}

/* Variante: card de alerta (erros, workers) */
.card--alert {
  border-top: 4px solid #ef4444;
}

/* Variante: card de terminal / logs */
.card--terminal {
  background: #1C1C1C;
  border-top: 4px solid var(--primary);
  color: #e5e5e5;
}

/* Variante: card de preço */
.card--pricing {
  border-radius: 24px;
  padding: 44px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.card--pricing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

/* Animação de entrada (para cards de formulário) */
.card--animated {
  animation: fadeUp 0.3s ease;
}

.card--animated:nth-child(1) { animation-delay: 0.00s; }
.card--animated:nth-child(2) { animation-delay: 0.05s; }
.card--animated:nth-child(3) { animation-delay: 0.10s; }
.card--animated:nth-child(4) { animation-delay: 0.15s; }

@keyframes fadeUp {
  from { transform: translateY(10px); }
  to   { transform: translateY(0); }
}

/* ── 7. COMPONENTE: BOTÕES ───────────────────────────────── */

/* Botão principal (CTA — WhatsApp, ações primárias) */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 16px 32px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Botão de guardar (gradiente, para formulários) */
.btn-save {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-input);
  padding: 17px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(123, 45, 139, 0.35);
}

.btn-save:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(123, 45, 139, 0.3);
}

.btn-save.saving {
  opacity: 0.8;
  pointer-events: none;
}

/* Botão de perigo/saída (ex: logout) */
.btn-danger {
  font-size: 14px;
  font-weight: 600;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-danger:hover {
  background: #fecaca;
}

/* Spinner (para botão com estado de loading) */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-save.saving .spinner { display: block; }
.btn-save.saving .btn-text { display: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── 8. INPUTS & FORMULÁRIOS ────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
}

label .required {
  color: var(--primary);
  font-size: 14px;
  line-height: 1;
}

label .field-icon {
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  padding: 14px 16px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  font-size: 15px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123, 45, 139, 0.12);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -2px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Input NIF: destaque tipográfico */
.nif-input {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 18px !important;
}

/* Input IBAN */
.iban-field input {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 16px;
  background: #faf7fc;
  border-color: rgba(123, 45, 139, 0.25);
}

.iban-field input:focus {
  border-color: var(--primary);
  background: var(--bg-white);
}

/* Input com sufixo (ex: "dias") */
.input-suffix-wrap {
  position: relative;
}

.input-suffix-wrap input {
  padding-right: 70px;
}

.input-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

/* ── 9. COMPONENTE: UPLOAD DE LOGO ──────────────────────── */
.logo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.logo-upload-area:hover,
.logo-upload-area:focus-within {
  border-color: var(--primary);
  background: var(--primary-pale);
}

.logo-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.logo-preview {
  display: none;
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  padding: 8px;
}

.logo-preview.visible { display: block; }

.upload-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
  filter: grayscale(0.3);
}

.upload-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.upload-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.upload-hint {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(123, 45, 139, 0.06);
  border-radius: 6px;
  padding: 6px 10px;
  display: inline-block;
}

/* ── 10. COMPONENTE: BANNERS E ALERTAS ───────────────────── */
.info-banner {
  background: var(--primary-pale);
  border: 1px solid rgba(123, 45, 139, 0.18);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.info-banner .banner-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.info-banner p {
  font-size: 13px;
  color: var(--primary);
  line-height: 1.5;
}

.info-banner strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

.info-banner--success {
  background: #f0fdf4;
  border-color: rgba(34, 197, 94, 0.3);
}
.info-banner--success p { color: #15803d; }

/* Campos preenchidos por scan de documento */
.field--scanned input,
.field--scanned textarea {
  border-color: #d97706;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

/* Botão de scan de documento */
.btn-scan-doc {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--primary);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-scan-doc:hover { background: var(--primary-pale); }
.btn-scan-doc:disabled { opacity: 0.6; cursor: not-allowed; }

/* Badge de estado (para listas de erros/alertas) */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--error {
  background: #fee2e2;
  color: #991b1b;
}

.badge--warning {
  background: #fef3c7;
  color: #92400e;
}

.badge--success {
  background: #dcfce7;
  color: #166534;
}

.badge--info {
  background: #dbeafe;
  color: #1e40af;
}

/* ── 11. COMPONENTE: FEEDBACK DE GRAVAÇÃO ────────────────── */
.save-feedback {
  display: none;
  align-items: center;
  gap: 8px;
  background: #e8f5ee;
  border: 1px solid #a8d5b5;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}

.save-feedback.visible { display: flex; }

/* ── 12. BARRA STICKY (bottom) ───────────────────────────── */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 240, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.sticky-bar-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── 13. SEÇÕES E LAYOUT (Landing Page) ──────────────────── */
.section {
  padding: 90px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

/* Variante da label com linha separadora (formulários) */
.section-label--line {
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label--line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 42px);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 40px;
  color: var(--primary);
}

/* ── 14. HERO ────────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--primary);
}

.hero-sub {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 32px;
}

/* ── 15. STATS GRID ──────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 4px 20px rgba(74, 24, 120, 0.04);
}

.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-text {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── 16. STEPS (Como Funciona) ───────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: -10px;
  opacity: 0.15;
  color: var(--primary);
}

.step h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 9px;
  color: var(--primary);
}

.step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── 17. SECÇÃO FEATURES (fundo escuro) ──────────────────── */
.features-bg {
  background: var(--primary);
  color: white;
  padding: 90px 24px;
}

.features-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 16px;
}

.feature-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: rgba(255,255,255,.85);
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

/* ── 18. PREVIEW DE PDF (mockup) ─────────────────────────── */
.pdf-preview {
  background: white;
  border-radius: 12px;
  padding: 30px;
  color: #333;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.pdf-h {
  border-bottom: 2px solid var(--bg);
  padding-bottom: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
}

.pdf-line {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  margin-bottom: 10px;
}

/* ── 19. PREÇOS ──────────────────────────────────────────── */
.pricing-section {
  padding: 90px 24px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.pricing-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -3px;
  margin: 10px 0;
  color: var(--primary);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 30px 0;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--bg);
  display: flex;
  gap: 10px;
  font-size: 15px;
}

/* ── 20. FAQS ────────────────────────────────────────────── */
.faq-section {
  max-width: 700px;
  margin: 0 auto 90px;
  padding: 0 24px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary);
  font-size: 15px;
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer { display: block; }
.faq-item.active { border-color: var(--primary); }

.faq-icon {
  font-size: 20px;
  transition: transform 0.2s;
  color: var(--primary);
}

/* ── 21. MOCKUP TELEFONE (hero) ──────────────────────────── */
.phone-mockup {
  background: var(--primary);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(67,19,98,.20);
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.phone-screen {
  background: #111;
  border: 8px solid #333;
  border-radius: 30px;
  overflow: hidden;
  max-width: 350px;
  margin: 0 auto;
  font-size: 13px;
}

.chat-header {
  background-color: #075e54;
  color: white;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  background-color: #128c7e;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.chat-area {
  display: flex;
  flex-direction: column;
  padding: 15px 10px;
  gap: 12px;
  background-color: #e5ddd5;
  min-height: 450px;
}

.chat-msg {
  padding: 10px 14px;
  border-radius: 15px;
  max-width: 85%;
  line-height: 1.4;
}

.msg-user {
  align-self: flex-end;
  background-color: #dcf8c6;
  padding: 10px;
  border-radius: 10px 0 10px 10px;
  max-width: 80%;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  color: black;
}

.msg-bot {
  align-self: flex-start;
  background-color: #fff;
  border-radius: 0 10px 10px 10px;
  max-width: 85%;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  overflow: hidden;
  color: black;
}

.msg-button {
  border-top: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  color: #007aff;
  font-weight: 500;
  cursor: pointer;
}

.msg-pdf {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-icon {
  width: 30px;
  height: 30px;
  background: #e53e3e;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 9px;
}

/* ── 22. FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,.82);
  padding: 60px 24px;
  text-align: center;
  font-size: 13px;
}

footer p { color: rgba(255,255,255,.82); }

footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
}

/* ── 23. DASHBOARD / ADMIN ───────────────────────────────── */

/* Layout principal do dashboard */
.dash-body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 32px 24px;
  padding-bottom: 60px;
}

.dash-container {
  max-width: 1100px;
  margin: 0 auto;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.dash-header h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--primary);
  letter-spacing: -0.5px;
}

/* Grelha do dashboard */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: start;
}

/* Card de alertas da fila */
.alert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-item {
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f0f5;
  font-size: 14px;
}

.alert-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.alert-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.alert-id {
  font-weight: 700;
  color: #dc2626;
}

.alert-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Alerta vazio (tudo OK) */
.alert-ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 16px;
  color: #15803d;
}

.alert-ok p:first-child {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 4px;
}

.alert-ok p:last-child {
  font-size: 13px;
}

/* Terminal de logs */
.terminal-card {
  background: #1C1C1C;
  border-radius: var(--radius);
  border-top: 4px solid var(--primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 560px;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.terminal-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: white;
}

.terminal-tag {
  font-size: 11px;
  color: #9ca3af;
  background: #2d2d2d;
  border: 1px solid #3f3f3f;
  border-radius: 4px;
  padding: 3px 8px;
  font-family: 'Courier New', monospace;
}

.terminal-body {
  flex: 1;
  overflow-y: auto;
  background: #0d0d0d;
  padding: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
}

/* Scrollbar do terminal */
.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-track { background: #1C1C1C; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.log-line {
  display: block;
  padding: 2px 4px;
  border-radius: 3px;
  margin-bottom: 2px;
  word-break: break-all;
  color: #d4d4d4;
}

.log-line:hover {
  background: rgba(255,255,255,0.05);
}

.log-line--error   { color: #f87171; font-weight: 700; }
.log-line--warning { color: #fbbf24; }
.log-line--info    { color: #93c5fd; }

/* Login do dashboard */
.login-body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
  border-top: 4px solid var(--primary);
}

.login-card h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

.login-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ── 24. RESPONSIVIDADE ──────────────────────────────────── */
@media (max-width: 900px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .terminal-card {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .hero-inner,
  .stats-grid,
  .steps,
  .features-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
    padding-top: 100px;
  }

  .hero h1 { font-size: 38px; }
  .phone-mockup { margin-top: 40px; }
  .nav-cta { display: none; }
}

@media (max-width: 480px) {
  nav { padding: 12px 14px; gap: 8px; }
  .nav-logo-text { font-size: 15px; }
  .nav-cta { display: flex; padding: 9px 15px; font-size: 13px; }
}

@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; }
}

@media (min-width: 480px) {
  .main { padding: 28px 24px 24px; }
  .card { padding: 24px; }
}

@media (min-width: 640px) {
  .main { padding: 32px 0 24px; }
}
/* ── 25. LANDING — NOVOS COMPONENTES ────────────────────────────────────────── */

/* Tag de IA discreta abaixo do CTA do hero */
.hero-ai-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 12px;
  background: rgba(74, 24, 120, 0.06);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-ai-note::before {
  content: "🇪🇺";
  font-size: 14px;
}

/* Grid de 3 objeções respondidas */
.objections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.objection-card {
  background: white;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(74, 24, 120, 0.08);
}
.objection-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.objection-a {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}
@media (max-width: 768px) {
  .objections-grid { grid-template-columns: 1fr; }
}

/* Bloco preço — 3 cards lado a lado */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 40px auto 0;
}
.pricing-card {
  background: white;
  border: 2px solid rgba(74, 24, 120, 0.1);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.is-featured {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(123, 45, 139, 0.18);
  transform: translateY(-8px);
}
.pricing-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 4px;
}
.pricing-card.is-featured .pricing-card-label {
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 100px;
  align-self: flex-start;
  letter-spacing: 1px;
}
.pricing-card-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-top: 12px;
}
.pricing-card-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0 4px;
  line-height: 1;
}
.pricing-card-price sup {
  font-size: 22px;
  font-weight: 600;
  vertical-align: top;
  margin-right: 4px;
}
.pricing-card-price-unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
}
.pricing-card-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 20px;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.pricing-card li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
}
.pricing-card .btn-primary {
  width: 100%;
  justify-content: center;
}
.pricing-trial-note {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.is-featured { transform: none; }
}

/* Sticky WhatsApp button mobile */
.sticky-wa {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 999;
  background: #25D366;
  color: white;
  padding: 16px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}
.sticky-wa svg { flex-shrink: 0; }
@media (max-width: 768px) {
  .sticky-wa { display: flex; }
  body { padding-bottom: 80px; }
}

/* Bloco aviso IA + RGPD */
.ai-disclosure {
  max-width: 900px;
  margin: 60px auto 40px;
  padding: 32px;
  background: rgba(74, 24, 120, 0.04);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
}
.ai-disclosure h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-disclosure p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 10px;
}
.ai-disclosure p:last-child { margin-bottom: 0; }

/* Nota IA dentro do passo 2 do "Como funciona" */
.step-ai-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  background: rgba(86,25,126,.08);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
}
