/* Site pelo Zap: verde de fachada, amarelo de letreiro, bolhas de conversa. O único momento de palco é a conversa da abertura. */
:root {
  --tinta: #10261f;
  --folha: #0f5c45;
  --folha-funda: #0a4534;
  --bolha: #d9fdd3;
  --papel: #f4f7f2;
  --letreiro: #ffc53d;
  --linha: #d5ded6;
  --suave: #44584f;
  --sobre-folha: #dcebe4;
  --titulo: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --texto: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --largura: 1180px;
  --margem: max(1.25rem, calc((100vw - var(--largura)) / 2));
  --sai: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 1.0625rem/1.6 var(--texto); -webkit-font-smoothing: antialiased; }
::selection { background: var(--letreiro); color: var(--tinta); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 4px; }
a, button, summary { touch-action: manipulation; }
button, summary, .botao, .flutua { user-select: none; -webkit-user-select: none; }
:focus-visible { outline: 3px solid var(--letreiro); outline-offset: 3px; border-radius: 6px; }
.fecho :focus-visible, .abre :focus-visible, .topo :focus-visible { outline-color: #fff; }
.pular { position: absolute; left: -999px; top: 0; background: var(--letreiro); color: var(--tinta); padding: .6rem 1rem; z-index: 50; }
.pular:focus { left: .5rem; top: .5rem; }

.botao { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 56px; padding: .9rem 1.6rem; background: var(--letreiro); color: var(--tinta); font: 700 1.0625rem/1.2 var(--texto); text-decoration: none; border-radius: 14px; box-shadow: 0 8px 18px -8px rgba(4, 30, 22, .65); transition: transform .14s var(--sai), background-color .14s; }
.botao svg { width: 22px; height: 22px; flex: none; }
.botao:active { transform: scale(.97); box-shadow: 0 3px 8px -4px rgba(4, 30, 22, .6); }
@media (hover: hover) and (pointer: fine) { .botao:hover { background: #ffd060; transform: translateY(-2px); box-shadow: 0 14px 22px -10px rgba(4, 30, 22, .7); } .botao:hover:active { transform: scale(.97); } }
.botao.pequeno { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; border-radius: 11px; }
.botao.claro { background: #fff; box-shadow: 0 8px 18px -8px rgba(4, 30, 22, .6); }

/* faixa de confiança, acima do topo (só o que é verdade) */
.faixa { margin: 0; background: var(--letreiro); color: var(--tinta); font-weight: 700; font-size: .9rem; line-height: 1.2; text-align: center; padding: .55rem 1rem; padding-top: max(.55rem, env(safe-area-inset-top)); display: flex; justify-content: center; flex-wrap: wrap; gap: .2rem 0; }
.faixa > span + span::before { content: "·"; margin: 0 .6rem; opacity: .6; }
.faixa > span { white-space: nowrap; }
@media (max-width: 520px) { .faixa .longo { display: none; } }
@media (max-width: 360px) { .faixa { font-size: .8rem; } .faixa > span + span::before { margin: 0 .4rem; } }
/* topo */
.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem; padding: .7rem var(--margem); padding-top: max(.7rem, env(safe-area-inset-top)); background: var(--folha); color: #fff; }
.marca { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font: 700 1.2rem/1 var(--titulo); text-decoration: none; margin-right: auto; color: #fff; }
.marca svg { width: 32px; height: 32px; color: var(--folha-funda); }
.topo nav { display: flex; gap: 1.5rem; }
.topo nav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: .6rem 0; color: var(--sobre-folha); }
@media (hover: hover) and (pointer: fine) { .topo nav a:hover { color: #fff; text-decoration: underline; } }

/* abertura */
.abre { background: var(--folha); color: #fff; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: clamp(1.6rem, 6vw, 5rem) var(--margem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 34ch; margin-top: 1.4rem; color: var(--sobre-folha); }
/* a promessa principal: branca, em negrito, e um traço amarelo que se desenha uma vez ao abrir a página */
.sublinha { color: #fff; font-weight: 700; text-decoration: none; background: linear-gradient(var(--letreiro), var(--letreiro)) left 100% / 100% .2em no-repeat; padding-bottom: .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: traco .8s .6s var(--sai) both; }
@keyframes traco { from { background-size: 0% .2em; } }
.acoes { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.selos { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-weight: 500; color: var(--sobre-folha); line-height: 1.35; }
.selos li { padding-left: 1.6rem; position: relative; }
.selos li::before { content: ""; position: absolute; left: .15rem; top: .38em; width: .8rem; height: .42rem; border-left: 2.5px solid var(--letreiro); border-bottom: 2.5px solid var(--letreiro); transform: rotate(-45deg); }
.porque { background: #fff; }
.motivos { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.motivos li { padding: 1.4rem 1.5rem; background: var(--papel); border-radius: 18px; border: 1px solid var(--linha); }
.motivos h3::before { content: ""; display: block; width: 2.2rem; height: .32rem; border-radius: 9px; background: var(--folha); margin-bottom: 1rem; }
.motivos p { margin-top: .6rem; color: var(--suave); }
.preco-linha { font-weight: 500; color: var(--sobre-folha); max-width: 30ch; line-height: 1.4; text-wrap: balance; }

.palco { justify-self: center; text-align: center; }
.aparelho { width: min(300px, 78vw); aspect-ratio: 300 / 610; background: #0b1512; border-radius: 42px; padding: 10px; box-shadow: 0 30px 60px -20px rgba(4, 30, 22, .7), 0 0 0 2px #1d3a31; transform: rotate(2.5deg); }
.tela { container-type: size; position: relative; height: 100%; border-radius: 33px; overflow: hidden; background: #efeae2; }
.conversa { height: 100%; display: flex; flex-direction: column; color: var(--tinta); text-align: left; }
.conversa-topo { display: flex; align-items: center; gap: .6rem; background: #0b6a50; color: #fff; padding: .8rem .9rem .7rem; font-size: .9rem; line-height: 1.2; }
.conversa-topo small { display: block; color: var(--sobre-folha); font-size: .75rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--letreiro); color: var(--tinta); display: grid; place-items: center; font: 800 1rem var(--titulo); }
.falas { list-style: none; margin: 0; padding: .7rem .6rem .8rem; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; overflow: hidden; }
.falas li { max-width: 86%; padding: .45rem .65rem; border-radius: 10px; font-size: .84rem; line-height: 1.35; background: #fff; box-shadow: 0 1px 1px rgba(16, 38, 31, .12); align-self: flex-start; flex: none; }
.falas .eu { background: var(--bolha); align-self: flex-end; }
/* grifo de marca-texto na promessa principal: passa da esquerda para a direita logo depois que a fala aparece */
.grifo { color: inherit; font-weight: 700; padding: 0 .1em; border-radius: 3px; background: linear-gradient(var(--letreiro), var(--letreiro)) left 60% / 100% 70% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.encena .grifo { background-size: 0% 70%; }
.encena .dita .grifo { animation: grifa .7s .55s var(--sai) both; }
@keyframes grifa { to { background-size: 100% 70%; } }
.falas .fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; width: 78%; }
.falas .fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }
.falas .link { display: grid; grid-template-columns: 46px 1fr; gap: .55rem; align-items: center; font-weight: 700; }
.mini { width: 46px; height: 46px; border-radius: 7px; background: url(assets/exemplo-nutricionista-celular.jpg) top / cover; }
.junto { white-space: nowrap; }
.resultado { position: absolute; inset: 0; background: #faf4ec; clip-path: circle(0 at 22% 88%); }
.r-pc { display: none; }
.r-cel { position: absolute; inset: 0; container-type: size; overflow: hidden; }
.r-cel img { width: 100%; }
.palco-nota { margin-top: 1.2rem; font-size: .92rem; color: var(--sobre-folha); min-height: 2.8rem; }
.de-novo { font: inherit; font-weight: 700; color: #fff; background: none; border: 0; min-height: 44px; padding: .5rem .4rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.de-novo:active { opacity: .7; }

/* só com JS e movimento permitido a conversa é encenada */
.encena .falas li { display: none; }
.encena .falas li.dita { display: block; animation: fala .32s var(--sai) both; }
.encena .falas li.dita.fotos, .encena .falas li.dita.link { display: grid; }
@keyframes fala { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.encena.pronto .resultado { clip-path: circle(150% at 22% 88%); transition: clip-path .9s var(--sai), opacity .5s; }
.encena.pronto .r-cel img { animation: rola 15s 1.2s cubic-bezier(.45, 0, .55, 1) both; }
@keyframes surge { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.encena.fechando .resultado { opacity: 0; }
@keyframes rola { to { transform: translateY(calc(-100% + 100cqh)); } }

/* seções */
section:not(.abre) { padding: clamp(3.2rem, 8vw, 7rem) var(--margem); }

.passos { list-style: none; counter-reset: passo; margin: clamp(2rem, 4vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.passos li { counter-increment: passo; border-top: 3px solid var(--tinta); padding-top: 1.2rem; }
.passos li::before { content: counter(passo); display: block; font: 800 3.4rem/1 var(--titulo); color: var(--folha); margin-bottom: .8rem; }
.passos p { margin-top: .6rem; color: var(--suave); }

.exemplos { background: #e7efe6; }
.exemplos-cabeca p { margin-top: 1rem; max-width: 52ch; color: var(--suave); }
.abas { display: inline-flex; gap: .3rem; margin-top: 1.6rem; padding: .3rem; background: #fff; border-radius: 14px; max-width: 100%; }
.abas button { font: 700 1rem var(--texto); min-height: 46px; padding: .5rem 1.1rem; border: 0; border-radius: 10px; background: none; color: var(--suave); cursor: pointer; transition: background .18s, color .18s, transform .12s; }
.abas button:active { transform: scale(.97); }
.abas button[aria-selected="true"] { background: var(--folha); color: #fff; }
.vitrine { margin-top: 2rem; }
.vitrine figure { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.vitrine figure[hidden] { display: none; }
.vitrine .grande { border-radius: 14px; box-shadow: 0 20px 40px -24px rgba(16, 38, 31, .5); }
.rolo { container-type: size; aspect-ratio: 9 / 18; border-radius: 22px; overflow: hidden; border: 6px solid #0b1512; background: #0b1512; }
.rolo img { width: 100%; }
.rolo.viva img { animation: rola 26s 1s cubic-bezier(.45, 0, .55, 1) infinite alternate both; }
.vitrine figcaption { grid-column: 1 / -1; font-size: .95rem; color: var(--suave); }
.vitrine figcaption b { display: block; color: var(--tinta); }
.quem { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.quem img { border-radius: 22px; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 24px 40px -26px rgba(4, 30, 22, .7); }
.quem p { margin-top: 1rem; max-width: 56ch; color: var(--suave); }
.quem .quem-nome { font-size: 1.15rem; color: var(--tinta); }
.quem .quem-cnpj { font-size: .92rem; }
.inclui { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 2rem; font-weight: 500; }
.inclui li { text-wrap: balance; padding-top: .8rem; border-top: 2px solid var(--folha); }

.opcoes { margin-top: clamp(2rem, 4vw, 3.5rem); display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: clamp(1.2rem, 2.4vw, 2.4rem); align-items: start; }
.opcoes article { padding-top: 1.2rem; border-top: 3px solid var(--linha); }
.opcoes .nossa { background: var(--folha); color: #fff; border: 0; border-radius: 22px; padding: clamp(1.4rem, 2.5vw, 2.2rem); box-shadow: 0 24px 40px -26px rgba(4, 30, 22, .8); }
.opcoes dl { margin: 1.2rem 0 0; }
.opcoes dl div { padding: .8rem 0; border-top: 1px solid var(--linha); }
.opcoes .nossa dl div { border-color: rgba(255, 255, 255, .22); }
.opcoes dt { font-size: .9rem; color: var(--suave); }
.opcoes .nossa dt { color: var(--sobre-folha); }
.opcoes dd { text-wrap: balance; margin: .15rem 0 0; font-weight: 700; line-height: 1.35; }
.opcoes .nossa dd { color: var(--letreiro); font-size: 1.1rem; }
.fonte-nota { margin-top: 1.6rem; font-size: .88rem; color: var(--suave); }

.preco { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; background: #e7efe6; }
.etiqueta { background: var(--letreiro); padding: clamp(1.6rem, 4vw, 3rem) clamp(1.8rem, 4vw, 3.4rem); border-radius: 26px; transform: rotate(-3deg); box-shadow: 0 26px 40px -22px rgba(4, 30, 22, .75); }
.valor { font: 800 clamp(4.5rem, 11vw, 8.5rem)/.9 var(--titulo); letter-spacing: -.04em; }
.valor span { font-size: .32em; letter-spacing: 0; margin-right: .15em; vertical-align: top; position: relative; top: .5em; }
.valor-nota { margin-top: .8rem; font-weight: 700; max-width: 20ch; line-height: 1.3; }
.preco-texto ul { list-style: none; margin: 1.6rem 0 2rem; padding: 0; }
.preco-texto li { padding: .75rem 0 .75rem 2rem; border-bottom: 1px solid #c9d6cb; position: relative; }
.preco-texto li::before { content: ""; position: absolute; left: .2rem; top: 1.25rem; width: .95rem; height: .5rem; border-left: 3px solid var(--folha); border-bottom: 3px solid var(--folha); transform: rotate(-45deg); }

.duvidas { background: #fff; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
details { border-bottom: 1px solid var(--linha); }
summary { cursor: pointer; list-style: none; font: 700 1.15rem/1.3 var(--titulo); padding: 1.15rem 2.4rem 1.15rem 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: .5rem; top: 50%; width: .6rem; height: .6rem; border-right: 2.5px solid var(--folha); border-bottom: 2.5px solid var(--folha); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--sai); }
summary:active { color: var(--folha); }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details[open] p { animation: fala .24s var(--sai); }
details p { padding: 0 2.4rem 1.3rem 0; color: var(--suave); max-width: 62ch; }

.fecho { background: var(--folha); color: #fff; text-align: center; }
.fecho h2 { max-width: 20ch; margin: 0 auto 2rem; }
.rodape { background: var(--folha-funda); color: var(--sobre-folha); padding: 2rem var(--margem) calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: .92rem; display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; }
.rodape a { margin-right: 1.2rem; padding: .7rem 0; display: inline-block; }

.flutua { display: none; }

/* páginas de texto (termos e privacidade) */
.pagina { max-width: 720px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 1.25rem; }
.pagina h1 { font-size: clamp(2rem, 5vw, 3rem); }
.pagina h2 { font-size: 1.4rem; margin-top: 2.4rem; }
.pagina p, .pagina ul { margin-top: 1rem; }
.pagina .data { color: var(--suave); }

@media (max-width: 860px) {
  .topo nav, .topo .botao.pequeno { display: none; }
  /* no celular a conversa vira um painel da própria página: um celular desenhado dentro do celular fica estranho */
  .abre { grid-template-columns: 1fr; gap: 1.4rem; padding-bottom: 2.2rem; }
  .lead { margin-top: .9rem; }
  .acoes { margin-top: 1.1rem; }
  .acoes .botao { display: none; } /* o botão fixo de baixo já faz esse papel */
  .palco { justify-self: center; width: min(100%, 430px); }
  .aparelho { width: 100%; aspect-ratio: auto; height: min(38svh, 360px); padding: 0; background: none; border-radius: 22px; transform: none; box-shadow: 0 24px 40px -24px rgba(4, 30, 22, .8); }
  .tela { border-radius: 22px; }
  /* resultado da conversa no celular: computador inteiro + celular rolando, em vez de um pedaço do site numa janela baixa */
  .resultado { background: #e3ece4; }
  .r-pc { display: block; position: absolute; left: 5%; top: 7%; width: 80%; border-radius: 10px; box-shadow: 0 16px 30px -16px rgba(4, 30, 22, .55); }
  .r-cel { inset: auto 5% 6% auto; width: 30%; height: auto; aspect-ratio: 9 / 19.5; border: 4px solid #0b1512; border-radius: 16px; background: #fff; box-shadow: 0 18px 30px -14px rgba(4, 30, 22, .65); }
  .encena.pronto .r-pc { animation: surge .6s .5s var(--sai) both; }
  .encena.pronto .r-cel { animation: surge .6s .9s var(--sai) both; }
  .encena.pronto .r-cel img { animation-delay: 2s; }
  .falas li { font-size: .92rem; }
  .palco-nota { margin-top: .6rem; min-height: 44px; }
  .passos { grid-template-columns: 1fr; gap: 2rem; }
  .motivos { grid-template-columns: 1fr; gap: 1rem; }
  .passos li::before { font-size: 2.6rem; margin-bottom: .5rem; }
  /* no celular o exemplo aparece inteiro: a tela do computador e, por cima, o celular rolando o site */
  .vitrine figure { grid-template-columns: 1fr; gap: 1rem; }
  .vitrine .grande { width: 88%; border-radius: 10px; }
  .rolo { width: 36%; margin: -30% 0 0 auto; border-width: 4px; border-radius: 16px; box-shadow: 0 18px 30px -16px rgba(4, 30, 22, .6); }
  .inclui { grid-template-columns: 1fr 1fr; }
  .opcoes { grid-template-columns: 1fr; }
  .preco { grid-template-columns: 1fr; }
  .etiqueta { justify-self: center; }
  .duvidas { grid-template-columns: 1fr; }
  .quem { grid-template-columns: 1fr; }
  .quem { text-align: center; }
  .quem img { width: min(260px, 70vw); justify-self: center; }
  .quem p { margin-inline: auto; }
  .abas { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } /* quatro abas à vista, em grade 2 x 2 de colunas iguais */
  .abas button { padding-inline: .6rem; }
  .preco-texto .botao, .fecho .botao { width: 100%; }
  .flutua { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; position: fixed; left: .75rem; right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 30; min-height: 60px; padding: .55rem 1rem; background: var(--letreiro); color: var(--tinta); text-decoration: none; border-radius: 16px; box-shadow: 0 12px 30px -8px rgba(16, 38, 31, .6); line-height: 1.2; transition: transform .3s var(--sai), visibility 0s; }
  .flutua b { font-size: 1.08rem; }
  .flutua span { font-size: .84rem; }
  .flutua:active { transform: scale(.97); }
  .flutua.some { transform: translateY(160%); visibility: hidden; transition: transform .2s var(--sai), visibility 0s .2s; } /* sai mais rápido do que entra e deixa de receber foco */
}
@media (max-width: 420px) { .inclui { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rolo { overflow-y: auto; } /* sem a rolagem automática, o visitante rola o exemplo com o dedo */
}
