:root {
  --blue-900: #0f2a7a;
  --blue-800: #1a3aa8;
  --blue-700: #1f4fd6;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-50: #eef4ff;
  --green: #22c55e;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #e2e8f0;
  --bg: #f4f8fb;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
svg { width: 16px; height: 16px; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 11px 20px;
  font-weight: 600; font-size: 13px; transition: .15s ease;
}
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--blue-800); }
.btn-white:hover { background: var(--blue-50); }
.btn-ghost { background: transparent; color: var(--muted); font-weight: 500; }
.btn-ghost:hover { color: #dc2626; }
.btn-outline { background: #fff; color: var(--blue-800); border: 1px solid var(--border); padding: 8px 12px; }
.btn-outline:hover { border-color: var(--blue-500); background: var(--blue-50); }
.btn-glass { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); }
.export-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cta-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn[hidden] { display: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  background:
    radial-gradient(1200px 400px at 80% 0%, rgba(59, 130, 246, .45), transparent 60%),
    linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%);
  padding-bottom: 72px;
}
.topbar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
/* logo.png = 500x143; o ícone ocupa ~140px da esquerda.
   Mostra o ícone com as cores originais e só o texto em branco. */
.logo { --logo-h: 36px; display: flex; align-items: center; }
.logo-part { display: block; height: var(--logo-h); overflow: hidden; }
.logo-part img { display: block; height: var(--logo-h); width: auto; max-width: none; }
.logo-icon { width: calc(var(--logo-h) * 140 / 143); }
.logo-text { width: calc(var(--logo-h) * 360 / 143); }
.logo-text img { margin-left: calc(var(--logo-h) * -140 / 143); filter: brightness(0) invert(1); }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.link-support { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .9; }
.link-support:hover { opacity: 1; }

.hero-content {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px;
  padding-top: 40px;
}
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; font-weight: 700; max-width: 520px; }
.hero p { margin: 0 0 28px; opacity: .85; max-width: 480px; font-size: 15px; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.steps li { display: flex; align-items: center; gap: 8px; opacity: .92; }
.steps li span {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .5); font-size: 11px; font-weight: 600;
}
.steps .step-line { width: 36px; height: 1px; background: rgba(255, 255, 255, .35); }

/* Illustration */
.hero-illustration { position: relative; height: 240px; display: flex; justify-content: center; }
.doc { position: absolute; width: 200px; height: 220px; border-radius: 14px; }
.doc-back { background: rgba(255, 255, 255, .25); transform: rotate(-8deg) translate(-24px, 10px); }
.doc-front {
  background: #fff; box-shadow: 0 24px 48px rgba(10, 25, 80, .35);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 10px;
  transform: rotate(3deg);
}
.doc-badge {
  position: absolute; top: 14px; right: 14px; background: #fee2e2; color: #dc2626;
  font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
}
.bar { display: block; height: 7px; border-radius: 4px; background: #e2e8f0; }
.bar-blue { background: var(--blue-700); }
.w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.doc-row { display: flex; gap: 10px; align-items: center; margin: 4px 0; }
.doc-img { width: 44px; height: 38px; border-radius: 6px; border: 1.5px solid #cbd5e1; display: grid; place-items: center; color: #94a3b8; }
.doc-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.doc-check {
  position: absolute; right: -14px; bottom: -14px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; border: 4px solid #fff;
}

/* ---------- Layout ---------- */
.layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start;
  margin-top: -36px; position: relative;
}
.sidebar { position: sticky; top: 20px; }
.progress-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.eyebrow { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.progress-count { font-size: 12px; color: var(--muted-2); }
.progress-count strong { color: var(--blue-700); font-size: 15px; }
.progress-bar { height: 6px; border-radius: 99px; background: #edf2f7; overflow: hidden; margin-bottom: 16px; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-500), var(--blue-700)); transition: width .3s ease; }

.nav-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nav-list a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  font-size: 12.5px; color: #334155; transition: .15s;
}
.nav-list a:hover { background: #f8fafc; }
.nav-list a.active { background: var(--blue-50); color: var(--blue-800); font-weight: 600; }
.nav-list a svg { color: var(--muted); }
.nav-list a.active svg { color: var(--blue-700); }
.nav-list .count {
  margin-left: auto; font-size: 10.5px; color: var(--muted); background: #f1f5f9;
  padding: 1px 7px; border-radius: 99px; font-weight: 500;
}
.nav-list a.complete .count { background: #dcfce7; color: #15803d; }
.progress-card .btn-ghost { margin-top: 6px; }
.sidebar-note { font-size: 11px; color: var(--muted); padding: 12px 4px 0; margin: 0; }

/* ---------- Sections ---------- */
.sections { display: flex; flex-direction: column; gap: 24px; }
.section-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; scroll-margin-top: 20px;
}
.section-head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.section-icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue-700);
  display: grid; place-items: center;
}
.section-icon svg { width: 20px; height: 20px; }
.section-head h2 { margin: 0; font-size: 17px; color: var(--blue-800); }
.section-head p { margin: 0; font-size: 12px; color: var(--muted); }

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.field-row .field { margin-bottom: 0; }
.field label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.field .num {
  width: 18px; height: 18px; border-radius: 50%; background: #f1f5f9; color: var(--muted);
  font-size: 10px; display: grid; place-items: center; font-weight: 600;
}
.field.filled .num { background: var(--blue-700); color: #fff; }

.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.input-wrap input {
  width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 10px;
  padding: 0 14px 0 36px; font: inherit; font-size: 13px; color: var(--text); background: #fff;
  transition: .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
.input-wrap input:focus, .topic-box:focus-within { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }

.topic-box { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: .15s; background: #fff; }
.topic-box.dragover { border-color: var(--blue-500); background: var(--blue-50); border-style: dashed; }
.topic-box textarea {
  display: block; width: 100%; min-height: 96px; border: 0; resize: vertical; padding: 14px;
  font: inherit; font-size: 13px; color: var(--text); background: transparent;
}
.topic-box textarea:focus { outline: none; }
.attachments { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 14px 12px; }
.attachments:empty { display: none; }
.thumb {
  position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: #f8fafc;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .tag {
  position: absolute; left: 4px; bottom: 4px; background: rgba(15, 23, 42, .75); color: #fff;
  font-size: 9px; padding: 1px 5px; border-radius: 4px; display: flex; align-items: center; gap: 3px;
}
.thumb .tag svg { width: 9px; height: 9px; }
.thumb .remove {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; border: 0;
  background: rgba(15, 23, 42, .7); color: #fff; display: grid; place-items: center; padding: 0;
}
.thumb .remove svg { width: 11px; height: 11px; }
.thumb.loading { display: grid; place-items: center; font-size: 10px; color: var(--muted); }

.topic-toolbar {
  display: flex; align-items: center; gap: 4px; padding: 8px 10px;
  border-top: 1px solid var(--border); background: #f8fafc;
}
.tool-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent;
  padding: 5px 8px; border-radius: 8px; font-size: 11.5px; color: #334155;
}
.tool-btn:hover { background: #eef2f7; color: var(--blue-700); }
.tool-btn svg { width: 14px; height: 14px; }
.drop-hint { margin-left: auto; font-size: 10.5px; color: var(--muted-2); }

/* ---------- Campos especiais ---------- */
.topic-box textarea.rows-2 { min-height: 64px; }
.sub-label { margin-top: 16px; }

/* Chips (limites críticos) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px;
  border: 1px solid var(--border); background: #fff; color: #334155; font-size: 11.5px; font-weight: 500;
  transition: .15s;
}
.chip svg { width: 11px; height: 11px; display: none; }
.chip:hover { border-color: var(--blue-500); color: var(--blue-700); }
.chip.on { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.chip.on svg { display: block; }

/* Listas repetíveis (planos / FAQ) */
.list { display: flex; flex-direction: column; gap: 12px; }
.list-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: #fff; }
.list-item input[type="text"], .list-item textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px;
  font: inherit; font-size: 13px; color: var(--text); background: #fff; transition: .15s;
}
.list-item textarea { min-height: 60px; resize: vertical; }
.list-item input:focus, .list-item textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
.list-item input:disabled { background: #f8fafc; color: var(--muted-2); }
.list-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.list-item-head span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-700); }
.plan-grid { display: grid; grid-template-columns: 1fr 1.7fr 1.1fr; gap: 10px; align-items: start; }
.price-col { display: flex; flex-direction: column; gap: 6px; }
.field .check { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); cursor: pointer; margin: 0; font-weight: 400; white-space: nowrap; }
.check input { width: 15px; height: 15px; accent-color: var(--blue-700); margin: 0; }
.faq-item { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 12px; align-items: start; }
.icon-btn { border: 0; background: transparent; padding: 6px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.icon-btn.danger { color: #dc2626; }
.icon-btn.danger:hover { background: #fee2e2; }
.add-btn {
  width: 100%; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc;
  font-size: 13px; font-weight: 500; color: #334155; transition: .15s;
}
.add-btn:hover { border-color: var(--blue-500); color: var(--blue-700); background: var(--blue-50); }

/* ---------- Wizard ---------- */
.main-col { min-width: 0; }
.step-panel[hidden] { display: none; }
.step-panel { animation: stepIn .25s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.wizard-nav .btn-outline { padding: 11px 18px; }
.wizard-nav .btn:disabled { visibility: hidden; }
.wizard-step { font-size: 12px; color: var(--muted); }
.nav-list .step-no {
  width: 20px; height: 20px; border-radius: 50%; background: #f1f5f9; color: var(--muted);
  font-size: 10.5px; font-weight: 600; display: grid; place-items: center; flex-shrink: 0;
}
.nav-list a.active .step-no { background: var(--blue-700); color: #fff; }
.nav-list a.complete:not(.active) .step-no { background: #dcfce7; color: #15803d; }

/* Revisão */
.review-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 22px; }
.review-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; }
.review-group h3 svg { color: var(--blue-700); }
.review-group h3 .count { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--muted); }
.review-group ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.review-group li + li { border-top: 1px solid var(--border); }
.review-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0;
  background: #fff; text-align: left; font-size: 12.5px; color: var(--text);
}
.review-item:hover { background: #f8fafc; }
.review-item .status {
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  border: 1.5px solid #cbd5e1;
}
.review-item.ok .status { background: var(--green); border-color: var(--green); color: #fff; }
.review-item .status svg { width: 11px; height: 11px; }
.review-item .meta { margin-left: auto; font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.review-item:not(.ok) .label { color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  border-radius: var(--radius); color: #fff; padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  box-shadow: 0 12px 28px rgba(31, 79, 214, .3);
}
.cta h2 { margin: 0; font-size: 18px; }
.cta p { margin: 0; font-size: 12.5px; opacity: .85; }
.footer { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted-2); font-size: 11px; padding: 40px 24px 32px; }
.footer-logo { height: 26px; width: auto; opacity: .85; }

/* ---------- Modal de envio ---------- */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal[hidden], .modal-state[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); }
.modal-card {
  position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 18px;
  padding: 32px 28px 24px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); animation: stepIn .2s ease;
}
.modal-x { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; color: var(--muted); padding: 6px; border-radius: 8px; }
.modal-x:hover { background: #f1f5f9; }
.modal-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.modal-state h3 { margin: 4px 0 0; font-size: 18px; }
.modal-state p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.modal-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 22px; }
.modal-icon svg { width: 24px; height: 24px; }
.modal-icon.ok { background: var(--green); }
.modal-icon.warn { background: #f59e0b; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--blue-50); border-top-color: var(--blue-700); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-box { display: flex; gap: 8px; width: 100%; }
.link-box input {
  flex: 1; min-width: 0; height: 40px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px;
  font: inherit; font-size: 12px; color: var(--text); background: #f8fafc;
}
.btn-whatsapp { background: #25d366; color: #fff; padding: 13px 20px; font-size: 14px; margin-top: 6px; }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-whatsapp svg { width: 18px; height: 18px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--text); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13px;
  transition: .25s ease; pointer-events: none; z-index: 50; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-illustration { display: none; }
  .hero h1 { font-size: 30px; }
  .layout { grid-template-columns: 1fr; margin-top: -28px; }
  .sidebar { position: static; }
  .nav-list { flex-direction: row; overflow-x: auto; }
  .nav-list a { white-space: nowrap; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .link-support { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .faq-item { grid-template-columns: 1fr auto; }
  .faq-item textarea { grid-column: 1; grid-row: 2; }
  .faq-item .icon-btn { grid-column: 2; grid-row: 1; }
  .section-card { padding: 18px; }
  .steps .step-line { display: none; }
  .drop-hint { display: none; }
  .cta { flex-direction: column; align-items: flex-start; }
  .wizard-step { display: none; }
  .review-item .meta { display: none; }
}
