/* O PADRÃO DAS PEÇAS (17/11/2026). Uma definição só para cada peça da home.
   Cada peça troca de cor sozinha conforme o fundo onde está: o fundo (f-branco, f-preto, f-laranja, f-azul)
   define as cores e a peça só usa esses nomes.
   4ª rodada. O dono DEFINIU: botão (bloco em caixa alta com o canto do K), seta (canto do K maciço e troca numa
   cápsula), etiqueta (técnica), elementos da marca (ponto, grade de pontos, canto do K), subtítulo (etiqueta
   numerada e canto do K), cartão (bloco de apoio com o canto do K no alto), ficha de cor (três rodapés, conforme
   o lugar), marcas de clientes (três, conforme o lugar) e duas abas guardadas para decidir o uso depois.
   Ainda em escolha (classes p-cab-a, -b, -c): só o cabeçalho de seção.
   Só usa nomes de tokens.css e marca.css. A folha viva está em /padrao.html. */

.p-pagina { margin: 0; font-family: var(--font); font-size: var(--fs-desc); line-height: var(--lh-desc); -webkit-font-smoothing: antialiased; transition: background-color var(--motion-transition) var(--ease), color var(--motion-transition) var(--ease); }
.p-pagina *, .p-pagina *::before, .p-pagina *::after { box-sizing: border-box; }
.p-pagina :where(h1, h2, h3, p, ul) { margin: 0; padding: 0; }
.p-pagina :where(ul) { list-style: none; }
.p-miolo { width: min(1280px, 100% - 2 * var(--e-24)); margin-inline: auto; }

/* ---------- os quatro fundos. A ficha de cor é um fundo dentro do fundo: nunca fica da cor de onde está ---------- */
.f-branco { --p-fundo: var(--white); --p-tx: var(--ink); --p-tx2: var(--text-muted); --p-linha: var(--line); --p-forte: var(--ink); --p-inv: var(--white); --p-acento: var(--teste-laranja); --p-sup: var(--gray); --p-logo: brightness(0); }
.f-preto, .f-laranja .p-ficha { --p-fundo: var(--black); --p-tx: var(--white); --p-tx2: var(--dark-soft); --p-linha: var(--dark-line-strong); --p-forte: var(--white); --p-inv: var(--black); --p-acento: var(--teste-laranja); --p-sup: var(--dark-raised); --p-logo: brightness(0) invert(1); }
.f-azul, .f-preto .p-ficha { --p-fundo: var(--blue); --p-tx: var(--white); --p-tx2: var(--white); --p-linha: color-mix(in srgb, var(--white) 40%, transparent); --p-forte: var(--white); --p-inv: var(--blue); --p-acento: var(--teste-laranja); --p-sup: color-mix(in srgb, var(--black) 20%, transparent); --p-logo: brightness(0) invert(1); }
.f-laranja, .f-branco .p-ficha, .f-azul .p-ficha { --p-fundo: var(--teste-laranja); --p-tx: var(--white); --p-tx2: var(--white); --p-linha: color-mix(in srgb, var(--white) 50%, transparent); --p-forte: var(--white); --p-inv: var(--black); --p-acento: var(--white); --p-sup: color-mix(in srgb, var(--black) 16%, transparent); --p-logo: brightness(0) invert(1); }
/* Regra de destaque (dono, 17/11/2026): sobre azul o destaque é laranja (canto do K, ponto do título e botão);
   sobre laranja os detalhes ficam brancos, e só o botão é azul. No branco e no preto o destaque continua laranja. */
.f-branco { --p-btn: var(--ink); --p-btn-tx: var(--white); --p-btn-kc: var(--teste-laranja); }
.f-preto, .f-laranja .p-ficha { --p-btn: var(--white); --p-btn-tx: var(--black); --p-btn-kc: var(--teste-laranja); }
.f-azul, .f-preto .p-ficha { --p-btn: var(--teste-laranja); --p-btn-tx: var(--white); --p-btn-kc: var(--white); }
.f-laranja, .f-branco .p-ficha, .f-azul .p-ficha { --p-btn: var(--blue); --p-btn-tx: var(--white); --p-btn-kc: var(--white); }
.p-fundo, .p-ficha { background: var(--p-fundo); color: var(--p-tx); }

/* =====================================================================
   PEÇAS DEFINIDAS
   ===================================================================== */
/* ---------- o canto do K: a seta da marca. Quer dizer "vai para". É a única seta de destino ---------- */
.p-kc { width: 16px; height: 15px; flex: none; color: var(--p-acento); }
.p-seta { width: 1em; height: 1em; flex: none; }
.p-vira { transform: scaleX(-1); }
.p-vazado { color: transparent; -webkit-text-stroke: 1.5px var(--p-tx); font-weight: var(--fw-heavy); letter-spacing: var(--ls-display); line-height: .85; font-variant-numeric: tabular-nums; }

/* ---------- BOTÃO: bloco em caixa alta, na cor forte do fundo, com o canto do K. O secundário é texto com a seta ---------- */
.p-botao { display: inline-flex; align-items: center; justify-content: space-between; gap: var(--e-24); min-height: 56px; padding: 0 var(--e-24); border-radius: var(--radius-control); background: var(--p-btn); color: var(--p-btn-tx); font-size: var(--fs-12); font-weight: var(--fw-heavy); letter-spacing: var(--ls-label); text-transform: uppercase; text-decoration: none; transition: gap var(--motion-micro) var(--ease); }
.p-botao .p-kc { color: var(--p-btn-kc); }
.p-botao:hover { gap: var(--e-32); }
.p-link { display: inline-flex; align-items: center; gap: var(--e-8); min-height: var(--toque); color: var(--p-tx); font-size: var(--fs-12); font-weight: var(--fw-heavy); letter-spacing: var(--ls-label); text-transform: uppercase; text-decoration: none; }
.p-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.p-pagina :is(.p-botao, .p-link, .p-aba, .p-troca-dupla button):focus-visible { outline: 3px solid var(--p-forte); outline-offset: 3px; }
.p-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-12) var(--e-20); }

/* ---------- SETA: o canto do K maciço num bloco de apoio; a troca (carrossel) numa cápsula só ---------- */
.p-ir { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-control); background: var(--p-sup); }
.p-ir .p-kc { width: 26px; height: 24px; }
.p-troca-dupla { display: inline-flex; border-radius: var(--radius-pill); background: var(--p-sup); }
.p-troca-dupla button { display: inline-grid; place-items: center; width: 52px; height: var(--toque); background: none; border: 0; color: var(--p-tx); cursor: pointer; }
.p-troca-dupla button + button { border-left: 1.5px solid var(--p-fundo); }
.p-troca-dupla svg { width: 20px; height: 20px; }

/* ---------- ETIQUETA: técnica. Caixa alta espaçada, o canto do K na frente e uma linha embaixo ---------- */
.p-etiqueta { display: inline-flex; align-items: center; gap: var(--e-8); padding-bottom: var(--e-6); border-bottom: 1.5px solid var(--p-forte); color: var(--p-tx); font-size: var(--fs-11); line-height: var(--lh-mini); font-weight: var(--fw-heavy); letter-spacing: var(--ls-label); text-transform: uppercase; white-space: nowrap; }
.p-etiqueta .p-kc { width: 10px; height: 9px; }
.p-etiquetas { display: flex; flex-wrap: wrap; gap: var(--e-20); }

/* ---------- ELEMENTOS DA MARCA: o ponto no fim do título, a grade de pontos e o canto do K grande ---------- */
.p-ponto { display: inline-block; width: .16em; height: .16em; margin-left: .04em; border-radius: var(--radius-round); background: var(--p-acento); }
.p-grade { width: 160px; height: 80px; background: radial-gradient(color-mix(in srgb, var(--p-tx) 45%, transparent) 1.3px, transparent 1.7px) 0 0 / 16px 16px; pointer-events: none; }
.p-elem { position: relative; display: grid; align-content: end; min-height: 240px; overflow: hidden; padding: var(--e-24); border: 1px dashed var(--p-linha); border-radius: var(--radius-control); }
.p-elem .p-grade { position: absolute; top: var(--e-24); right: var(--e-24); }
.p-elem > .p-kc { position: absolute; top: var(--e-24); right: var(--e-24); width: 96px; height: 90px; }

/* ---------- MARCAS DE CLIENTES: a linha de logos e a grade, cada uma para um lugar ---------- */
.p-marcas-a { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-24) var(--e-32); }
.p-marcas-a img { height: 28px; width: auto; max-width: 116px; object-fit: contain; filter: var(--p-logo); }
.p-marcas-c { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1.5px solid var(--p-forte); border-radius: var(--radius-control); }
.p-marcas-c span { display: grid; place-items: center; min-height: 88px; padding: var(--e-16); border-right: 1.5px solid var(--p-forte); border-bottom: 1.5px solid var(--p-forte); margin: 0 calc(var(--e-2) * -1) calc(var(--e-2) * -1) 0; }
.p-marcas-c img { height: 30px; width: auto; max-width: 120px; object-fit: contain; filter: var(--p-logo); }

/* ---------- PROVA SOCIAL: o selo (3ª rodada; o dono pediu a pegada do selo dos temas, com a marca e estrelas) ----------
   Um bloco de apoio só: os círculos das marcas encostados, a frase em duas linhas e, quando houver nota, as estrelas.
   As estrelas usam a cor de destaque do fundo. Os círculos usam os ícones "-icone-centro" (logo no centro). */
.p-rostos { display: flex; flex: none; }
.p-rostos img { width: 44px; height: 44px; margin-left: calc(var(--e-12) * -1); border: 3px solid var(--p-selo, var(--p-fundo)); border-radius: var(--radius-round); background: var(--white); object-fit: cover; }
.p-rostos img:first-child { margin-left: 0; }
.p-prova { --p-selo: var(--p-sup); justify-self: start; align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--e-10) var(--e-16); padding: var(--e-10) var(--e-20) var(--e-10) var(--e-10); border-radius: var(--radius-control); background: var(--p-sup); color: var(--p-tx); }
.p-prova .p-rostos img { border-color: var(--p-fundo); }
.p-prova-txt { display: grid; font-size: var(--fs-14); line-height: 1.3; color: var(--p-tx2); }
.p-prova-txt b { font-size: var(--fs-16); font-weight: var(--fw-heavy); letter-spacing: var(--ls-heading); color: var(--p-tx); }
/* a nota fica pequena, em cima de "+500 empresas" (pedido do dono) */
.p-prova-nota { display: inline-flex; align-items: center; gap: var(--e-6); margin-bottom: var(--e-2); font-size: var(--fs-12); line-height: 1; font-weight: var(--fw-heavy); font-variant-numeric: tabular-nums; color: var(--p-tx); }
.p-estrelas { display: inline-flex; gap: var(--e-1); color: var(--p-acento); }
.p-estrelas svg { width: 12px; height: 12px; }

/* ---------- SUBTÍTULO E SUBDESCRIÇÃO (definido): a etiqueta numerada, o subtítulo com o canto do K à direita e o texto ---------- */
.p-subtitulo { font-size: var(--fs-card-destaque); line-height: var(--lh-card-destaque); font-weight: var(--fw-bold); letter-spacing: var(--ls-title); }
.p-subdescricao { font-size: var(--fs-desc); line-height: var(--lh-desc); color: var(--p-tx2); }
.p-sub { display: grid; gap: var(--e-12); justify-items: start; }
.p-sub .p-sub-tit { display: flex; align-items: center; justify-content: space-between; gap: var(--e-16); width: 100%; }
.p-sub .p-sub-tit .p-kc { width: 20px; height: 19px; }

/* ---------- CARTÃO NEUTRO (definido): sem contorno, fundo de apoio, etiqueta em cima e o bloco do canto do K no alto ---------- */
.p-cartao { position: relative; display: grid; gap: var(--e-12); justify-items: start; overflow: hidden; padding: var(--e-24); border-radius: var(--radius-control); background: var(--p-sup); }
.p-cartao .p-etiqueta { margin-bottom: var(--e-24); }
.p-cartao .p-ir { position: absolute; top: var(--e-16); right: var(--e-16); width: var(--toque); height: var(--toque); background: var(--p-forte); }
.p-cartao .p-ir .p-kc { width: 16px; height: 15px; color: var(--teste-laranja); }

/* ---------- FICHA DE COR (definida, em três tamanhos de rodapé conforme o lugar) ----------
   Sempre: o canto do K e a grade de pontos em cima, a etiqueta, o título, as linhas grandes com o canto do K. */
.p-ficha { position: relative; display: flex; flex-direction: column; min-height: 480px; padding: var(--e-24) var(--e-24) var(--e-32); border-radius: var(--radius-control); overflow: hidden; }
.p-ficha-topo { display: flex; justify-content: space-between; align-items: flex-start; }
.p-ficha-topo > .p-kc { width: 40px; height: 37px; }
.p-ficha .p-etiqueta { align-self: flex-start; margin-top: var(--e-32); border-bottom: 0; padding-bottom: 0; }
.p-ficha-titulo { margin: var(--e-10) 0 var(--e-24); font-size: calc(var(--teste-fs-cartao) * 1.12); line-height: 1.04; font-weight: var(--fw-bold); letter-spacing: var(--ls-title); max-width: 12ch; }
.p-ficha .p-linhas li { display: flex; align-items: center; justify-content: space-between; padding: var(--e-10) 0; border-top: 1px solid var(--p-linha); font-size: var(--fs-24); line-height: 1.2; font-weight: var(--fw-bold); letter-spacing: var(--ls-title); }
.p-ficha .p-linhas .p-kc { width: 16px; height: 15px; }
.p-ficha-rodape { position: relative; z-index: var(--z-over); margin-top: auto; padding-top: var(--e-20); font-size: var(--fs-14); font-weight: var(--fw-bold); }
.p-numero { display: flex; align-items: flex-end; gap: var(--e-16); }
.p-numero b { font-size: var(--teste-fs-numero); line-height: .78; font-weight: var(--fw-heavy); letter-spacing: var(--ls-display); }
.p-numero span { padding-bottom: var(--e-4); font-size: var(--fs-18); line-height: 1.2; font-weight: var(--fw-bold); }
/* simples: a frase no pé (só as regras de cima) */
/* com o número gigante apagado ao fundo */
.p-ficha.marca-dagua .p-marca-dagua { position: absolute; right: var(--e-8); bottom: calc(var(--e-32) * -1); font-size: calc(var(--teste-fs-numero) * 2.4); line-height: .8; font-weight: var(--fw-heavy); letter-spacing: var(--ls-display); color: color-mix(in srgb, var(--p-tx) 16%, transparent); pointer-events: none; }
.p-ficha.marca-dagua :is(.p-linhas, .p-ficha-titulo) { position: relative; z-index: var(--z-over); }
/* com o número grande no pé, como na ficha do topo */
.p-ficha.numero .p-ficha-rodape { border-top: 1.5px solid var(--p-forte); }

/* ---------- ABA (duas guardadas; o dono decide o uso de cada uma depois) ---------- */
.p-aba { display: inline-flex; align-items: center; gap: var(--e-10); min-height: var(--toque); background: none; border: 0; color: var(--p-tx); font: inherit; font-size: var(--fs-11); font-weight: var(--fw-heavy); letter-spacing: var(--ls-label); text-transform: uppercase; cursor: pointer; }
.p-aba .p-kc { width: 10px; height: 9px; opacity: 0; }
.p-aba[aria-selected="true"] .p-kc { opacity: 1; }
/* etiquetas: uma linha fina por baixo de todas; a ativa ganha o canto do K e a linha forte */
.p-abas-a { display: flex; flex-wrap: wrap; gap: 0 var(--e-32); border-bottom: 1px solid var(--p-linha); }
.p-abas-a .p-aba { margin-bottom: calc(var(--e-1) * -1); padding: var(--e-12) 0; border-bottom: 2px solid transparent; color: var(--p-tx2); }
.p-abas-a .p-aba[aria-selected="true"] { border-bottom-color: var(--p-forte); color: var(--p-tx); }
/* blocos juntos: uma barra só, dividida em blocos; o ativo fica cheio na cor forte, como o botão */
.p-abas-b { display: inline-flex; flex-wrap: wrap; justify-self: start; padding: var(--e-4); gap: var(--e-4); border-radius: var(--radius-control); background: var(--p-sup); }
.p-abas-b .p-aba { min-height: 48px; padding: 0 var(--e-20); border-radius: var(--radius-small); }
.p-abas-b .p-aba[aria-selected="true"] { background: var(--p-forte); color: var(--p-inv); }
.p-abas-b .p-aba[aria-selected="true"] .p-kc { color: var(--teste-laranja); }

/* =====================================================================
   PEÇA EM ESCOLHA: CABEÇALHO DE SEÇÃO (3 desenhos)
   4ª rodada: o dono achou a etiqueta e o texto longe demais do título e a altura de linha alta.
   Agora o conjunto é colado: 8px da etiqueta ao título, 12px do título ao texto, linhas mais baixas.
   ===================================================================== */
.p-titulo { font-size: var(--fs-h2); line-height: 1; font-weight: var(--fw-heavy); letter-spacing: var(--ls-display); max-width: 18ch; }
.p-descricao { font-size: var(--fs-lead); line-height: 1.4; color: var(--p-tx2); max-width: 52ch; }
.p-cab-junto { display: grid; gap: var(--e-8); justify-items: start; }
.p-cab-junto .p-descricao { margin-top: var(--e-4); }
/* A · linha e canto: linha forte em cima; logo abaixo, a etiqueta e o canto do K; título e texto colados */
.p-cab-a { display: grid; gap: var(--e-12); padding-top: var(--e-12); border-top: 1.5px solid var(--p-forte); }
.p-cab-a .p-cab-linha { display: flex; align-items: center; justify-content: space-between; }
.p-cab-a .p-cab-linha > .p-kc { width: 24px; height: 22px; }
.p-cab-a .p-etiqueta { border-bottom: 0; padding-bottom: 0; }
/* B · número ao fundo: o número da seção enorme, só no contorno, à direita; etiqueta, título e texto colados à esquerda */
.p-cab-b { position: relative; display: grid; align-content: center; min-height: 180px; }
.p-cab-b .p-vazado { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: calc(var(--teste-fs-numero) * 1.7); opacity: .55; pointer-events: none; }
.p-cab-b .p-cab-junto { position: relative; z-index: var(--z-over); }
/* C · duas colunas: linha forte em cima; etiqueta e título à esquerda, texto e link à direita, alinhados embaixo */
.p-cab-c { display: grid; gap: var(--e-12) var(--e-64); padding-top: var(--e-12); border-top: 1.5px solid var(--p-forte); }
.p-cab-c .p-cab-dir { display: grid; gap: var(--e-8); justify-items: start; align-content: end; }
@media (min-width: 900px) { .p-cab-c { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; } }

/* ---------- a folha: só a moldura desta página, não é peça ---------- */
.p-folha-topo { padding: var(--e-64) 0 var(--e-40); display: grid; gap: var(--e-16); }
.p-bloco { padding: var(--e-40) 0 var(--e-48); border-top: 1.5px solid var(--p-forte); }
.p-bloco > .p-miolo { display: grid; gap: var(--e-32); }
.p-bloco-cab { display: grid; gap: var(--e-8); justify-items: start; }
.p-bloco-cab b { font-size: var(--fs-24); line-height: 1.2; font-weight: var(--fw-heavy); letter-spacing: var(--ls-heading); }
.p-bloco-cab > span:not(.p-estado) { max-width: 80ch; color: var(--p-tx2); }
.p-estado { display: inline-flex; padding: var(--e-4) var(--e-10); border-radius: var(--radius-small); background: var(--p-forte); color: var(--p-inv); font-size: var(--fs-11); font-weight: var(--fw-heavy); letter-spacing: var(--ls-label); text-transform: uppercase; }
.p-estado.aberto { background: none; border: 1.5px solid var(--p-forte); color: var(--p-tx); }
.p-tres, .p-pilha { display: grid; gap: var(--e-48) var(--e-32); }
@media (min-width: 900px) { .p-tres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.p-var { display: grid; align-content: start; gap: var(--e-24); min-width: 0; }
.p-var-nome { display: flex; align-items: center; gap: var(--e-8); font-size: var(--fs-12); line-height: var(--lh-mini); font-weight: var(--fw-heavy); letter-spacing: var(--ls-label-soft); text-transform: uppercase; color: var(--p-tx); }
.p-var-nome b { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: var(--radius-round); background: var(--p-forte); color: var(--p-inv); letter-spacing: 0; }
.p-pagina main { padding-bottom: var(--e-128); }

/* o botão que troca o fundo da folha inteira */
.p-troca-fundo { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-top); display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-8) var(--e-20); padding: var(--e-10) var(--e-24); background: var(--black); color: var(--white); border-top: 1.5px solid var(--white); font-size: var(--fs-13); }
.p-troca-fundo b { font-size: var(--fs-12); font-weight: var(--fw-heavy); letter-spacing: var(--ls-label); text-transform: uppercase; }
.p-troca-fundo div { display: flex; flex-wrap: wrap; gap: var(--e-4); margin-left: auto; }
.p-troca-fundo button { display: inline-flex; align-items: center; gap: var(--e-8); min-height: var(--toque); padding: 0 var(--e-16); background: none; border: 1px solid var(--dark-line-strong); border-radius: var(--radius-small); color: var(--white); font: inherit; font-weight: var(--fw-bold); cursor: pointer; }
.p-troca-fundo button::before { content: ""; width: 14px; height: 14px; border-radius: var(--radius-round); border: 1px solid var(--white); background: var(--p-fundo); }
.p-troca-fundo button[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--black); }
.p-troca-fundo button[aria-pressed="true"]::before { border-color: var(--black); }
.p-troca-fundo button:focus-visible { outline: 3px solid var(--blue-vivo); outline-offset: 2px; }
