/* Site institucional do CQ Chat (cqchat.com.br) — docs/site-institucional.md.
   Páginas estáticas, sem JavaScript e sem recurso externo: abre igual para o rastreador da Meta e para qualquer visitante.
   Cores no mesmo padrão do sistema (web/style.css): tokens no :root, nunca cor solta. Sempre tema claro (decisão do Leo, 15/11/2026). */

:root {
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #eef3f0;
  --border: #e0e7e3;
  --text: #13201b;
  --text-2: #4b5c55;
  --text-3: #6b7c74;
  --brand: #08704d;
  --brand-hover: #065d40;
  --brand-soft: #e2f3ea;
  --brand-text: #066043;
  --on-brand: #ffffff;
  --mint: #8ef0bb;
  --whatsapp: #25D366;
  --whatsapp-hover: #20bd5a;
  --dark: #0f1d18;
  --dark-2: #182b23;
  --dark-text: #c3d6cc;
  --shadow: 0 4px 14px rgb(16 36 28 / .08), 0 1px 3px rgb(16 36 28 / .06);
  --radius: 12px;
  --width: 1080px;
  color-scheme: light;
}


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--brand-text); }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* Topo: fundo claro com o logo verde */
.top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 33px; width: auto; }
.top nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.top nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 550; padding: 6px 0; }
.top nav { align-items: center; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--brand-text); }
.top nav a.login { display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px; border-radius: 9px; background: var(--brand); color: var(--on-brand); font-weight: 650; }
.top nav a.login:hover { background: var(--brand-hover); color: var(--on-brand); }

/* Capa: texto à esquerda; à direita, celular com a conversa (HTML) na frente do print da Caixa de Entrada */
.hero { position: relative; overflow: hidden; color: #fff; padding: 64px 0 80px;
  background: radial-gradient(900px 520px at 85% 10%, rgb(34 167 118 / .28), transparent 60%),
              radial-gradient(700px 420px at 0% 100%, rgb(214 157 0 / .10), transparent 60%), var(--dark); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.18fr); gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.015em; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero-text > p:not(.eyebrow) { color: var(--dark-text); font-size: clamp(17px, 2vw, 19px); max-width: 560px; margin: 0 0 28px; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; letter-spacing: .02em;
  background: var(--brand-soft); color: var(--brand-text); }
.hero .eyebrow { background: rgb(142 240 187 / .12); color: var(--mint); border: 1px solid rgb(142 240 187 / .25); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 650; text-decoration: none; }
.button.primary { background: var(--mint); color: #06140f; }
.button.primary:hover { background: #a9f5cc; color: #06140f; }
.button.ghost { border: 1px solid #36574a; color: #fff; }
.button.ghost:hover { background: var(--dark-2); color: #fff; }

.hero-visual { position: relative; padding: 0 0 90px 60px; }
.frame { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid rgb(255 255 255 / .12);
  box-shadow: 0 30px 70px rgb(0 0 0 / .35), 0 4px 14px rgb(0 0 0 / .2); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.frame img { display: block; width: 100%; height: auto; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #e9efec; border-bottom: 1px solid var(--border); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9d5ce; }
.frame-bar i:first-child { background: #ef8a80; }
.frame-bar i:nth-child(2) { background: #f2c45a; }
.frame-bar i:nth-child(3) { background: #6fcf97; }
.frame-bar span { margin-left: 10px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tilt { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); }
.tilt-right { transform: perspective(1600px) rotateY(9deg) rotateX(3deg); }
:is(.hero-visual, .split-visual):hover .frame { transform: perspective(1600px) rotateY(0) rotateX(0); }

.phone-mock { position: absolute; left: -24px; bottom: -36px; width: 230px; border-radius: 30px; padding: 9px; background: #0b1512;
  box-shadow: 0 30px 60px rgb(0 0 0 / .45), inset 0 0 0 1px rgb(255 255 255 / .08); }
.phone-head { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 22px 22px 0 0; background: var(--brand); color: #fff; }
.phone-head strong { display: block; font-size: 13px; line-height: 1.2; }
.phone-head small { display: block; font-size: 11px; opacity: .8; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: #06140f; font-size: 11px; font-weight: 750; }
.phone-body { display: flex; flex-direction: column; gap: 7px; min-height: 270px; padding: 12px 10px 14px; border-radius: 0 0 22px 22px;
  background: #efe9df radial-gradient(rgb(0 0 0 / .05) 1px, transparent 1px) 0 0 / 14px 14px; }
.bubble { max-width: 86%; margin: 0; padding: 7px 10px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; color: #1c2a24; box-shadow: 0 1px 1px rgb(0 0 0 / .08); }
.bubble.in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: #d9f7e5; border-top-right-radius: 4px; }
.chips { display: grid; gap: 4px; margin-top: 7px; }
.chips b { display: block; padding: 5px 8px; border-radius: 8px; background: #fff; color: var(--brand-text); text-align: center; font-weight: 600; font-size: 12px; }
.typing { align-self: flex-start; display: flex; gap: 4px; margin: 0; padding: 9px 12px; border-radius: 12px; background: #fff; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aaba3; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
.toast { position: absolute; right: -18px; top: 46%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: #fff; color: var(--text); box-shadow: 0 16px 40px rgb(0 0 0 / .3); font-size: 13px; }
.toast strong, .toast small { display: block; line-height: 1.3; }
.toast small { color: var(--text-3); }
.toast-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308704d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* A conversa aparece em sequência, como se estivesse acontecendo agora */
.bubble, .typing, .toast { animation: pop .5s cubic-bezier(.2,.8,.2,1.2) both; animation-delay: calc(var(--d) * .9s + .4s); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* Prints ao lado do texto, alternando o lado, com etiquetas flutuando */
.split-section { padding: 72px 0; overflow: hidden; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.split.reverse .split-text { order: 2; }
.split-text h2 { font-size: clamp(26px, 3.4vw, 36px); }
.split-text > p:not(.eyebrow) { color: var(--text-2); font-size: 17px; margin: 0 0 22px; }
.checks.single { grid-template-columns: 1fr; }
.split-visual { position: relative; padding: 18px; }
.split-visual .frame { border-color: var(--border); box-shadow: 0 24px 60px rgb(16 36 28 / .16), 0 3px 10px rgb(16 36 28 / .06); }
.pill { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface);
  color: var(--text); font-size: 13px; font-weight: 650; white-space: nowrap; box-shadow: 0 10px 28px rgb(16 36 28 / .16); animation: float 5s ease-in-out infinite; }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.pill-a { left: -6px; top: 26%; }
.pill-a i { background: #e0a100; }
.pill-b { left: 30%; bottom: -4px; animation-delay: -1.6s; }
.pill-c { right: -4px; top: 4%; animation-delay: -3.2s; }
.pill-c i { background: #2aa59a; }
.pill-d { right: -2px; top: 26%; }
.pill-d i { background: #4f8fd6; }
.pill-e { left: 8%; bottom: -2px; animation-delay: -2.4s; }
.pill-e i { background: #e0a100; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  .bubble, .typing, .toast { animation: none; }
  .pill, .typing i { animation: none; }
  .frame { transition: none; }
}
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-text { order: 0; }
  .hero-visual { max-width: 620px; }
}
@media (max-width: 560px) {
  .hero-visual { padding: 0; display: flex; justify-content: center; }
  .hero-visual .frame, .toast { display: none; }
  .phone-mock { position: static; width: min(280px, 100%); }
  .pill { font-size: 12px; padding: 6px 11px; }
  .split-visual { padding: 10px 0 24px; }
}

/* Seções */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--border); }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.lead { color: var(--text-2); font-size: 18px; max-width: 720px; margin: 0 0 32px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
section.alt .card { background: var(--bg); box-shadow: none; }
section.alt .split-visual .frame { border-color: var(--border); }
.card h3 { font-size: 17px; margin: 12px 0 6px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; margin-bottom: 12px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--text-2); font-size: 15px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.checks li strong { color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308704d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

.contact { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.contact .card a { font-weight: 650; font-size: 18px; word-break: break-word; }

/* Páginas de texto (privacidade, termos, exclusão) */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(28px, 4.4vw, 38px); line-height: 1.2; margin: 0 0 8px; }
.doc .updated { color: var(--text-3); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; scroll-margin-top: 16px; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 8px; }
.toc p { margin: 0 0 6px; font-weight: 650; color: var(--text); }
.toc ol { margin: 0; columns: 2 260px; }
.note { background: var(--brand-soft); border-radius: var(--radius); padding: 16px 20px; color: var(--text); margin: 20px 0; }
.note p { color: var(--text); margin: 0; }
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--text); background: var(--surface-2); font-weight: 650; }
td { color: var(--text-2); }
tr:last-child td { border-bottom: 0; }
.price td:first-child, .price th:first-child { white-space: nowrap; }
.price td:not(:first-child), .price th:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price td:first-child { color: var(--text); font-weight: 650; }
.button.whatsapp { background: var(--whatsapp); color: #fff; }
.button.whatsapp:hover { background: var(--whatsapp-hover); color: #fff; }

.pricing { padding: 72px 0 88px; }
.pricing-head { max-width: 680px; margin-bottom: 36px; }
.pricing-head h1 { margin: 0 0 14px; font-size: clamp(34px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -.025em; }
.pricing-head p, .pricing .section-lead { margin: 0; color: var(--text-2); font-size: 18px; line-height: 1.5; }
.board-scroll { overflow-x: auto; }
.board { min-width: 760px; }
.cols { display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, .8fr)); column-gap: 28px; align-items: center; }
.choose { align-items: start; }
.plan-col { display: flex; flex-direction: column; align-items: center; }
.choose h2 { margin: 0; font-size: 22px; letter-spacing: -.015em; }
.plan-more { display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; border: 0; border-radius: 999px; background: var(--brand-soft); padding: 6px 12px; color: var(--brand-text); font: 650 13px/1.3 var(--font); cursor: pointer; }
.plan-more:hover { color: var(--brand); }
.plan-col { text-align: center; }
.plan-col h3 { margin: 0; font-size: 16px; font-weight: 700; }
.plan-col p { margin: 4px 0 14px; min-height: 2.6em; color: var(--text-3); font-size: 13px; line-height: 1.35; }
.plan-cta { width: 100%; min-height: 44px; border: 0; border-radius: 999px; background: var(--brand); color: var(--on-brand); }
.plan-cta:hover { background: var(--brand-hover); color: var(--on-brand); }
.plan-cta:focus-visible { outline-color: var(--text); }
.board .section-title { margin: 40px 0 6px; font-size: 22px; letter-spacing: -.015em; }
.feature { padding: 16px 0; border-top: 1px solid var(--border); align-items: center; }
.feature:last-child { border-bottom: 1px solid var(--border); }
.feature .feat strong { display: block; font-size: 15px; }
.feature .feat span { display: block; margin-top: 2px; color: var(--text-3); font-size: 13px; line-height: 1.45; }
.feature > div:not(.feat) { text-align: center; color: var(--text); font-weight: 650; }
.feature .off { color: var(--text-3); font-weight: 500; }
.price-modal {
  border: 0; padding: 0; margin: auto; width: min(760px, calc(100vw - 48px)); max-height: min(80vh, 760px);
  background: var(--surface); color: var(--text); border-radius: 22px;
  box-shadow: 0 30px 80px rgb(15 29 24 / .28); overflow: hidden;
}
.price-modal::backdrop { background: rgb(15 29 24 / .46); }
.price-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px 28px 0; }
.price-modal-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.price-modal-head p { margin: 6px 0 0; max-width: 46ch; color: var(--text-3); font-size: 14px; line-height: 1.45; }
.price-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-top: 2px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.price-close:hover { background: var(--border); color: var(--text); }
.price-close svg { width: 16px; height: 16px; }
.price-scroll { max-height: calc(80vh - 120px); overflow: auto; padding: 12px 16px 20px; }
.price-modal .price, .sheet .price { background: transparent; }
.price-modal .price th, .sheet .price th { position: sticky; top: 0; z-index: 1; background: var(--surface); color: var(--text-3); font-size: 12px; font-weight: 650; letter-spacing: .02em; border-bottom: 1px solid var(--border); box-shadow: none; }
.price-modal .price td, .sheet .price td { border-bottom: 1px solid #eef2ef; padding: 12px 16px; background: transparent; }
.price-modal .price tr:last-child td, .sheet .price tr:last-child td { border-bottom: 0; }
.price-modal .price tbody tr:hover td, .sheet .price tbody tr:hover td { background: #f6faf8; }
.price tr.from td { background: var(--brand-soft); }
.price tr.from:hover td { background: #d7eee3; }
.price tr.from td:first-child { color: var(--brand-text); }
.sheet { max-width: 720px; background: var(--surface); border-radius: 18px; overflow: auto; max-height: 70vh; }
.sheet .price thead th { top: 0; }

/* Rodapé */
.foot { background: var(--dark); color: var(--dark-text); padding: 36px 0 96px; font-size: 14px; }
.foot .wrap { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.foot p { margin: 0 0 6px; }
.foot-logo { display: block; height: 28px; width: auto; margin-bottom: 12px; }
.foot a { color: var(--dark-text); }
.foot a:hover { color: var(--mint); }
.foot nav { display: grid; gap: 6px; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid #22372e; padding-top: 16px; color: #7d958a; font-size: 13px; }

@media (max-width: 800px) {
  .price-modal { width: calc(100vw - 24px); border-radius: 18px; }
}
@media (max-width: 720px) {
  .top nav a:not(.login) { display: none; }
  .top .wrap { flex-wrap: nowrap; }
  .pricing { padding: 40px 0 64px; }
}

@media (max-width: 560px) {
  .top .wrap { padding-block: 10px; }
  section { padding: 48px 0; }
  .hero { padding: 40px 0 52px; }
  .wrap { padding: 0 16px; }
}

/* Atalho fixo, no mesmo desenho do botão do cqfinance.com.br */
.float-chat {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .12), 0 4px 6px -4px rgb(0 0 0 / .12);
  transition: transform .15s ease, background-color .15s ease;
}
.float-chat:hover { background: var(--whatsapp-hover); color: #fff; transform: scale(1.05); }
.float-chat svg { width: 28px; height: 28px; display: block; }

.why-cq { padding-bottom: 0; }
.pricing .meta-note { max-width: 76ch; margin: 18px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 760px) {
  .board { min-width: 0; }
  .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; }
  .choose h2, .feature .feat { grid-column: 1 / -1; margin-bottom: 10px; }
  .plan-col .plan-cta { padding-inline: 6px; font-size: 13px; }
  .feature > div:not(.feat) { font-size: 14px; }
}
.mobile-plan { display: none; }
@media (max-width: 760px) { .mobile-plan { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); } }
