/* Estilos próprios da Bigorna (por cima do kit em assets/). */
:root {
  --p-bg: #141416; --p-surface: #1e1e22; --p-ink: #f3efe9; --p-muted: #a9a49c;
  --p-accent: #ff5a1f; --p-accent-ink: #141416; --p-action: #ff5a1f; --p-action-ink: #141416;
  --p-inv-bg: #f3efe9; --p-inv-surface: #e1ddd8; --p-inv-ink: #141416; --p-inv-muted: #5f5e5d;
  --p-inv-accent: #141416; --p-inv-accent-ink: #f3efe9; --p-inv-action: #141416; --p-inv-action-ink: #f3efe9;
  --font-display: "Funnel Display", system-ui, sans-serif;
  --font-text: "Funnel Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 400;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  --ly-scale: 0.98;
}
  /* logo provisória (PENDENTE: logo definitiva): BIGORNA em peso forte + "IA" na cor de brasa */
  .nav__logo { font-weight: 700; letter-spacing: 0.01em; gap: 6px; }
  .logo-ia { font: 600 13px/1 var(--font-text); letter-spacing: 0.04em; padding: 4px 5px; border-radius: 4px; background: var(--p-accent); color: var(--p-accent-ink); }

  .hero__proof { font-size: var(--t-small); color: var(--muted); }

  /* o quadro do topo: aço escuro com o brilho de brasa vindo de baixo */
  .hero__art { background:
      radial-gradient(85% 60% at 78% 108%, rgb(255 90 31 / .6), transparent 68%),
      radial-gradient(60% 45% at 8% -5%, rgb(255 255 255 / .07), transparent 70%),
      #1e1e22; }
  .hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
  @media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; }
    /* a janela é cortada pelo pé do quadro: some aos poucos, sem fatiar texto */
    .hero__art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 72px; z-index: 1; pointer-events: none; background: linear-gradient(transparent, #17171a); } }

  /* a janela: a conversa do cliente com o atendente */
  .bg-win { background: #0f0f11; color: #f3efe9; border-radius: 14px; overflow: hidden; font: 400 14px/1.45 var(--font-text);
    box-shadow: 0 0 0 1px rgb(255 255 255 / .09), 0 30px 70px -30px rgb(0 0 0 / .85); }
  .bg-win__bar { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 var(--ly-cut-room) 0 16px; border-bottom: 1px solid rgb(255 255 255 / .08); }
  .bg-win__bar img { height: 19px; width: auto; display: block; }
  .bg-win__who { display: grid; gap: 5px; }
  .bg-win__who small { font-size: 13px; line-height: 1; color: #a9a49c; }
  .bg-win__on { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #7fd69b; white-space: nowrap; }
  .bg-win__on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
  .bg-chat { display: grid; gap: 10px; padding: 16px var(--ly-cut-room) 20px 16px; }
  .bg-chat__day { justify-self: center; font-size: 13px; color: #a9a49c; }
  .bg-msg { max-width: 80%; padding: 9px 13px; border-radius: 14px; }
  .bg-msg--me { justify-self: end; background: #2b2b31; border-bottom-right-radius: 4px; }
  .bg-msg--bot { justify-self: start; background: #19191d; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); border-bottom-left-radius: 4px; }
  .bg-win__input { display: flex; align-items: center; justify-content: space-between; height: 44px; margin: 0 var(--ly-cut-room) 16px 16px; padding: 0 6px 0 16px;
    border-radius: 22px; background: #19191d; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); color: #a9a49c; }
  .bg-win__input i { width: 32px; height: 32px; border-radius: 50%; background: var(--p-accent); color: var(--p-accent-ink); display: grid; place-items: center; }

  /* o cartão do resultado: claro, por cima da janela */
  .bg-note { background: #f3efe9; color: #141416; border-radius: 14px; padding: 14px 16px; font: 400 14px/1.4 var(--font-text); text-align: left;
    box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 24px 48px -20px rgb(0 0 0 / .7); }
  .bg-note__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
  .bg-note__row b { font-weight: 600; }
  .bg-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 13px; font-weight: 500; background: #ff5a1f; color: #141416; white-space: nowrap; }
  .bg-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .bg-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #45433f; border-top: 1px solid rgb(0 0 0 / .07); }
  .bg-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #141416; color: #f3efe9; font-style: normal; font-size: 11px; font-weight: 700; }
  .bg-note__line b { font-weight: 500; color: #141416; }
  .bg-avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--p-accent); color: var(--p-accent-ink); font: 700 13px/1 var(--font-display); }
  .bg-win__who b { font-weight: 500; line-height: 1; }
  /* CHAT (janela de perguntas da página Agentes de IA): a lista de perguntas e a conversa com o Assistente da Bigorna (IA).
     A janela cresce com a conversa: sem altura fixa, sem rolagem interna, nada cortado. A cada mensagem a página rola para a resposta e o campo de digitar ficarem à vista. */
  .demo { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: var(--s-7); background: #0f0f11; color: #f3efe9; border-radius: 14px; overflow: clip;
    box-shadow: 0 0 0 1px rgb(255 255 255 / .09); font: 400 15px/1.45 var(--font-text); }
  .demo__list { display: grid; align-content: start; gap: 8px; padding: 20px; min-width: 0; }
  .demo__label { font-size: 13px; font-weight: 500; color: #a9a49c; margin: 0 0 4px; }
  .demo__item { display: grid; gap: 6px; min-width: 0; }
  .demo__q { width: 100%; text-align: left; min-height: 46px; padding: 10px 14px; border-radius: 10px; background: #19191d; color: #f3efe9; border: 1px solid rgb(255 255 255 / .1); font: inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
  .demo__q:hover { border-color: rgb(255 255 255 / .32); background: #202025; }
  .demo__q:active { transform: scale(.99); }
  .demo__q:focus-visible, .demo__sug button:focus-visible, .demo__envia:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
  .demo__q[aria-pressed="true"] { color: #a9a49c; }
  .demo__r { margin: 0 0 10px; padding: 0 14px; color: #cfcac2; max-width: 70ch; }
  .demo--viva .demo__r { display: none; }                         /* com o script, a resposta sai da lista e aparece na conversa */
  .demo__chat { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid rgb(255 255 255 / .08); }
  .demo__chat .bg-win__bar { padding-right: 16px; flex: none; }
  .demo__thread { flex: 1 0 auto; align-content: start; padding-right: 16px; min-height: 200px; }
  .demo__thread .bg-msg { max-width: 86%; overflow-wrap: anywhere; }
  .demo__thread .bg-msg--me { background: #19191d; border: 1px solid rgb(255 255 255 / .1); border-radius: 10px; }
  .demo__thread .bg-msg--aviso { color: #cfcac2; }
  .demo__zap { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 10px; min-height: 40px; padding: 0 16px; border-radius: 10px; background: var(--p-accent); color: var(--p-accent-ink); font-weight: 500; text-decoration: none; }
  .demo__zap:hover { filter: brightness(1.07); } .demo__zap:focus-visible { outline: 2px solid #f3efe9; outline-offset: 2px; }
  .demo__typing { display: inline-flex; gap: 4px; padding: 14px 13px; }
  .demo__typing i { width: 6px; height: 6px; border-radius: 50%; background: #a9a49c; animation: demo-dot .9s ease-in-out infinite; }
  .demo__typing i:nth-child(2) { animation-delay: .15s; } .demo__typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes demo-dot { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .demo__typing i { animation: none; } }
  /* pé da conversa: sugestões + campo de digitar, logo abaixo da última mensagem (o script rola a página para ele ficar à vista) */
  .demo__pe { display: grid; gap: 10px; padding: 12px 16px 16px; background: #0f0f11; border-top: 1px solid rgb(255 255 255 / .08); }
  .demo__sug { display: flex; flex-wrap: wrap; gap: 8px; } .demo__sug:empty { display: none; }
  .demo__sug button { font: inherit; font-size: 14px; line-height: 1.3; text-align: left; min-height: 36px; padding: 7px 12px; border-radius: 18px; background: none; color: #f3efe9; border: 1px solid rgb(255 255 255 / .24); cursor: pointer; }
  .demo__sug button:hover { border-color: rgb(255 255 255 / .55); }
  .demo__form { display: flex; gap: 8px; align-items: center; }
  .demo__campo { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; background: #19191d; color: #f3efe9; border: 1px solid rgb(255 255 255 / .16); font: inherit; font-size: 16px; }
  .demo__campo::placeholder { color: #a9a49c; }
  .demo__campo:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 1px; }
  .demo__envia { flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 12px; background: var(--p-accent); color: var(--p-accent-ink); cursor: pointer; }
  .demo__campo:disabled, .demo__envia:disabled, .demo__sug button:disabled { opacity: .5; cursor: not-allowed; }
  @media (min-width: 640px) and (max-width: 1023px) { .demo--viva .demo__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .demo--viva .demo__label { grid-column: 1 / -1; } }
  @media (min-width: 1024px) {
    .demo--viva { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .demo--viva .demo__list { position: sticky; top: calc(var(--nav) + 12px); align-self: start; }
    .demo--viva .demo__chat { border-top: 0; border-left: 1px solid rgb(255 255 255 / .08); }
    .demo__thread { min-height: 300px; }
  }
  @media (max-width: 639px) { .demo__list { padding: 16px; } }
  /* celular: com o campo em uso, a barra fixa "Quero o meu" sai da frente do teclado */
  html.chat-digitando .actionbar { display: none; }

  /* FECHO: o nome de uma linha à outra, no mesmo peso da logo */
  .close__word { font-weight: 700; letter-spacing: -0.02em; line-height: 1; overflow: visible; font-size: calc(min(100vw - 2 * var(--gut), 1280px) * 0.2); }

  /* PROCESSO: o desenho ocupa a altura da lista */
  #processo .frame { --ratio: 108%; }
  @media (max-width: 639px) { #processo .frame { --ratio: 100%; } #processo .rows > li { padding-block: var(--s-5); } }

  /* TOPO no celular: a janela mostra a pergunta e a resposta inteiras, sem fatiar texto */
  @media (max-width: 639px) { .hero__art .bg-chat__day, .hero__art .bg-msg:nth-child(n+4), .hero__art .bg-win__input { display: none; } }

  }

  /* CELULAR: cada seção tem a altura do seu conteúdo e as seções ficam juntas, sem telas vazias */
  @media (max-width: 639px) {
    .section-head { margin-bottom: var(--s-5); }
    .demo { margin-top: var(--s-5); }
    #preco { gap: var(--s-4); }
    .faq-more svg { display: none; }
    .close__word { margin-top: var(--s-5); }
  }

  /* PREÇO: os dois cartões respondem ao mouse como os outros cartões clicáveis */
  #preco { transition: transform .18s ease, border-color .18s ease; }
  @media (hover: hover) { #preco:hover { transform: translateY(-2px); border-color: var(--line-strong); } }
  #preco .price img { align-self: center; }
  #preco { gap: var(--s-5); }
  .faq-more { display: flex; align-items: center; gap: var(--s-3); } .faq-more svg { flex: none; width: 28px; height: 28px; }


  /* ===== RODADA 5: home curta + páginas ===== */
  /* TOPO: a animação de tudo interligado e, embaixo, a frase que se escreve sozinha */
  .hero__art.orb { display: flex; flex-direction: column; }
  .hero__art.orb::after { content: none; }
  .orb > .dg { flex: 1 1 0; min-height: 0; }
  .orb__say { flex: none; min-height: 2.5em; margin: 0; padding: 0 var(--s-5) var(--s-6); text-align: center; color: #f3efe9;
    font: 500 clamp(21px, 2.1vw, 30px)/1.25 var(--font-display); letter-spacing: -0.02em; }
  .orb__say span::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 4px; vertical-align: -0.14em; background: var(--p-accent); animation: orb-cur 1s steps(1) infinite; }
  @keyframes orb-cur { 50% { opacity: 0; } }
  /* o ponto da frase da vez acende; o centro respira */
  .orb .dg-node { transition: scale .35s ease, box-shadow .35s ease, border-color .35s ease; }
  .orb .dg-node.tw-on { border-color: var(--p-accent); scale: 1.14; box-shadow: 0 0 0 4px rgb(255 90 31 / .2), 0 0 30px 4px rgb(255 90 31 / .5); }
  .orb .dg-node[data-id="hub"] { animation: orb-pulso 3.2s ease-in-out infinite; }
  .orb .dg-node[data-id="hub"].tw-on { scale: 1.06; }
  @keyframes orb-pulso { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 90 31 / .45); } 60% { box-shadow: 0 0 0 18px rgb(255 90 31 / 0); } }
  @media (max-width: 1023px) { .hero__art.orb { height: auto; } .orb > .dg { flex: none; height: min(86vw, 440px); } }
  /* celular: a animação sobe para logo depois do texto de abertura, antes dos botões, e o topo tem a altura do conteúdo */
  @media (max-width: 639px) {
    .hero.hero--collage { height: auto !important; min-height: 0 !important; }
    .hero--collage .hero__text { display: contents; }
    .hero--collage .hero__text > h1 { order: 1; } .hero--collage .hero__lead { order: 2; }
    .hero__art.orb { order: 3; flex: none; }
    .hero--collage .btn-row { order: 4; } .hero--collage .hero__proof { order: 5; }
  }
  @media (prefers-reduced-motion: reduce) { .orb__say span::after, .orb .dg-node[data-id="hub"] { animation: none; } }

  /* links dentro do texto dos cartões */
  .card > p > .link { margin-left: var(--s-2); }
  /* PROCESSO + PREÇO na mesma seção */
  #processo .rows { margin-top: var(--s-2); }

  /* blocos "o que tem": no celular o botão some (a barra fixa já tem) e a lista ganha respiro */
  @media (max-width: 1023px) { .section .grid > ol.rows { margin-top: var(--s-6); } }
  @media (max-width: 639px) { .section .stack-5 > .btn-row { display: none; } }

  /* ============================================================================================
     ACABAMENTO DE VITRINE (19/11/2026). Três regras, no componente, para o site inteiro e para
     qualquer cartão novo:
       A) NADA CORTADO: o quadro tem a proporção do que mostra. Nada de object-fit: cover, altura
          fixa, máscara, degradê por cima ou rolagem interna escondendo conteúdo.
       B) CARTÕES LADO A LADO dividem as mesmas três linhas (título, texto, quadro): começam e
          terminam juntos, com qualquer quantidade de texto.
       C) UM ESPAÇAMENTO entre seções: --sec-gap. Cada seção tem a altura do seu conteúdo.
     Confere com: node conferir/medir.mjs depois
     ============================================================================================ */
  :root { --sec-gap: 96px; }
  @media (max-width: 639px) { :root { --sec-gap: 64px; } }

  /* C) SEÇÕES: altura do conteúdo; metade do espaçamento em cima e metade embaixo */
  main > :is(section, .section), footer.closing { height: auto !important; min-height: 0 !important; padding: calc(var(--sec-gap) / 2) 0 !important; }
  main > :is(section, .section):first-child { padding-top: calc(var(--nav) + var(--sec-gap) / 2) !important; }
  main > :is(section, .section) > :is(.wrap, .container), footer.closing > .wrap { display: block !important; height: auto !important; min-height: 0 !important; }
  footer.closing > .wrap > * + * { margin-top: var(--s-7); }
  @media (max-width: 639px) { footer.closing { padding-bottom: calc(var(--sec-gap) / 2 + 64px + env(safe-area-inset-bottom, 0px)) !important; } }
  /* MENU FIXO: o link do menu para com o título logo abaixo do menu, nunca atrás dele */
  main > :is(section, .section)[id], footer.closing[id] { scroll-margin-top: calc(var(--nav) + 16px - var(--sec-gap) / 2); }
  #preco { scroll-margin-top: calc(var(--nav) + 16px); }

  /* B) CARTÕES: as três linhas vêm da grade de fora (subgrid), então todo cartão da fileira se alinha */
  .grid > .card--row { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; height: auto; }
  .card--row > p { min-height: 0; }
  /* cartões lado a lado só a partir de 1280 px: abaixo disso cada um ocupa a largura toda, para a prévia e a conversa terem tamanho de leitura */
  @media (max-width: 1279px) { .grid > .card.card--row { grid-column: 1 / -1 !important; } }
  /* o quadro fica dentro do respiro do cartão, igual nos quatro lados */
  .card > .panel { margin: var(--s-5) 0 0 !important; border-radius: var(--r-md) !important; min-height: 0; flex: none; }
  .card > .panel::after { border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 9%, transparent); }

  /* A) QUADRO DE IMAGEM: a imagem inteira; o quadro tem a proporção do arquivo (width/height do <img>) */
  .panel > img { position: static !important; display: block; width: 100%; height: auto !important; max-width: none; object-fit: fill !important; }
  /* A) QUADRO DE DEMONSTRAÇÃO: o conteúdo inteiro, no tamanho dele, centralizado; sem máscara */
  .card > .panel:has(> .stage) { display: grid; grid-template-columns: minmax(0, 1fr); }
  .panel > .stage { position: relative !important; inset: auto !important; z-index: 1; -webkit-mask: none !important; mask: none !important;
    display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; box-sizing: border-box; width: 100%; padding: var(--s-5); }
  .panel > .stage > * { grid-area: 1 / 1; position: static !important; width: 100%; max-width: var(--fit-max, 400px) !important; }
  .panel > .stage > * > :is(.ui, [data-ui]) { width: 100% !important; max-width: none !important; height: auto !important; }
  /* lado a lado, o quadro de demonstração tem a proporção padrão das prévias (16:10) e cresce se o conteúdo pedir:
     um calço invisível na mesma célula segura a altura mínima; o conteúdo nunca sai do quadro */
  @media (min-width: 1280px) { .card--row > .panel > .stage::before { content: ""; grid-area: 1 / 1; width: 0; padding-top: calc((100% + 2 * var(--s-5)) * 10 / 16 - 2 * var(--s-5)); } }

  /* TELAS DE APP: a tela inteira dentro da moldura do celular */
  .pf-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8) var(--s-7); }
  .pf-apps > .pf-grp { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
  .pf-grp > h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
  .pf-grp > p { margin-top: var(--s-2); color: var(--ink); }
  .pf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-5); max-width: 460px; }
  .pf-tel { padding: 6px; border-radius: 28px; background: #0b0b0d; box-shadow: 0 0 0 1px rgb(255 255 255 / .16); }
  .pf-tel > img { display: block; width: 100%; height: auto; border-radius: 22px; }
  @media (max-width: 1023px) { .pf-apps { grid-template-columns: minmax(0, 1fr); } }
  @media (max-width: 639px) { .pf-row { gap: var(--s-3); } .pf-tel { padding: 4px; border-radius: 22px; } .pf-tel > img { border-radius: 18px; } }

  /* TELAS DE SISTEMA: a janela inteira, na proporção do arquivo */
  .pf-shot { border-radius: var(--r-lg); box-shadow: 0 0 0 1px rgb(255 255 255 / .1); }
  .pf-shot > img { display: block; width: 100%; height: auto; border-radius: inherit; }
  .pf-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--gutter); }
  .pf-fig { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; grid-row: span 2; row-gap: var(--s-4); margin: 0; }
  .pf-fig > img { display: block; width: 100%; height: auto; border-radius: var(--r-md); box-shadow: 0 0 0 1px rgb(255 255 255 / .1); }
  .pf-fig > figcaption { color: var(--c-text, var(--muted)); max-width: 46ch; }
  .pf-fig > figcaption > b { color: var(--ink); font-weight: 560; }
  @media (max-width: 639px) { .pf-figs { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }

  /* CONVERSA + PASSOS: as duas colunas terminam juntas */
  .pf-duo { display: grid; grid-template-columns: 332px minmax(0, 1fr); gap: var(--s-8); align-items: stretch; }
  .pf-duo > .pf-tel { align-self: start; }
  .pf-duo > .rows { display: grid; grid-auto-rows: 1fr; margin: 0; }
  .pf-duo > .rows > li { align-content: center; }
  @media (max-width: 767px) { .pf-duo { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } .pf-duo > .pf-tel { width: min(332px, 100%); } .pf-duo > .rows { grid-auto-rows: auto; } }

  /* DUAS COLUNAS de alturas diferentes: a menor acompanha a rolagem enquanto a maior passa */
  @media (min-width: 1024px) { .section .grid > .stack-5 { position: sticky; top: calc(var(--nav) + var(--s-5)); align-self: start; } }

  /* TOPO: no computador ocupa a primeira tela e as duas colunas têm a mesma altura (o desenho enche a dele);
     no tablet e no celular o desenho tem a altura do conteúdo e aparece inteiro */
  @media (min-width: 1024px) {
    main > section.hero { min-height: 100svh !important; display: grid !important; }
    main > section.hero > .wrap { display: grid !important; grid-template-rows: minmax(0, 1fr); row-gap: 0; }
    .hero__grid { align-items: stretch; }
    .hero--collage .hero__text { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
    .hero--collage .hero__text > * + * { margin-top: var(--s-5); }
  }
  @media (max-width: 1023px) { .hero__art.orb { flex: none !important; height: auto !important; } }

  /* celular: a demonstração usa quase toda a largura do quadro, para o cabeçalho dela caber inteiro */
  @media (max-width: 639px) { .panel > .stage { padding: var(--s-3); } }
  /* PREÇO: o cartão tem a altura da coluna ao lado; a sobra vai entre os blocos, não embaixo */
  #preco { align-content: space-between; justify-content: space-between; }
  /* TOPO: os anéis de fundo que não cabem no quadro não aparecem (nada pela metade na borda) */
  .orb .dg-rings { display: none; }

  /* ============================================================================================
     CONVERSAS DE DEMONSTRAÇÃO (19/11/2026, etapa 2). Roteiro em partes/conversas.json, script em bigorna.js.
     A conversa inteira está sempre no HTML: a janela já nasce com a altura final (a página não pula),
     sem corte, sem degradê e sem rolagem interna. Sem script, ou com "reduzir movimento", aparece completa e parada.
     ============================================================================================ */
  .cv { width: 100%; }
  .panel > .stage > .cv { align-self: stretch; }                 /* lado a lado, as duas janelas têm a altura da mais longa */
  .cv.ui-chat { height: auto; }
  .cv .ui-chat__body { min-height: 0; }
  .cv .ui-msg--me { max-width: min(280px, 82%); }
  .cv .ui-msg--bot { max-width: min(340px, 94%); }
  .cv [data-m], .cv [data-junto] { transition: none; }
  /* estados da animação (só existem com o script ligado: .cv--viva) */
  .cv--viva .cv-espera { visibility: hidden; }
  .cv--viva .cv-nova { animation: cv-sobe .32s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes cv-sobe { from { opacity: 0; transform: translateY(6px); } }
  /* "digitando": o lugar da resposta já está reservado; os três pontos aparecem no começo dele */
  .cv-dig { display: none; position: absolute; left: 0; top: 7px; gap: 4px; align-items: center; }
  .cv-dig i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .4; animation: cv-ponto .9s ease-in-out infinite; }
  .cv-dig i:nth-child(2) { animation-delay: .15s; } .cv-dig i:nth-child(3) { animation-delay: .3s; }
  @keyframes cv-ponto { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
  .cv--viva .cv-digita .cv-dig { display: flex; }
  .cv--viva .ui-msg--bot.cv-digita .ui-msg__col > :not(.cv-dig) { visibility: hidden; }
  .cv--pausada .cv-dig i { animation-play-state: paused; }
  /* botão de pausar, no cabeçalho de toda conversa (área de toque de 44 px) */
  .cv-pausa { position: relative; flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 50%; cursor: pointer;
    background: none; color: inherit; border: 1px solid color-mix(in oklab, currentColor 28%, transparent); }
  .cv-pausa::before { content: ""; position: absolute; inset: -8px; }
  .cv-pausa svg { width: 12px; height: 12px; fill: currentColor; }
  .cv-pausa .i-segue, .cv-pausa[aria-pressed="true"] .i-pausa { display: none; }
  .cv-pausa[aria-pressed="true"] .i-segue { display: block; }
  .cv-pausa:hover { border-color: color-mix(in oklab, currentColor 60%, transparent); }
  .cv-pausa:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
  .cv:not(.cv--viva) .cv-pausa { display: none; }               /* conversa parada (sem script ou com "reduzir movimento"): não há o que pausar */

  /* CONVERSA NO WHATSAPP (modelo de clínica), dentro da moldura do celular */
  .zp { display: flex; flex-direction: column; border-radius: 22px; background: #e9dfd4; color: #10262c; font: 400 13px/1.42 var(--font-text); }
  .zp-top { display: flex; align-items: center; gap: 10px; padding: 14px 12px 12px; border-radius: 22px 22px 0 0; background: #0e7c8a; color: #fff; }
  .zp-av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / .2); }
  .zp-av svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .zp-nome { display: grid; gap: 1px; min-width: 0; margin-right: auto; }
  .zp-nome b { font-weight: 600; font-size: 14px; line-height: 1.25; } .zp-nome small { font-size: 12px; line-height: 1.25; opacity: .9; }
  .zp-corpo { display: grid; gap: 8px; align-content: start; padding: 12px 10px 16px; }
  .zp-dia, .zp-auto { justify-self: center; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; line-height: 1.5; }
  .zp-dia { background: #f6f1eb; color: #56676c; }
  .zp-auto { background: #fff; color: #0e7c8a; } .zp-auto svg { width: 11px; height: 11px; fill: currentColor; }
  .zp-msg { position: relative; display: grid; }
  .zp-b { justify-self: start; max-width: 88%; padding: 8px 10px; border-radius: 4px 12px 12px 12px; background: #fff; box-shadow: 0 1px 1px rgb(0 0 0 / .08); }
  .zp-msg--c .zp-b { justify-self: end; border-radius: 12px 4px 12px 12px; background: #d9f6cb; }
  .zp-b b { font-weight: 600; }
  .zp-bts { display: flex; gap: 6px; margin-top: 8px; }
  .zp-bts span { flex: 1; text-align: center; padding: 4px 6px; border-radius: 8px; border: 1.5px solid #0e7c8a; color: #0e7c8a; font-size: 12px; font-weight: 600; }
  .zp-arq { display: flex; align-items: center; gap: 8px; font-weight: 600; }
  .zp-arq i { flex: none; display: grid; place-items: center; width: 30px; height: 36px; border-radius: 6px; background: #fff; color: #c62828; font: 700 10px/1 var(--font-text); font-style: normal; }
  .zp .cv-dig { left: 0; top: 0; padding: 12px 12px; border-radius: 4px 12px 12px 12px; background: #fff; color: #56676c; box-shadow: 0 1px 1px rgb(0 0 0 / .08); }
  .cv--viva .zp-msg.cv-digita .zp-b { visibility: hidden; }

  /* APP NA HOME: os avisos chegam na tela de um celular (quadro alto, do tamanho da conversa ao lado) */
  .pf-cel { width: 100%; }
  .tb { display: flex; flex-direction: column; aspect-ratio: 452 / 1004; padding: 44px 12px 24px; border-radius: 22px; color: #f3efe9;
    background: radial-gradient(90% 46% at 78% 108%, rgb(255 90 31 / .55), transparent 68%), radial-gradient(60% 30% at 8% -5%, rgb(255 255 255 / .07), transparent 70%), #1e1e22; }
  .tb-hora { margin: 0; text-align: center; font: 400 56px/1 var(--font-display); letter-spacing: -0.03em; }
  .tb-data { margin: 8px 0 0; text-align: center; font-size: 14px; line-height: 1.3; color: #a9a49c; max-width: none; }
  .tb .ui-notify { width: 100%; margin-top: auto; }
  @media (max-width: 639px) { .pf-cel { border-radius: 28px; padding: 6px; } .pf-cel .tb { border-radius: 22px; } }
