/* Painel "Sua marca": a animação de identidade visual e posicionamento (o desenho sai de gerador/paginas/_home_vis.py, função
   branding, e o movimento de assets/js/painel-marca.js). Aparece na frente 05 da Home e na seção "O que entra no trabalho" da
   página de Identidade visual e posicionamento, no lugar da prancheta ("precisamos substituir aquela prancheta pela que foi
   criada", 21/10/2026). A moldura em volta é de cada página; aqui fica só o painel. */

body.tds .bd-pn { position: relative; width: 100%; aspect-ratio: 640 / 600; container-type: inline-size; font-family: var(--fx-texto); color: #fff;
  --c1: #1F4E4A; --c2: #E3C9A0; --c3: #C4693D; --c4: #F4EFE6; --mola: cubic-bezier(.34, 1.56, .64, 1); }
body.tds .bd-pn p { margin: 0; }
body.tds .bd-sol { position: absolute; left: -16%; top: 7%; width: 84%; aspect-ratio: 1; border-radius: 50%; background: #EF5433; }
body.tds .bd-tela { position: absolute; left: 0; top: 10%; width: 95%; padding: 3.4cqw; border-radius: 4cqw; background: #0F0F0F; box-shadow: 0 8cqw 14cqw -6cqw rgba(0, 0, 0, .6); }
body.tds .bd-tela > * { transition: opacity .45s ease; }
body.tds .bd-cab { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; margin-bottom: 2.4cqw; }
body.tds .bd-cab b { font-size: max(12px, 2.9cqw); font-weight: 700; }
body.tds .bd-chip { padding: .9cqw 1.9cqw; border-radius: 99px; background: #222; font-size: max(9px, 1.9cqw); font-weight: 600; color: #999; white-space: nowrap; }
body.tds .bd-med { display: flex; align-items: center; gap: 1.2cqw; font-size: max(9px, 1.9cqw); font-weight: 600; color: #999; white-space: nowrap; }
body.tds .bd-med i { position: relative; width: 5.3cqw; height: 3.1cqw; border-radius: 99px; background: #3A3A3A; transition: background .4s; }
body.tds .bd-med i::after { content: ""; position: absolute; left: .5cqw; top: .5cqw; width: 2.1cqw; height: 2.1cqw; border-radius: 50%; background: #fff; transition: left .4s var(--mola); }
body.tds .bd-pn.is-5 .bd-med i { background: #EF5433; }
body.tds .bd-pn.is-5 .bd-med i::after { left: 2.7cqw; }
body.tds .bd-grade { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.4cqw; }
body.tds .bd-th { padding: 1.6cqw 1.8cqw; font-size: max(8px, 1.65cqw); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #999; white-space: nowrap; }

/* posicionamento: marcado item por item */
body.tds .bd-lin { display: flex; align-items: center; gap: 1.8cqw; padding: 1.8cqw; border-bottom: 1px solid #222; border-radius: 1.4cqw; transition: background .5s; }
body.tds .bd-lin:last-child { border-bottom: 0; }
body.tds .bd-lin.is-agora { background: rgba(239, 84, 51, .12); }
body.tds .bd-ic { flex: none; display: grid; place-items: center; width: 4.7cqw; height: 4.7cqw; border-radius: 50%; background: #EF5433; }
body.tds .bd-ic svg { width: 2.6cqw; height: 2.6cqw; }
body.tds .bd-txt { flex: 1; min-width: 0; }
body.tds .bd-txt b { display: block; font-size: max(10px, 2.15cqw); font-weight: 600; white-space: nowrap; }
body.tds .bd-txt small { display: block; margin-top: .3cqw; font-size: max(11px, 1.9cqw); color: #999; white-space: nowrap; }
body.tds .bd-ok { flex: none; display: grid; place-items: center; width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: #EF5433; transform: scale(0); transition: transform .45s var(--mola), opacity .45s ease; }
body.tds .bd-ok::after { content: ""; width: 1.3cqw; height: .7cqw; border-left: .45cqw solid #fff; border-bottom: .45cqw solid #fff; transform: translateY(-.15cqw) rotate(-45deg); }
body.tds .bd-lin.is-ok .bd-ok { transform: scale(1); }

/* identidade visual: logo, cores e letras do cliente de exemplo */
body.tds .bd-id { display: flex; flex-direction: column; border-radius: 1.6cqw; background: rgba(239, 84, 51, .14); overflow: hidden; }
body.tds .bd-id .bd-th { background: #EF5433; color: #fff; text-align: center; }
body.tds .bd-id__in { display: grid; flex: 1; align-content: start; gap: 2cqw; padding: 2.2cqw; }
body.tds .bd-logo { display: flex; align-items: center; gap: 1.6cqw; padding: 1.8cqw; border-radius: 1.8cqw; background: var(--c4); }
body.tds .bd-logo svg { flex: none; width: 7cqw; height: 7cqw; }
body.tds .bd-logo b { display: block; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 3.1cqw; line-height: 1; color: var(--c1); }
body.tds .bd-logo small { display: block; margin-top: .6cqw; font-size: max(7px, 1.35cqw); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c3); }
body.tds .bd-m__c, body.tds .bd-m__s { transform-box: fill-box; transform-origin: center; }
body.tds .bd-m__a { stroke-dasharray: 1; stroke-dashoffset: 0; }
body.tds .bd-cores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2cqw; }
body.tds .bd-cores i { aspect-ratio: 1; border-radius: 1.2cqw; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
body.tds .bd-tipo { display: flex; align-items: baseline; gap: 1.8cqw; padding: 1.2cqw 1.8cqw; border-radius: 1.8cqw; background: #161616; }
body.tds .bd-tipo b { display: inline-block; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 6.4cqw; line-height: 1; color: #fff; }
body.tds .bd-tipo span { font-size: max(8px, 1.7cqw); color: #999; line-height: 1.35; }
body.tds .bd-tipo em { display: block; font-style: normal; color: #fff; font-weight: 600; }

/* peças aplicadas */
body.tds .bd-pecas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; margin-top: 2.8cqw; padding: 1.8cqw; border-radius: 2.2cqw; background: #161616; }
body.tds .bd-peca { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .8cqw; aspect-ratio: 16 / 10; padding: 1.6cqw; border-radius: 1.4cqw; overflow: hidden; }
body.tds .bd-peca b { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 2.3cqw; line-height: 1.05; }
body.tds .bd-peca > i { display: block; height: .9cqw; border-radius: 99px; }
body.tds .bd-peca__m { position: absolute; left: 1.4cqw; top: 1.4cqw; width: 3.2cqw; height: 3.2cqw; }
body.tds .bd-peca__m .bd-m__c { fill: #F4EFE6; } body.tds .bd-peca__m .bd-m__a { stroke: #1F4E4A; }
body.tds .bd-p1 { background: var(--c1); color: var(--c4); } body.tds .bd-p1 > i { background: rgba(244, 239, 230, .35); }
body.tds .bd-p2 { background: var(--c2); color: var(--c1); } body.tds .bd-p2 > i { background: rgba(31, 78, 74, .3); }
body.tds .bd-p3 { background: var(--c4); color: var(--c3); } body.tds .bd-p3 > i { background: rgba(196, 105, 61, .35); }

/* o logo nasce grande no meio do painel, com o resto apagado, e voa pro lugar dele */
body.tds .bd-logo-g { position: absolute; left: 50%; top: 50%; z-index: 5; display: grid; justify-items: center; gap: 1.6cqw; padding: 4.4cqw 7cqw 3.6cqw;
  border-radius: 3.2cqw; background: var(--c4); box-shadow: 0 5cqw 9cqw -5cqw rgba(0, 0, 0, .55); opacity: 0; transform: translate(-50%, -50%) scale(.7);
  pointer-events: none; transition: opacity .35s ease, transform .6s var(--mola); }
body.tds .bd-logo-g svg { width: 20cqw; height: 20cqw; }
body.tds .bd-logo-g b { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 7.4cqw; line-height: 1; color: var(--c1); }
body.tds .bd-logo-g small { font-size: 1.9cqw; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c3); }
body.tds .bd-pn.is-logo .bd-logo-g { opacity: 1; transform: translate(-50%, -50%) scale(1); }
body.tds .bd-pn.is-logo:not(.is-voa) .bd-tela > :not(.bd-logo-g) { opacity: .18; }
body.tds .bd-pn.is-logo .bd-logo-g .bd-m__c { animation: bd-pop .6s var(--mola) .1s both; }
body.tds .bd-pn.is-logo .bd-logo-g .bd-m__a { animation: bd-traco 1s ease .3s both; }
body.tds .bd-pn.is-logo .bd-logo-g .bd-m__s { animation: bd-pop .5s var(--mola) .75s both; }
body.tds .bd-pn.is-logo .bd-logo-g b, body.tds .bd-pn.is-logo .bd-logo-g small { animation: bd-sobe .6s var(--mola) .5s both; }
body.tds .bd-pn.is-voa .bd-logo-g { opacity: 0; transform: translate(calc(-50% + 16cqw), calc(-50% - 19cqw)) scale(.22);
  transition: opacity .35s ease .3s, transform .65s cubic-bezier(.6, 0, .3, 1); }

/* depois do logo: ele se redesenha no lugar dele, as cores e as letras entram, as peças sobem */
body.tds .bd-pn.is-redesenha .bd-logo .bd-m__c { animation: bd-pop .6s var(--mola) both; }
body.tds .bd-pn.is-redesenha .bd-logo .bd-m__a { animation: bd-traco 1s ease .15s both; }
body.tds .bd-pn.is-redesenha .bd-logo .bd-m__s { animation: bd-pop .5s var(--mola) .55s both; }
body.tds .bd-pn.is-redesenha .bd-logo > span { animation: bd-sobe .6s var(--mola) .3s both; }
body.tds .bd-pn.is-cores .bd-cores i { animation: bd-pop .55s var(--mola) both; }
body.tds .bd-pn.is-cores .bd-cores i[data-k="1"] { animation-delay: .1s; }
body.tds .bd-pn.is-cores .bd-cores i[data-k="2"] { animation-delay: .2s; }
body.tds .bd-pn.is-cores .bd-cores i[data-k="3"] { animation-delay: .3s; }
body.tds .bd-pn.is-tipo .bd-tipo b { animation: bd-sobe .6s var(--mola) both; }
body.tds .bd-pn.is-pecas .bd-peca { animation: bd-entra .7s var(--mola) both; }
body.tds .bd-pn.is-pecas .bd-peca[data-k="1"] { animation-delay: .15s; }
body.tds .bd-pn.is-pecas .bd-peca[data-k="2"] { animation-delay: .3s; }
@keyframes bd-pop { 0% { transform: scale(.45); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes bd-traco { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bd-sobe { from { opacity: 0; transform: translateY(1.5cqw); } to { opacity: 1; transform: none; } }
@keyframes bd-entra { from { opacity: .35; transform: translateY(2.5cqw) scale(.96); } to { opacity: 1; transform: none; } }

/* selo do manual (em cima à esquerda) e cartão da aprovação (embaixo à direita, em cima da peça menos importante) */
body.tds .bd-aviso { position: absolute; left: 3%; top: 1%; z-index: 6; display: flex; align-items: center; gap: 1.2cqw; padding: 1.4cqw 2.4cqw 1.4cqw 1.6cqw;
  border-radius: 99px; background: #fff; color: #222; font-size: max(9px, 2cqw); font-weight: 700; white-space: nowrap; box-shadow: 0 3cqw 6cqw -3cqw rgba(0, 0, 0, .45);
  opacity: 0; transform: translateX(-4cqw); transition: opacity .4s ease, transform .55s var(--mola); }
body.tds .bd-pn.is-6 .bd-aviso { opacity: 1; transform: none; }
body.tds .bd-doc { display: grid; place-items: center; height: 3.4cqw; padding: 0 1cqw; border-radius: .9cqw; background: #222; color: #fff; font-size: max(7px, 1.4cqw); font-weight: 800; letter-spacing: .04em; }
body.tds .bd-doc--l { background: #EF5433; }
body.tds .bd-card { position: absolute; right: -4%; bottom: 1%; z-index: 6; width: 44%; padding: 2.6cqw 2.8cqw; border-radius: 3.2cqw; background: #fff; color: #222;
  box-shadow: 0 5cqw 9cqw -5cqw rgba(0, 0, 0, .5), 0 0 0 1px #EEE; opacity: 0; transform: translateY(4cqw) scale(.92); transition: opacity .4s ease, transform .6s var(--mola); }
body.tds .bd-pn.is-5 .bd-card { opacity: 1; transform: none; }
body.tds .bd-card__t { display: flex; justify-content: space-between; font-size: max(8px, 1.7cqw); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #999; }
body.tds .bd-card__g { display: flex; align-items: center; gap: 1.6cqw; margin-top: 1.9cqw !important; font-size: max(12px, 2.7cqw); font-weight: 800; }
body.tds .bd-card__g i { flex: none; display: grid; place-items: center; width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background: #28B446; }
body.tds .bd-card__g i::after { content: ""; width: 1.4cqw; height: .75cqw; border-left: .5cqw solid #fff; border-bottom: .5cqw solid #fff; transform: translateY(-.15cqw) rotate(-45deg); }
body.tds .bd-barra { width: 0; height: 1.4cqw; margin-top: 1.8cqw; border-radius: 99px; background: #EF5433; transition: width .9s cubic-bezier(.2, .7, .2, 1) .3s; }
body.tds .bd-pn.is-5 .bd-barra { width: 100%; }
body.tds .bd-card__v { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; margin-top: 1.9cqw !important; font-size: max(11px, 1.9cqw); color: #686868; white-space: nowrap; }
body.tds .bd-card__v span { display: flex; gap: .7cqw; }
body.tds .bd-card__v i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; }

/* recomeço: o cartão, o selo e as marcações somem juntos e o ciclo volta sem animar ao contrário */
body.tds .bd-pn.is-saindo .bd-card, body.tds .bd-pn.is-saindo .bd-aviso, body.tds .bd-pn.is-saindo .bd-ok {
  opacity: 0 !important; transition: opacity .45s ease !important; }
body.tds .bd-pn.is-zerando, body.tds .bd-pn.is-zerando * { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  body.tds .bd-pn * { transition: none !important; animation: none !important; }
}

@media (max-width: 767px) {
  /* o painel entra no fluxo e cresce com o conteúdo, com letra legível */
  body.tds .bd-pn { aspect-ratio: auto; }
  body.tds .bd-tela { position: relative; top: 0; left: 0; padding: 14px; }
  body.tds .bd-sol { top: 4%; }
  body.tds .bd-aviso { top: -36px; left: 2%; }
  body.tds .bd-card { bottom: -24px; right: 2%; width: 56%; }
  body.tds .bd-cab b { font-size: 14px; white-space: nowrap; }
  body.tds .bd-chip { display: none; }
  body.tds .bd-grade { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
  body.tds .bd-th { font-size: 9.5px; padding: 6px 8px; letter-spacing: .04em; }
  body.tds .bd-id .bd-th { white-space: normal; line-height: 1.15; }
  body.tds .bd-lin { padding: 8px 6px; gap: 8px; }
  body.tds .bd-ic { width: 22px; height: 22px; }
  body.tds .bd-ic svg { width: 13px; height: 13px; }
  body.tds .bd-txt b { font-size: 12px; }
  body.tds .bd-txt small { display: none; }
  body.tds .bd-ok { width: 14px; height: 14px; }
  body.tds .bd-id__in { padding: 8px; gap: 8px; }
  body.tds .bd-logo { padding: 8px; gap: 6px; }
  body.tds .bd-logo svg { width: 26px; height: 26px; }
  body.tds .bd-logo b { font-size: 15px; }
  body.tds .bd-logo small { display: none; }
  body.tds .bd-logo-g svg { width: 30cqw; height: 30cqw; }
  body.tds .bd-logo-g b { font-size: 10cqw; }
  body.tds .bd-logo-g small { font-size: 3cqw; }
  body.tds .bd-tipo { padding: 6px 8px; gap: 6px; }
  body.tds .bd-tipo b { font-size: 24px; }
  body.tds .bd-tipo span { font-size: 9.5px; }
  body.tds .bd-pecas { gap: 6px; padding: 6px; margin-top: 10px; }
  body.tds .bd-peca { aspect-ratio: auto; min-height: 64px; padding: 7px; gap: 4px; }
  body.tds .bd-peca b { font-size: 10px; }
  body.tds .bd-peca__m { display: none; }
}
@media (max-width: 380px) {
  /* tela estreita: as folgas de dentro diminuem pra "Diferencial" não entrar embaixo do check e o logo e a 4ª cor caberem */
  body.tds .bd-tela { padding: 10px; }
  body.tds .bd-grade { gap: 8px; }
  body.tds .bd-lin { gap: 6px; padding: 8px 5px; }
  body.tds .bd-ok { width: 12px; height: 12px; }
  body.tds .bd-id__in { padding: 6px; gap: 6px; }
  body.tds .bd-logo { padding: 6px; gap: 5px; }
  body.tds .bd-logo svg { width: 22px; height: 22px; }
  body.tds .bd-logo b { font-size: 14px; }
  body.tds .bd-tipo { padding: 6px; gap: 5px; }
  body.tds .bd-tipo b { font-size: 21px; }
}
