/* Página /trafego — marca GreatMinds (tokens de ~/.claude/design-banco/marcas/greatminds/marca.json):
   fundo #262B31, texto #EDEDED, destaque ciano #62D9D9, tipografia Space Grotesk. Só tema escuro,
   igual ao site principal.
   Na tela da recomendação a página veste a marca do produto ([data-brand] no <html>, R6 do plano
   docs/2026-11-11-plano-recomendacao-trafego.md). Os temas ficam no fim deste arquivo. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/diagnostico/fonts/SpaceGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/diagnostico/fonts/SpaceGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Corpo do Empresário IA (e da Prospecção, que usa a mesma marca). Autohospedada: o IP do visitante
   não sai para terceiro. Licença ITF Free Font License 2.0 (uso comercial e embutir em site permitidos),
   cópia de ~/.claude/design-banco/tipografia/general-sans. Só baixa quando o tema dessa marca a usa. */
@font-face {
  font-family: "General Sans";
  src: url("/diagnostico/fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #262b31;          /* tinta — fundo do site */
  --paper-strong: #2e343b;   /* superfície de card */
  --paper-deep: #020405;     /* tinta profunda — texto do botão */
  --ink: #ededed;            /* papel — cor do texto */
  --muted: #9da0a2;          /* apoio */
  --muted-strong: #c4c6c8;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #62d9d9;         /* destaque / ação */
  --accent-hover: #5ca2e6;   /* destaque azul */
  --accent-2: #5442a6;       /* destaque roxo — só no brilho do fundo */
  --accent-soft: rgba(98, 217, 217, 0.12);
  --success: #6eca9f;
  --danger: #ff8a7a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-gm: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: var(--font-gm);
  --font-display: var(--font-body);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fundo da página. As camadas .morph-bg e .morph-cover (agente trocando a marca) usam o mesmo fundo. */
body, .morph-bg, .morph-cover {
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 25rem),
    radial-gradient(circle at 92% 90%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 25rem),
    var(--paper);
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }

.ambient {
  position: fixed;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.42;
}
.ambient::before, .ambient::after { position: absolute; inset: 14%; border: 1px solid var(--line); border-radius: 50%; content: ""; }
.ambient::after { inset: 28%; }
.ambient-one { top: -16rem; left: -12rem; transform: rotate(12deg); }
.ambient-two { right: -17rem; bottom: -15rem; transform: rotate(-18deg); }

.site-shell { width: min(100%, 1180px); min-height: 100vh; margin: 0 auto; padding: 0 32px; }

.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 88px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-logo { width: 36px; height: auto; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 35%, transparent)); }
.brand-symbol { display: none; width: 32px; height: 32px; color: var(--accent); }
.brand-copy { display: grid; gap: 0; line-height: 1.08; }
.brand-copy strong { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.11em; }
.brand-copy span { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: 0.04em; }

.app-main { display: grid; min-height: calc(100vh - 153px); align-content: center; padding: 56px 0 44px; }
.progress-area { width: min(100%, 680px); margin: 0 auto 36px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-family: var(--font-display); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.progress-track { height: 3px; overflow: hidden; border-radius: 999px; background: var(--line); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); transition: width 260ms cubic-bezier(0.16, 1, 0.3, 1); }

.view { width: min(100%, 680px); margin: 0 auto; animation: view-in 300ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.view.is-first { animation: none; }
.resuming #view { visibility: hidden; }
/* Troca de tela com direção: avançar entra pela direita, voltar pela esquerda; ao tocar numa opção a tela atual sai antes. */
@keyframes view-in { from { opacity: 0; transform: translateX(16px); } }
@keyframes view-in-back { from { opacity: 0; transform: translateX(-16px); } }
@keyframes view-out { to { opacity: 0; transform: translateX(-12px); } }
.view[data-dir="back"] { animation-name: view-in-back; }
.view.is-leaving { animation: view-out 130ms cubic-bezier(0.7, 0, 0.84, 1) both; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--accent); font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow::before { width: 24px; height: 1px; background: currentColor; content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
h1 { max-width: 660px; margin-bottom: 24px; font-size: clamp(2.5rem, 6vw, 4.8rem); font-weight: 600; line-height: 0.99; }
h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.06; }
h3 { margin-bottom: 5px; font-size: 1.05rem; line-height: 1.25; }
.lede { max-width: 565px; margin-bottom: 32px; color: var(--muted-strong); font-size: clamp(1.05rem, 2.2vw, 1.25rem); line-height: 1.52; }
/* Contexto acima da pergunta (ex.: o valor do investimento antes de perguntar se cabe). */
/* Título da tela do investimento: branco e em fonte de título, no mesmo peso visual da pergunta abaixo. */
.question-lead { max-width: 610px; margin: 0 0 14px; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
/* Valor em blocos (pergunta do investimento): entram um depois do outro, uma vez. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; max-width: 520px; margin: 0 0 22px; }
.split-part { display: grid; gap: 2px; align-content: start; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 14px; background: color-mix(in srgb, var(--paper-strong) 78%, transparent); animation: split-in 420ms cubic-bezier(0.16, 1, 0.3, 1) 140ms both; }
.split-part:last-child { animation-delay: 420ms; }
.split-part strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.split-part span { color: var(--accent); font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.split-part small { margin-top: 6px; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.split-plus { align-self: center; color: var(--muted); font-family: var(--font-display); font-size: 1.15rem; animation: split-in 300ms cubic-bezier(0.16, 1, 0.3, 1) 300ms both; }
@keyframes split-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } }
.question-helper { max-width: 610px; margin: -1px 0 26px; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.micro-note { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.5; }

.intro-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
/* Abertura compacta: título menor que o h1 padrão para tudo caber na primeira tela, sem rolagem */
.intro-layout h1 { margin-bottom: 14px; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.02; }
.intro-layout .eyebrow { margin-bottom: 12px; }
.intro-layout .lede { margin-bottom: 22px; font-size: clamp(1rem, 1.8vw, 1.12rem); }
.intro-time { margin: 12px 0 0; color: var(--muted); font-size: 0.84rem; }
.intro-benefits { display: grid; gap: 10px; padding: 0; margin: 0 0 18px; list-style: none; color: var(--muted-strong); font-size: .94rem; line-height: 1.4; }
.intro-benefits li { display: flex; align-items: flex-start; gap: 10px; }
/* Check desenhado em CSS: o caractere "✓" não existe nas fontes da página e caía na fonte do aparelho. */
.intro-benefits li::before, .offer-check { flex: none; width: 6px; height: 11px; margin: 3px 5px 0 4px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.intro-benefits li::before { content: ""; }
/* Bônus do CRM: mesma linguagem da linha de resposta (.rec-reply), sem caixa. */
/* Bônus: é o incentivo mais forte da capa (grátis); texto em tinta cheia, lista de benefícios um tom abaixo. */
.intro-bonus { display: block; max-width: 520px; margin: 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--accent); color: var(--ink); font-size: 0.94rem; line-height: 1.45; }
.intro-bonus strong { color: var(--ink); }
.intro-bonus .crm-bonus-kicker { display: block; margin-bottom: 4px; }
/* Movimento da capa: começa depois da primeira pintura e só mexe em fundo, transform e opacidade.
   Título e botão já nascem visíveis (não atrasa o carregamento nem muda o layout). Ordem do olhar:
   grifo no título → brilho no botão → os três passos, um por vez → bônus. Toca uma vez. */
.h1-mark { padding-bottom: 0.04em; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 0.07em; animation: mark-draw 800ms cubic-bezier(0.16, 1, 0.3, 1) 350ms forwards; }
@keyframes mark-draw { to { background-size: 100% 0.07em; } }
.intro-cta, .rec-layout:not(.rec-seq) .rec-card .primary-button { position: relative; overflow: hidden; }
.intro-cta::after, .rec-layout:not(.rec-seq) .rec-card .primary-button::after { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 36%, color-mix(in srgb, #fff 50%, transparent) 50%, transparent 64%); transform: translateX(-110%); content: ""; pointer-events: none; animation: cta-sheen 900ms cubic-bezier(0.4, 0, 0.2, 1) 1100ms both; }
@keyframes cta-sheen { to { transform: translateX(110%); } }
.intro-cta .button-arrow { animation: arrow-nudge 700ms cubic-bezier(0.16, 1, 0.3, 1) 1900ms; }
@keyframes arrow-nudge { 40% { transform: translateX(6px); } }
.intro-benefits li, .intro-bonus { animation: benefit-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.intro-benefits li:nth-child(1) { animation-delay: 600ms; }
.intro-benefits li:nth-child(2) { animation-delay: 800ms; }
.intro-benefits li:nth-child(3) { animation-delay: 1000ms; }
.intro-bonus { animation-delay: 1250ms; }
.intro-benefits li::before { animation: check-draw 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: inherit; }
@keyframes benefit-in { from { opacity: 0.3; transform: translateX(-8px); } }
@keyframes check-draw { from { transform: rotate(45deg) scale(0); } }
/* Computador: o que a pessoa faz à esquerda, o que ela leva à direita; a tela deixa de ter meia página vazia. */
@media (min-width: 1024px) {
  .view:has(.intro-layout) { width: 100%; }
  .primary-button.intro-cta { min-height: 58px; padding: 0 28px; font-size: 1rem; }
  .intro-benefits { font-size: 1rem; }
  .intro-layout { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 72px; align-items: end; }
  .intro-aside { padding: 4px 0 4px 32px; border-left: 1px solid var(--line); }
}

.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 21px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.primary-button { border: 1px solid var(--accent); background: var(--accent); color: var(--paper-deep); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 18%, transparent); }
@media (hover: hover) { .primary-button:hover { border-color: var(--accent-hover); background: var(--accent-hover); box-shadow: 0 14px 30px color-mix(in srgb, var(--accent-hover) 25%, transparent); transform: translateY(-2px); } }
.secondary-button { border: 1px solid var(--line-strong); background: transparent; color: var(--ink); }
@media (hover: hover) { .secondary-button:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); } }
/* Hover só com mouse (hover: hover): no toque o estado ficava preso no botão da tela seguinte. */
.primary-button:active, .secondary-button:active { transform: scale(0.98); }
.button-arrow { display: inline-block; font-size: 1.25rem; line-height: 0; transition: transform 160ms ease; }
@media (hover: hover) { .primary-button:hover .button-arrow { transform: translateX(3px); } }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.question-heading { margin-bottom: 35px; }
/* Título de pergunta menor que o das telas de oferta: é formulário, não manchete (24 px no celular, ~33 px no desktop). */
.question-heading h2 { max-width: 625px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.14; letter-spacing: -0.025em; }
.answer-form { display: grid; gap: 17px; }
.answer-form > .micro-note { text-align: center; }
.input-label { display: block; margin-bottom: 9px; color: var(--muted); font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.text-input { width: 100%; min-height: 64px; padding: 0 19px; border: 1px solid var(--line-strong); border-radius: 16px; outline: none; background: var(--paper-strong); color: var(--ink); font-size: 1.1rem; transition: border-color 160ms ease, box-shadow 160ms ease; }
.text-input::placeholder { color: var(--muted); }
.text-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.text-input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 138, 122, 0.12); }
.field-error { min-height: 22px; margin: 7px 0 0; color: var(--danger); font-size: 0.84rem; }
/* Honeypot fora da tela (não usar display:none — alguns robôs pulam campo escondido assim) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choice-grid { display: grid; gap: 11px; }
.choice-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  gap: 13px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: color-mix(in srgb, var(--paper-strong) 78%, transparent);
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
@media (hover: hover) { .choice:hover { border-color: color-mix(in srgb, var(--ink) 34%, transparent); background: var(--paper-strong); transform: translateY(-1px); } }
.choice:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); outline: none; }
.choice.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.choice-index { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-family: var(--font-display); font-size: 0.73rem; font-weight: 600; }
.choice.is-selected .choice-index { border-color: var(--accent); background: var(--accent); color: var(--paper-deep); }
.choice-label { font-size: 0.96rem; line-height: 1.3; }
.choice-hint { display: block; margin-top: 3px; color: var(--muted); font-size: 0.82rem; }
.choice-check { display: grid; width: 18px; height: 18px; place-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 50%; color: transparent; font-size: 0; }
/* Check desenhado (o "✓" não existe nas fontes) e com um pulo curto ao marcar: confirma o toque antes de a tela trocar. */
.choice.is-selected .choice-check { border-color: var(--accent); background: var(--accent); animation: check-pop 220ms cubic-bezier(0.34, 1.56, 0.64, 1); }
/* Múltipla escolha: a marca é quadrada (caixa de seleção), não redonda (opção única). */
.choice-grid.is-multi .choice-check { border-radius: 5px; }
.choice.is-selected .choice-check::after { width: 4px; height: 8px; margin-top: -2px; border: solid var(--paper-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); content: ""; }
@keyframes check-pop { from { transform: scale(0.5); } }
.choice:active { transform: scale(0.985); }

.step-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 31px; }
.back-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; border: 0; background: transparent; color: var(--muted); font-size: 0.88rem; }
@media (hover: hover) { .back-button:hover { color: var(--ink); } }
.continue-button { min-width: 132px; }
.reset-link { margin-top: 28px; font-size: 0.82rem; text-decoration: underline; text-underline-offset: 3px; }

.loading-state { display: grid; min-height: 360px; align-content: center; justify-items: start; }
.loader { display: inline-flex; gap: 7px; margin-bottom: 25px; }
.loader span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 900ms ease-in-out infinite; }
.loader span:nth-child(2) { animation-delay: 120ms; }
.loader span:nth-child(3) { animation-delay: 240ms; }
@keyframes pulse { 0%, 100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

.result-layout { display: grid; gap: 24px; }
.result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.result-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: rgba(110, 202, 159, 0.12); color: var(--success); font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.result-badge::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.result-copy { max-width: 595px; margin-bottom: 0; color: var(--muted-strong); font-size: 1.05rem; line-height: 1.6; }
.result-copy strong { color: var(--ink); }

.scheduler-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--paper-strong) 80%, transparent); box-shadow: var(--shadow); }
.card-kicker { margin-bottom: 8px; color: var(--accent); font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; }
.scheduler-card h3 { margin-bottom: 17px; font-size: 1.35rem; }
.scheduler-note { margin-bottom: 18px; color: var(--muted); font-size: 0.92rem; }
.scheduler-note strong { color: var(--ink); }
.date-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.time-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.date-button, .time-button { min-height: 55px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); text-align: left; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
@media (hover: hover) { .date-button:hover, .time-button:hover { border-color: var(--line-strong); background: var(--paper-strong); transform: translateY(-1px); } }
.date-button.is-selected, .time-button.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.date-button strong { display: block; font-family: var(--font-display); font-size: 0.9rem; text-transform: capitalize; }
.date-button span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.75rem; }
.time-section { margin-top: 21px; }
.time-section-label { display: block; margin-bottom: 9px; color: var(--muted); font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.time-button { text-align: center; }
.scheduler-card .primary-button { width: 100%; margin-top: 21px; }
/* Oferta da reunião de R$ 300: "Agora não" logo abaixo do botão principal, mesma largura. */
.offer-decline { width: 100%; margin-top: 10px; }
.offer-decline + .micro-note { margin-top: 12px; text-align: center; }
.primary-button:disabled { cursor: not-allowed; opacity: 0.45; box-shadow: none; transform: none; }

.success-mark { display: grid; width: 58px; height: 58px; margin-bottom: 22px; place-items: center; border-radius: 18px; background: var(--accent); color: var(--paper-deep); font-family: var(--font-display); font-size: 1.75rem; }
.success-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-box { padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.detail-box span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 0.74rem; }
.detail-box strong { font-family: var(--font-display); font-size: 0.95rem; overflow-wrap: anywhere; }
.detail-wide { grid-column: 1 / -1; }

.site-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 0 0 28px; color: var(--muted); font-size: 0.75rem; text-align: center; }
.site-footer a { color: var(--muted); }
@media (hover: hover) { .site-footer a:hover { color: var(--accent); } }
.footer-separator { color: var(--accent); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 10; max-width: 320px; padding: 12px 15px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper-strong); color: var(--ink); box-shadow: var(--shadow); font-size: 0.85rem; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.noscript { padding: 24px; text-align: center; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.text-input:focus-visible { outline: none; } /* o campo já tem borda + sombra no foco; sem isto o anel ficava duplo */

@media (max-width: 700px) {
  .site-shell { padding: 0 20px; }
  .topbar { min-height: 72px; }
  .app-main { min-height: calc(100vh - 140px); padding: 30px 0 34px; }
  .progress-area { margin-bottom: 30px; }
  h1 { margin-bottom: 18px; font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .lede { margin-bottom: 24px; font-size: 1.02rem; }
  .intro-cta { width: 100%; }
  /* Celular: abertura começa logo abaixo do topo e o aviso fica mais enxuto, para o botão aparecer sem rolar */
  .app-main:has(.intro-layout) { align-content: start; padding-top: 12px; }
  .intro-layout h1 { font-size: clamp(1.9rem, 9vw, 2.15rem); }
  .intro-layout { gap: 26px; }
  .intro-layout .lede { margin-bottom: 16px; }
  .intro-time { text-align: center; }
  .intro-benefits { gap: 8px; margin-bottom: 14px; }
  /* Perguntas: começam no topo e o botão cola no campo, para os dois ficarem acima do teclado. */
  .app-main:has(.question-heading) { align-content: start; }
  .question-heading { margin-bottom: 22px; }
  .choice-grid { gap: 9px; }
  .choice-grid.two-columns, .success-detail { grid-template-columns: 1fr; }
  /* Um marcador só por opção (a bolinha); o número saía duplicado e quebrava o texto em duas linhas. */
  .choice { grid-template-columns: 1fr 18px; min-height: 58px; padding: 11px 16px; }
  .choice-index { display: none; }
  .step-footer { align-items: stretch; flex-direction: column-reverse; margin-top: 4px; }
  /* Sem erro na tela, a linha de erro não reserva espaço: o botão sobe e fica acima do teclado. */
  .field-error:empty { min-height: 0; margin: 0; }
  .answer-form { gap: 12px; }
  .rec-start { justify-self: stretch; width: 100%; }
  .continue-button { width: 100%; }
  .back-button { justify-content: center; }
  .result-header { flex-direction: column; gap: 4px; }
  .scheduler-card { padding: 20px; border-radius: 22px; }
  .date-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .time-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .button-row .primary-button, .button-row .secondary-button { width: 100%; }
  .site-footer { gap: 4px 18px; padding-bottom: 22px; }
  .footer-separator { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
}

/* Etapa da empresa: três campos; Instagram e site com "ainda não tenho" logo abaixo. */
.field-gap { margin-top: 18px; }
.text-input:disabled { opacity: 0.4; cursor: not-allowed; }
.check-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 0.95rem; cursor: pointer; }
.check-row input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--accent); cursor: pointer; }

/* Entregáveis da reunião de R$ 300. */
.offer-items { margin: 18px 0 4px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: color-mix(in srgb, var(--paper-strong) 60%, transparent); }
/* Dentro do card da recomendação a lista não ganha caixa própria (era caixa dentro de caixa). */
.rec-card .offer-items { margin: 0; padding: 0; border: 0; background: none; }
.offer-items-title { display: block; margin-bottom: 10px; color: var(--accent); font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.offer-items ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.offer-items li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 0.95rem; line-height: 1.45; }
.offer-check { overflow: hidden; font-size: 0; }

/* Etapa de resultados (R1): prints lado a lado com scroll-snap; tocar amplia. */
.results-track { display: grid; grid-auto-columns: minmax(240px, 78%); grid-auto-flow: column; gap: 14px; margin: 0 -4px; padding: 4px 4px 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; }
.result-shot { margin: 0; scroll-snap-align: start; }
.result-open { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--paper-strong); cursor: zoom-in; }
.result-open img { display: block; width: 100%; height: auto; }
.result-shot figcaption { margin-top: 9px; color: var(--muted-strong); font-size: 0.86rem; line-height: 1.4; }
.results-note { margin: 14px 0 0; color: var(--muted); font-size: 0.84rem; }
.results-actions { display: flex; align-items: center; gap: 18px; }
.results-skip { font-size: 0.9rem; }
.result-dialog { max-width: min(96vw, 960px); padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--paper-strong); color: var(--ink); }
.result-dialog::backdrop { background: color-mix(in srgb, var(--paper-deep) 82%, transparent); }
.result-dialog img { display: block; max-width: 100%; max-height: 80vh; height: auto; margin-bottom: 12px; border-radius: 10px; }

/* Tela da recomendação (R5). */
.rec-layout { gap: 20px; }
/* Empresário IA, uma pergunta por vez (Iris): só o miolo troca; a linha "Um produto da GreatMinds" fica. */
.rec-panel { display: grid; gap: 14px; }
.rec-panel > h2, .rec-panel > .result-copy, .rec-panel > .eyebrow, .rec-panel > .rec-said { margin: 0; }
.rec-panel h2:focus { outline: none; }
.rec-stage.is-leaving .rec-panel { opacity: 0; transform: translateX(-8px); transition: opacity 150ms cubic-bezier(.7,0,.84,1), transform 150ms cubic-bezier(.7,0,.84,1); }
.rec-stage[data-dir="fwd"] .rec-panel { animation: rec-in-fwd 260ms cubic-bezier(.16,1,.3,1) both; }
.rec-stage[data-dir="back"] .rec-panel { animation: rec-in-back 260ms cubic-bezier(.16,1,.3,1) both; }
@keyframes rec-in-fwd { from { opacity: 0; transform: translateX(12px); } }
@keyframes rec-in-back { from { opacity: 0; transform: translateX(-12px); } }
/* Progresso em segmentos, diferente da barra do formulário: a pessoa não acha que voltou para ele. */
.rec-steps { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 6px; }
.rec-steps span { height: 3px; overflow: hidden; border-radius: 3px; background: var(--line); }
.rec-steps span::after { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 260ms cubic-bezier(.16,1,.3,1); content: ""; }
.rec-steps span.is-done::after { transform: scaleX(1); }
.rec-count { margin-bottom: -4px; }
.rec-reply { margin: 0; padding: 10px 12px; border-left: 2px solid var(--accent); color: var(--muted-strong); font-size: 0.9rem; line-height: 1.45; }
.choice--yn { grid-template-columns: 1fr 18px; min-height: 64px; }
.rec-start { justify-self: start; }
/* O título não pode pular de altura a cada passo: a sequência ancora no topo, não no centro. */
.app-main:has(.rec-seq) { align-content: start; }
.rec-seq.is-asking .brand-origin { display: none; }
.rec-note { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rec-said { margin: 0 0 10px; color: var(--muted-strong); font-size: 1rem; }
.rec-card .success-detail { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.rec-card .detail-box { padding: 0; border: 0; }
.rec-card .detail-box:last-child strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.rec-hint { margin: 14px 0 0; }
.rec-note { margin-top: 12px; text-align: center; }
.rec-more { display: block; margin-top: 12px; color: var(--muted-strong); font-size: 0.88rem; text-align: center; text-underline-offset: 3px; }
.rec-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.rec-dismiss { text-decoration: underline; text-underline-offset: 3px; }
/* Na recomendação o "Começar de novo" continua lá, mas sem sublinhado: são muitas saídas embaixo de um botão só. */
.rec-layout + .reset-link { text-decoration: none; }
/* Recomendação (momento único do fluxo): entra em etapas — o que você disse → a indicação → o card →
   cada item com o check → brilho no botão. Só transform e opacidade; com "reduzir movimento" aparece tudo de uma vez. */
.rec-layout:not(.rec-seq) > div:first-of-type > *, .rec-layout:not(.rec-seq) > .rec-card, .rec-layout:not(.rec-seq) > .crm-bonus, .rec-layout:not(.rec-seq) .offer-items li { animation: rec-rise 460ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes rec-rise { from { opacity: 0; transform: translateY(12px); } }
.rec-layout:not(.rec-seq) > div:first-of-type > .rec-said { animation-delay: 60ms; }
.rec-layout:not(.rec-seq) > div:first-of-type > .eyebrow { animation-delay: 180ms; }
.rec-layout:not(.rec-seq) > div:first-of-type > h2 { animation-delay: 240ms; }
.rec-layout:not(.rec-seq) > div:first-of-type > .result-copy { animation-delay: 340ms; }
.rec-layout:not(.rec-seq) > .rec-card { animation-delay: 460ms; }
.rec-layout:not(.rec-seq) .offer-items li:nth-child(1) { animation-delay: 680ms; }
.rec-layout:not(.rec-seq) .offer-items li:nth-child(2) { animation-delay: 760ms; }
.rec-layout:not(.rec-seq) .offer-items li:nth-child(3) { animation-delay: 840ms; }
.rec-layout:not(.rec-seq) .offer-items li:nth-child(4) { animation-delay: 920ms; }
.rec-layout:not(.rec-seq) .offer-items li:nth-child(n+5) { animation-delay: 1000ms; }
.rec-layout:not(.rec-seq) .offer-items li .offer-check { animation: check-draw 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: inherit; }
.rec-layout:not(.rec-seq) > .crm-bonus { animation-delay: 1000ms; }
.rec-layout:not(.rec-seq) .rec-card .primary-button::after { animation-delay: 1500ms; }
.rec-again { justify-self: start; }
/* Linha de contexto quando o produto é de outra marca: a pessoa não pode achar que caiu em outro site. */
.brand-origin { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.02em; }
.brand-origin img { width: 18px; height: auto; }

/* Bônus do CRM grátis: discreto, abaixo do botão principal. */
.crm-bonus { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.crm-bonus p { margin: 2px 0 0; color: var(--muted-strong); font-size: 0.88rem; line-height: 1.45; }
.crm-bonus strong { color: var(--ink); }
.crm-bonus-kicker { color: var(--accent); font-family: var(--font-display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; }
.crm-bonus-link { display: inline-flex; flex: none; gap: 6px; color: var(--muted-strong); font-size: 0.88rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
/* Telas de "obrigado": o bônus é a única ação, então o link vira o botão principal (um pouco mais baixo que o padrão). */
.crm-bonus-button { flex: none; min-height: 46px; padding: 0 18px; font-size: 0.9rem; }

@media (max-width: 700px) {
  .results-track { grid-auto-columns: 86%; }
  .results-actions { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .results-actions .primary-button { width: 100%; }
  .crm-bonus { flex-direction: column; align-items: flex-start; }
  .crm-bonus-button { width: 100%; }
  /* Recomendação no celular: os dois detalhes lado a lado, para o botão subir para a dobra (Iris). */
  .rec-card .success-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rec-card .detail-box strong { font-size: 0.9rem; }
  .rec-card .detail-box:last-child strong { font-size: 1.05rem; }
  .rec-layout { gap: 14px; }
  .rec-layout .result-copy { font-size: 1rem; line-height: 1.5; }
  .rec-said { font-size: 0.95rem; }
  .rec-card { padding: 16px; }
  /* Rótulo longo ("Quero a reunião de diagnóstico") quebrava em duas linhas com a seta solta. */
  .rec-card .primary-button { gap: 8px; padding: 0 14px; font-size: 0.92rem; }
  /* Área de toque de 44 px no "Ainda não tenho…". */
  .check-row { min-height: 44px; margin-top: 4px; }
}

/* ── Temas por marca (R6) ──────────────────────────────────────────────────
   Valores de ~/.claude/design-banco/marcas/<marca>/marca.json; superfície e linhas derivadas deles
   por color-mix (nenhuma cor nova escrita à mão). */

/* Empresário IA — marca.json (E2 Forja): tinta #100E0D, papel #F6F7F9, apoio_escuro #8A8A93,
   ação #F4682A / hover #FF7A3D, frio_sobre_escuro #2E7FD4 (o quente sempre dentro do frio).
   Display Space Grotesk, corpo General Sans. Contraste: papel/tinta 17,96:1; apoio_escuro/tinta 5,63:1;
   tinta/ação 6,29:1 (verificar.py --contraste, 11/11/2026). */
:root[data-brand="empresario-ia"], [data-brand-preview="empresario-ia"],
:root[data-brand="prospeccao"], [data-brand-preview="prospeccao"] {
  --paper: #100e0d;
  --paper-strong: color-mix(in srgb, var(--ink) 6%, var(--paper));
  --paper-deep: #100e0d;
  --ink: #f6f7f9;
  --muted: #8a8a93;
  --muted-strong: color-mix(in srgb, var(--ink) 80%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 24%, transparent);
  --accent: #f4682a;
  --accent-hover: #ff7a3d;
  --accent-2: #2e7fd4;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --font-body: "General Sans", var(--font-gm);
  --font-display: var(--font-gm);
}
:root[data-brand="empresario-ia"] .brand-logo, [data-brand-preview="empresario-ia"] .brand-logo,
:root[data-brand="prospeccao"] .brand-logo, [data-brand-preview="prospeccao"] .brand-logo { display: none; }
:root[data-brand="empresario-ia"] .brand-symbol, [data-brand-preview="empresario-ia"] .brand-symbol,
:root[data-brand="prospeccao"] .brand-symbol, [data-brand-preview="prospeccao"] .brand-symbol { display: block; }

/* A fonte da marca passou de 600 ms para carregar: troca só as cores (R6). */
:root[data-brand-font="off"] { --font-body: var(--font-gm); --font-display: var(--font-gm); }

/* Troca de marca: a nova abre em círculo a partir do último botão clicado (--x/--y, posto pelo app.js);
   a antiga fica parada embaixo. Sem blur. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: brand-reveal 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes brand-reveal {
  from { clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); }
  to { clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%)); }
}
/* Navegador sem View Transitions: fade curto das cores. */
html.brand-fade, html.brand-fade body { transition: background-color 200ms ease, color 200ms ease; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) { animation: none; }
}

/* ── Agente de IA trocando a marca (app.js, agentMorph) ─────────────────────
   [data-brand-preview] veste só aquele pedaço com a marca nova (fundo, topo, o próprio agente) antes da página
   inteira. Só transform, opacity e clip-path em área limitada. Menos movimento: o app.js nem cria o agente. */
[data-brand-preview] { font-family: var(--font-body); }
html.is-morphing .site-shell { position: relative; z-index: 1; } /* conteúdo acima da camada do fundo novo */
.morph-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; clip-path: circle(0 at var(--mx, 85%) var(--my, 75%)); }
.morph-bg.is-open { animation: morph-open 900ms cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes morph-open { to { clip-path: circle(var(--r, 150vmax) at var(--mx, 85%) var(--my, 75%)); } }
/* Brilho da marca nova no ponto do clique, que se apaga quando o fundo termina de abrir. */
.morph-bg::after { position: absolute; inset: 0; background: radial-gradient(circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 18%, transparent), transparent 38rem); content: ""; opacity: 0; }
.morph-bg.is-open::after { animation: morph-glow 1400ms ease-out forwards; }
@keyframes morph-glow { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
/* Borda do círculo: anel de 2 px na cor da marca nova, crescendo junto com o fundo. */
.morph-ring { position: fixed; top: var(--my); left: var(--mx); z-index: 0; width: calc(var(--r, 100vmax) * 2); height: calc(var(--r, 100vmax) * 2); margin: calc(var(--r, 100vmax) * -1) 0 0 calc(var(--r, 100vmax) * -1); border: 2px solid var(--accent); border-radius: 50%; box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); pointer-events: none; opacity: 0; transform: scale(0); }
.morph-ring.is-open { animation: morph-ring 900ms cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes morph-ring { 0% { opacity: 1; transform: scale(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }

.agent { position: fixed; top: 0; left: 0; z-index: 60; width: 72px; height: 55px; color: var(--accent); pointer-events: none; will-change: transform; }
.agent svg { display: block; width: 100%; height: 100%; overflow: visible; shape-rendering: crispEdges; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4)); transform-origin: 50% 100%; }
.agent-tip { fill: var(--ink); }
.agent-eyes rect { transform-box: fill-box; transform-origin: center; animation: agent-blink 2.6s steps(1) infinite; }
@keyframes agent-blink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(0.2); } }
.agent.is-walking svg { animation: agent-bob 240ms ease-in-out infinite; }
.agent.is-walking .agent-leg-a { animation: agent-step 240ms steps(1) infinite; }
.agent.is-walking .agent-leg-b { animation: agent-step 240ms steps(1) infinite reverse; }
@keyframes agent-bob { 50% { transform: translateY(-2px); } }
@keyframes agent-step { 0% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
.agent.is-tapping svg { animation: agent-tap 220ms cubic-bezier(0.3, 0, 0.2, 1); }
@keyframes agent-tap { 45% { transform: translateY(-6px) scaleY(0.86); } }
.agent-tag { opacity: 0; position: absolute; top: -26px; left: 6px; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: var(--paper-deep); font: 600 11px/1.3 var(--font-gm); letter-spacing: 0.02em; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.agent-tag b { margin-right: 6px; font-weight: 600; opacity: 0.62; }
.agent.is-left .agent-tag { right: 6px; left: auto; }
.agent.is-low .agent-tag { top: auto; bottom: -28px; }
.agent-ripple { position: fixed; z-index: 59; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid var(--accent); border-radius: 50%; pointer-events: none; animation: agent-ripple 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@media (max-width: 719px) { .agent { width: 52px; height: 40px; } }
@keyframes agent-ripple { from { opacity: 1; transform: scale(0.4); } to { opacity: 0; transform: scale(4); } }
