/* Todo Preço — componentes (Design System v5 "Mesa de curadoria")
   Porte de docs/design-system/components/bundle.css para HTML puro: mesmas classes tp-* e
   data-slot, sem o escopo ".tp". Cor só por token (tokens.css) ou por color-mix de tokens.
   Tema escuro: [data-theme="dark"] e preferência do sistema (:root:not([data-theme="light"])).
   Variáveis de tema (--page, --node, --folder-img, --photo-shadow) vêm de base.css.
   Tamanhos de fonte sem token (14px, 17px, 22px, 28px) são os do bundle.css. */

/* ─── Button: cantos de 10px, não pílula ──────────────────── */
[data-slot="button"] {
  --b-h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: var(--b-h);
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  font: var(--text-ui);
  letter-spacing: var(--tracking-ui);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
[data-slot="button"][data-size="sm"] { --b-h: 36px; padding: 0 14px; font-size: 14px; }
[data-slot="button"][data-size="sm"], [data-slot="button"][data-variant="link"] { position: relative; }
[data-slot="button"][data-size="sm"]::after, [data-slot="button"][data-variant="link"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  min-width: 44px;
  height: max(44px, 100%);
  transform: translateY(-50%);
}
[data-slot="button"]:active { transform: scale(0.97); }
[data-slot="button"][data-variant="primary"] { background: var(--primary); color: var(--primary-foreground); }
[data-slot="button"][data-variant="primary"]:hover {
  box-shadow: inset 0 0 0 100px color-mix(in srgb, var(--brand-branco) 25%, transparent), 0 0 0 4px color-mix(in srgb, var(--brand-ciano) 22%, transparent);
}
[data-slot="button"][data-variant="outline"] { background: transparent; color: var(--foreground); box-shadow: inset 0 0 0 1px var(--input); }
[data-slot="button"][data-variant="outline"]:hover { box-shadow: inset 0 0 0 1px var(--foreground); }
[data-slot="button"][data-variant="link"] { --b-h: auto; padding: 2px 0; min-height: 24px; background: none; color: var(--link); border-radius: 4px; }
[data-slot="button"][data-variant="link"]:active { transform: none; }
.tp-arrow { width: 14px; height: 14px; flex-shrink: 0; transition: transform var(--t-fast) var(--ease-out); }
[data-slot="button"]:hover .tp-arrow[data-dir="right"] { transform: translateX(3px); }
[data-slot="button"]:hover .tp-arrow[data-dir="out"] { transform: translate(2px, -2px); }

/* ─── Logo que troca com o tema ───────────────────────────── */
.tp-logo-light, .tp-logo-dark { display: block; height: auto; }
.tp-logo-dark { display: none; }
[data-theme="dark"] .tp-logo-light { display: none; }
[data-theme="dark"] .tp-logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tp-logo-light { display: none; }
  :root:not([data-theme="light"]) .tp-logo-dark { display: block; }
}

/* ─── NavBar ──────────────────────────────────────────────── */
.tp-skip {
  position: absolute;
  left: var(--s-4);
  top: -80px;
  z-index: 100;
  padding: 10px var(--s-4);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
}
.tp-skip:focus-visible { top: var(--s-2); }
[data-slot="navbar"] {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
[data-slot="navbar"][data-scrolled="true"] {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: inset 0 -1px 0 var(--border);
}
.tp-nav-in { display: flex; align-items: center; gap: var(--s-6); max-width: var(--page-max); height: var(--nav-h); margin: 0 auto; padding: 0 var(--wrap-pad); }
.tp-nav-logo { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.tp-nav-logo img { height: 22px; width: auto; }
.tp-nav-nav { margin: 0 auto; }
.tp-nav-links { display: flex; gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.tp-nav-links a {
  position: relative;
  display: block;
  padding: var(--s-2) 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}
.tp-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--s-1);
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}
.tp-nav-links a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  min-width: 44px;
  height: 44px;
  transform: translateY(-50%);
}
.tp-nav-links a:hover { color: var(--foreground); }
.tp-nav-links a:hover::after { transform: scaleX(1); }
.tp-nav-end { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.tp-nav-panel { display: none; }
.tp-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out);
}
.tp-icon-btn:hover { background: var(--secondary); }
.tp-icon-btn svg { width: 20px; height: 20px; }
.tp-icon-btn.tp-nav-menu { display: none; }

/* Botão de tema e busca (extensões da v5, 04/10/2026, docs/03 seção 2.2).
   Sem JS não há como alternar o tema nem dar a resposta da busca: os dois ficam ocultos. */
.tp-search, .tp-search-btn, .tp-theme-btn { display: none; }
.js .tp-theme-btn { display: inline-grid; }
.js .tp-search { display: block; }
.tp-theme-btn svg { display: block; }
/* Lupa vira X com a busca aberta (mesmo gesto do botão do menu) */
.tp-search-btn .tp-ico-x { display: none; }
.tp-search-btn[aria-expanded="true"] .tp-ico-x { display: block; }
.tp-search-btn[aria-expanded="true"] .tp-ico-lupa { display: none; }
.tp-theme-btn .tp-ico-sun { display: none; }
[data-theme="dark"] .tp-theme-btn .tp-ico-moon { display: none; }
[data-theme="dark"] .tp-theme-btn .tp-ico-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tp-theme-btn .tp-ico-moon { display: none; }
  :root:not([data-theme="light"]) .tp-theme-btn .tp-ico-sun { display: block; }
}
.tp-search { --sh: 44px; --si: 18px; --sx: color-mix(in srgb, var(--muted-foreground) 80%, var(--foreground)); position: relative; width: clamp(12rem, 17vw, 15rem); }
.tp-search-field { position: relative; }
.tp-search-ico { position: absolute; left: var(--s-3); top: calc((var(--sh) - var(--si)) / 2); width: var(--si); height: var(--si); color: var(--sx); pointer-events: none; }
.tp-search input {
  display: block;
  width: 100%;
  height: var(--sh);
  margin: 0;
  padding: 0 var(--s-4) 0 calc(var(--s-3) + var(--si) + var(--s-2));
  border: 0;
  border-radius: var(--r-full);
  background: var(--secondary);
  color: var(--foreground);
  font: var(--text-ui);
  letter-spacing: var(--tracking-ui);
  -webkit-appearance: none;
  appearance: none;
}
.tp-search input::placeholder { color: var(--sx); opacity: 1; }
.tp-search input::-webkit-search-cancel-button,
.tp-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.tp-search-msg {
  position: absolute;
  top: calc(100% + var(--s-2));
  right: 0;
  z-index: 1;
  width: max-content;
  max-width: min(20rem, 85vw);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-node);
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: var(--shadow-lift);
  font: var(--text-caption);
}
/* Vazia, a mensagem continua na árvore (o leitor de tela só anuncia o que entra numa região viva presente) */
.tp-search-msg:empty { padding: 0; box-shadow: none; }
@keyframes tp-drop { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 899.98px) {
  .tp-nav-in { gap: var(--s-3); }
  .tp-nav-links { display: none; }
  .js .tp-nav-nav { display: none; }
  .js .tp-icon-btn.tp-nav-menu { display: inline-grid; }
  .js .tp-search-btn { display: inline-grid; }
  .js .tp-search { display: none; }
  .js .tp-search[data-open="true"] {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    width: auto;
    padding: var(--s-2) var(--wrap-pad) var(--s-4);
    background: var(--popover);
    box-shadow: var(--shadow-lift);
    animation: tp-drop var(--t-med) var(--ease-out);
  }
  /* 16px no campo: abaixo disso o Safari do iPhone dá zoom ao focar */
  .tp-search input { font: var(--text-body); }
  .tp-search-msg:empty { margin: 0; }
  .tp-search-msg { position: static; width: auto; max-width: none; margin-top: var(--s-2); padding: 0 var(--s-1); background: none; box-shadow: none; }
  .tp-nav-panel[data-open="true"] {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    padding: var(--s-2) var(--wrap-pad) var(--s-5);
    background: var(--popover);
    box-shadow: var(--shadow-lift);
    overscroll-behavior: contain;
    animation: tp-drop var(--t-med) var(--ease-out);
  }
  .tp-nav-panel ul { list-style: none; margin: 0; padding: 0; }
  .tp-nav-panel a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font: var(--text-h3);
    font-weight: 500;
    color: var(--popover-foreground);
    text-decoration: none;
  }
  /* Sem JS não há menu: os links ficam numa segunda linha da barra */
  html:not(.js) .tp-nav-in { height: auto; min-height: var(--nav-h); flex-wrap: wrap; row-gap: 0; }
  html:not(.js) .tp-nav-nav { margin: 0; flex-basis: 100%; }
  html:not(.js) .tp-nav-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
}

/* ─── ProfileDrum: o perfil como tambor de palavras ───────── */
[data-slot="profile-drum"] { display: flex; flex-direction: column; gap: var(--s-4); }
.tp-drum-label { font: var(--text-ui); letter-spacing: var(--tracking-ui); color: var(--muted-foreground); }
.tp-drum {
  --lh: 92px;
  --dot: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 28px;
}
.tp-drum-item {
  position: relative;
  border: 0;
  background: none;
  padding: 0 4px 0 0;
  margin: 0;
  font: var(--text-drum);
  letter-spacing: var(--tracking-drum);
  color: var(--input);
  text-align: left;
  transform-origin: left center;
  transition: color var(--t-med) var(--ease-out), transform var(--t-slow) var(--ease-out), opacity var(--t-med) var(--ease-out);
}
.js .tp-drum-item { cursor: pointer; }
.tp-drum-item[data-dist="2"] { transform: scale(0.9); }
.tp-drum-item[data-dist="3"] { transform: scale(0.82); }
.js .tp-drum-item:hover { color: var(--foreground); }
.tp-drum-item[aria-checked="true"] { color: var(--foreground); transform: translateX(12px); }
.tp-drum-dot {
  position: absolute;
  left: 4px;
  top: 0;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--brand-ciano);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-ciano) 22%, transparent);
  transform: translateY(calc(var(--i, 0) * var(--lh) + (var(--lh) - var(--dot)) / 2));
  transition: transform var(--t-slow) var(--ease-out);
  pointer-events: none;
}
.tp-drum[data-i="1"] { --i: 1; }
.tp-drum[data-i="2"] { --i: 2; }
.tp-drum[data-i="3"] { --i: 3; }
.tp-drum-hint { min-height: 24px; font-size: 15px; line-height: 22px; color: var(--muted-foreground); }
@media (max-width: 767px) {
  .tp-drum { --lh: 58px; --dot: 11px; padding-left: 22px; }
  .tp-drum-item { font-size: 56px; line-height: 58px; }
}

/* Categoria no seletor de perfil (04/10/2026): controle segmentado. Texto em foreground sobre o trilho;
   o selecionado é uma pílula invertida (fundo foreground, texto background; o peso não muda, para não
   deslocar o layout); o ciano fica para a ação de loja. Sem JS não faz nada, então some. */
.tp-drum-cat { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); }
html:not(.js) .tp-drum-cat { display: none; }
.tp-seg {
  display: inline-flex;
  gap: var(--s-1);
  max-width: 100%;
  align-self: flex-start;
  padding: var(--s-1);
  border-radius: calc(var(--radius) + var(--s-1));
  background: var(--secondary);
}
.tp-seg-item {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0 var(--s-4);
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  font: var(--text-ui);
  letter-spacing: var(--tracking-ui);
  color: var(--foreground);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
@media (hover: hover) {
  .tp-seg-item:not([aria-checked="true"]):hover { background: var(--node); }
}
.tp-seg-item[aria-checked="true"] { background: var(--foreground); color: var(--background); }
@media (forced-colors: active) {
  .tp-seg-item[aria-checked="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
@media (max-width: 767px) {
  .tp-seg { align-self: stretch; }
  .tp-seg-item { flex: 1 1 auto; padding: 0 var(--s-3); }
}
@media (max-width: 359.98px) {
  .tp-seg-item { padding: 0 var(--s-2); }
}
/* Estado sem exemplo (Celular, Fone, PC): texto curto, centrado no corpo para o card não parecer quebrado */
.tp-empty { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.tp-empty p, .tp-empty-x, .tp-why .tp-empty-x { font-size: 15px; line-height: 22px; color: var(--muted-foreground); }

/* ─── Node: o objeto pousado na mesa ──────────────────────── */
[data-slot="node"] { position: relative; display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.tp-node-cap {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0 2px;
  font: var(--text-caption);
  color: var(--foreground);
  transition: color var(--t-fast) var(--ease-out);
}
.tp-node-cap > span:nth-child(2) { color: var(--muted-foreground); font-weight: 400; font-variant-numeric: tabular-nums; }
.tp-node-body {
  position: relative;
  border-radius: var(--r-node);
  background: var(--node);
  box-shadow: var(--shadow-node);
  padding: var(--s-4);
  transition: box-shadow var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
[data-slot="node"][data-kind="photo"] .tp-node-body { aspect-ratio: 4 / 3; padding: 0; overflow: hidden; }
[data-slot="node"][data-kind="photo"] img {
  position: absolute;
  inset: 9%;
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px var(--photo-shadow));
}
.tp-swap { animation: tp-swap var(--t-slow) var(--ease-out) both; }
@keyframes tp-swap { from { opacity: 0; transform: translateY(8px) scale(0.97); filter: blur(8px); } }
.tp-delay-1 { animation-delay: 70ms; }
.tp-delay-2 { animation-delay: 140ms; }

/* ─── CurationCanvas: produto, oferta e motivo ligados por linhas ───
   Os três nós têm o mesmo tamanho (decisão de 03/10/2026). De 560px do contêiner para cima ficam
   em triângulo numa grade de 2 colunas e 4 linhas iguais: cada nó ocupa 2 linhas + 1 vão, então os
   três têm a mesma altura, e o produto (coluna 1, linhas 2-3) fica centrado na vertical entre a
   oferta (coluna 2, linhas 1-2) e o motivo (coluna 2, linhas 3-4). A altura do contêiner é
   automática: as linhas se igualam pelo maior conteúdo (oferta ou motivo, nunca a foto).
   As linhas SVG são medidas nos nós reais pelo home.js. Abaixo de 560px vira pilha, sem linhas,
   também com os três nós da mesma altura. No desktop (>= 1180px) o home.css troca essa grade pelo
   triângulo fixo de 2 linhas, com três ligações. */
[data-slot="curation-canvas"] { position: relative; container-type: inline-size; }
.tp-cc {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, 1fr);
  column-gap: var(--s-7); /* vão por onde passam as linhas de neon */
  row-gap: var(--s-4);
  align-items: stretch;
}
.tp-cc-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tp-cc-line { fill: none; stroke: var(--input); stroke-width: 1.5; stroke-dasharray: 1; animation: tp-draw 900ms var(--ease-out) both; }
.tp-cc-flow {
  fill: none;
  stroke: var(--brand-ciano);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 0.06 0.94;
  stroke-dashoffset: 1.06;
  filter: drop-shadow(0 0 3px var(--brand-ciano));
  animation: tp-flow 3.6s linear infinite;
}
/* Hero: lacuna maior que a linha (só um pulso visível por vez). 0%: traço antes do início;
   70% a 100%: traço depois do fim, repouso invisível que esconde a emenda do loop. */
.tp-cc-lines .tp-cc-flow {
  stroke-dasharray: 0.06 1.06;
  stroke-dashoffset: 0.07;
  animation: tp-flow-hero 3.6s var(--ease-out) infinite;
  animation-delay: 900ms; /* espera a linha cinza se desenhar (tp-draw, 900ms) */
}
@keyframes tp-draw { from { stroke-dashoffset: 1; } }
@keyframes tp-flow { to { stroke-dashoffset: 0; } }
@keyframes tp-flow-hero { 0% { stroke-dashoffset: 0.07; } 70%, 100% { stroke-dashoffset: -1.01; } }
/* Cada nó é uma pasta (.tp-folder, a mesma do FolderStack). A aba é absoluta (bottom: 100%, 36px),
   então cada nó reserva --cc-aba acima do corpo, como o padding-top do folder-stack.
   No desktop (≥1180px) a grade acima é redefinida em home.css (triângulo fixo de 2 linhas). A
   entrada .tp-swap usa transform no .tp-cc-n e a flutuação, transform no .tp-folder. */
.tp-cc-n { --cc-aba: 44px; position: relative; display: flex; flex-direction: column; min-width: 0; padding-top: var(--cc-aba); }
.tp-cc-n[data-at="product"] { grid-column: 1; grid-row: 2 / 4; }
.tp-cc-n[data-at="offer"] { grid-column: 2; grid-row: 1 / 3; animation-delay: 60ms; }
.tp-cc-n[data-at="why"] { grid-column: 2; grid-row: 3 / 5; animation-delay: 120ms; }
.tp-cc-lines .tp-flow-1 { animation-delay: 2.1s; } /* pulsos em terços do ciclo de 3,6s: 900ms, 900ms + 1,2s */
.tp-cc-lines .tp-flow-2 { animation-delay: 3.3s; } /* 900ms + 2,4s */
/* Ajustes da pasta dentro do conjunto (seletor de contexto; não há variante nova):
   1) sem o lift de -10px no hover/foco: o canvas pausa no hover e o lift soltaria as ligações
      (fica a troca de sombra do .tp-folder-body);
   2) a pasta e o corpo esticam até a altura do nó (os três nós têm a mesma altura);
   3) a aba não passa da largura do corpo: max-width: 100% e o nome (<b>) corta com reticências. */
.tp-cc .tp-folder { flex: 1 1 auto; display: flex; flex-direction: column; }
.tp-cc .tp-folder:hover, .tp-cc .tp-folder:focus-within { transform: none; }
.tp-cc .tp-folder-body { flex: 1 1 auto; height: auto; }
.tp-cc .tp-folder-tab { max-width: 100%; }
.tp-cc .tp-folder-tab b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-cc .tp-folder-tab > span { flex: none; white-space: nowrap; }
/* Foto: a área da imagem estica com o corpo, mas não dita a altura (quem dita é o conteúdo de
   oferta e motivo): altura mínima pequena, imagem com object-fit: contain. Na pilha (< 560px)
   mantém a proporção 16/10 da ficha como base e cresce até a altura comum. */
.tp-cc-n[data-at="product"] .tp-folder-img { flex: 1 1 auto; }
@container (min-width: 560px) {
  .tp-cc-n[data-at="product"] .tp-folder-img { aspect-ratio: auto; min-height: var(--s-8); }
}
[data-slot="curation-canvas"]:focus-within .tp-cc-flow { animation-play-state: paused; }
@media (hover: hover) {
  [data-slot="curation-canvas"]:hover .tp-cc-flow { animation-play-state: paused; }
}
/* Flutuação leve (exceção aprovada em 02/10/2026, ajustada em 03/10/2026: meia-volta de 2s, 5px nos
   blocos e 6px na foto): só fora da pilha; roda também com reduce (03/10/2026).
   Anima a pasta, não o .tp-cc-n (entrada .tp-swap) nem o corpo (transição de transform). */
@keyframes tp-float { from { transform: translateY(0); } to { transform: translateY(calc(var(--float) * -1)); } }
@container (min-width: 560px) {
  .tp-cc-n > .tp-folder { --float: 5px; animation: tp-float 2s var(--ease-io) infinite alternate; }
  .tp-cc-n[data-at="product"] > .tp-folder { --float: 6px; }
  .tp-cc-n[data-at="offer"] > .tp-folder { animation-delay: -0.5s; }
  .tp-cc-n[data-at="why"] > .tp-folder { animation-delay: -1s; }
  [data-slot="curation-canvas"]:focus-within .tp-cc-n > .tp-folder { animation-play-state: paused; }
}
@media (hover: hover) {
  @container (min-width: 560px) {
    [data-slot="curation-canvas"]:hover .tp-cc-n > .tp-folder { animation-play-state: paused; }
  }
}
@container (max-width: 559.98px) {
  .tp-cc { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: 1fr; column-gap: 0; row-gap: var(--s-5); }
  .tp-cc-n[data-at] { grid-column: auto; grid-row: auto; }
  .tp-cc-lines { display: none; }
  /* Fio entre um corpo e o seguinte: da base do corpo de cima ao topo do corpo de baixo. Fica à
     direita (var(--s-6) da borda) para passar ao lado da aba, que é ancorada à esquerda, sem cruzá-la. */
  .tp-cc-n + .tp-cc-n::before {
    content: "";
    position: absolute;
    right: var(--s-6);
    top: calc(var(--s-5) * -1);
    width: 1px;
    height: calc(var(--s-5) + var(--cc-aba));
    background: var(--input);
  }
}

/* Conteúdo dos nós */
.tp-offer { display: flex; flex-direction: column; gap: var(--s-3); }
.tp-offer [data-slot="button"] { white-space: normal; height: auto; min-height: var(--b-h); padding-block: var(--s-2); text-align: center; }
.tp-score { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.tp-score b { font-size: 40px; line-height: 40px; font-weight: 600; letter-spacing: var(--tracking-mega); }
.tp-score span { font-size: 14px; color: var(--muted-foreground); }
.tp-why { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.tp-why p { font-size: 15px; line-height: 22px; }
.tp-why .tp-legend { font: var(--text-note); color: var(--muted-foreground); }

/* ─── Price ───────────────────────────────────────────────── */
[data-slot="price"] { display: flex; flex-direction: column; gap: var(--s-1); font-variant-numeric: tabular-nums; }
.tp-price { display: flex; align-items: flex-start; white-space: nowrap; color: var(--foreground); }
.tp-price-cur { font-size: 15px; font-weight: 500; margin: var(--s-1) var(--s-1) 0 0; }
.tp-price-int { font: var(--text-price); letter-spacing: var(--tracking-price); }
.tp-price-dec { font-size: 15px; font-weight: 500; margin-top: var(--s-1); }
[data-size="lg"] .tp-price-int { font-size: 48px; line-height: 48px; }
[data-size="lg"] .tp-price-cur, [data-size="lg"] .tp-price-dec { font-size: 18px; margin-top: 6px; }
.tp-inst { font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.tp-inst strong { color: var(--mark); font-weight: 600; }
.tp-inst span { color: var(--foreground); font-weight: 500; }
[data-slot="mark"] {
  position: relative;
  display: inline-block;
  margin-left: 3px;
  color: var(--mark);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}
[data-slot="mark"]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
}
a[data-slot="mark"]:hover { color: var(--foreground); }

/* ─── SectionHeader e MegaHeader ──────────────────────────── */
[data-slot="section-header"] { display: flex; flex-direction: column; gap: var(--s-3); max-width: 54rem; }
.tp-sh-t { font: var(--text-h2); letter-spacing: var(--tracking-h2); }
.tp-sh-t span { color: var(--muted-foreground); }
.tp-sh-d { font: var(--text-lead); letter-spacing: var(--tracking-lead); color: var(--muted-foreground); }
[data-slot="section-header"][data-size="h1"] .tp-sh-t { font: var(--text-h1); letter-spacing: var(--tracking-h1); }
@media (max-width: 767px) {
  .tp-sh-t { font-size: 30px; line-height: 36px; }
  [data-slot="section-header"][data-size="h1"] .tp-sh-t { font-size: 34px; line-height: 38px; }
}
[data-slot="mega-header"] { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-5) var(--s-6); }
.tp-mega { font: var(--text-mega); letter-spacing: var(--tracking-mega); }
.tp-mega-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-3); text-align: right; padding-bottom: var(--s-2); }
.tp-mega-side p { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; max-width: 16ch; }
@media (max-width: 899.98px) {
  [data-slot="mega-header"] { grid-template-columns: minmax(0, 1fr); }
  .tp-mega-side { align-items: flex-start; text-align: left; }
}
@media (max-width: 767px) {
  .tp-mega { font-size: 56px; line-height: 56px; }
  .tp-mega-side p { font-size: 22px; line-height: 26px; }
}

/* ─── CategoryStrip: pastas com aba (as mesmas do FolderStack) ───
   A aba é absoluta (36px acima do corpo), então a lista reserva 44px em cima. Destaque sequencial
   (decisão de Augusto, 04/10/2026): um card de cada vez cresce de leve e ganha a sombra de lift, em
   ciclo de 10s (2s por card). Só transform e opacity; roda também com reduce (ver o fim do arquivo). */
[data-slot="category-strip"] ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding: 44px 0 0; list-style: none; }
.tp-cat-link { display: block; position: relative; height: 100%; color: var(--foreground); text-decoration: none; transform-origin: 50% 100%; animation: tp-cat-aponta 10s var(--ease-io) infinite; }
.tp-cat-link:focus-visible { outline: none; }
.tp-cat-link:focus-visible .tp-folder-body { outline: 2px solid var(--ring); outline-offset: 3px; }
.tp-cat-folder .tp-folder-body { position: relative; padding: var(--s-4); }
.tp-cat-folder .tp-folder-tab { max-width: 100%; }
.tp-cat-folder .tp-folder-tab b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-cat-folder .tp-folder-body::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none; animation: tp-cat-realce 10s var(--ease-io) infinite; }
@keyframes tp-cat-aponta { 0%, 20%, 100% { transform: scale(1); } 5%, 15% { transform: scale(1.035); } }
@keyframes tp-cat-realce { 0%, 20%, 100% { opacity: 0; } 5%, 15% { opacity: 1; } }
.tp-cat-folder:nth-child(2) .tp-cat-link, .tp-cat-folder:nth-child(2) .tp-folder-body::after { animation-delay: 2s; }
.tp-cat-folder:nth-child(3) .tp-cat-link, .tp-cat-folder:nth-child(3) .tp-folder-body::after { animation-delay: 4s; }
.tp-cat-folder:nth-child(4) .tp-cat-link, .tp-cat-folder:nth-child(4) .tp-folder-body::after { animation-delay: 6s; }
.tp-cat-folder:nth-child(5) .tp-cat-link, .tp-cat-folder:nth-child(5) .tp-folder-body::after { animation-delay: 8s; }
[data-slot="category-strip"]:focus-within .tp-cat-link,
[data-slot="category-strip"]:focus-within .tp-cat-folder .tp-folder-body::after { animation-play-state: paused; }
@media (hover: hover) {
  [data-slot="category-strip"]:hover .tp-cat-link,
  [data-slot="category-strip"]:hover .tp-cat-folder .tp-folder-body::after { animation-play-state: paused; }
}
@media (max-width: 899.98px) {
  [data-slot="category-strip"] ul {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--wrap-pad);
    scrollbar-width: none;
    margin: 0 calc(var(--wrap-pad) * -1) calc((var(--s-7) - var(--s-4)) * -1);
    padding: 44px var(--wrap-pad) var(--s-7);
  }
  /* Piso de s-9 − s-4 (152px): a aba mais longa ("Smartwatches") cabe sem reticências em 320px e 375px */
  [data-slot="category-strip"] li { flex: 0 0 max(44%, calc(var(--s-9) - var(--s-4))); scroll-snap-align: start; }
}
@media (min-width: 768px) and (max-width: 899.98px) {
  [data-slot="category-strip"] li { flex: 0 0 28%; }
}

/* ─── FolderStack: fichas com aba ─────────────────────────── */
[data-slot="folder-stack"] { display: flex; gap: var(--s-4); margin: 0; padding: 44px 0 0; list-style: none; }
.tp-folder { position: relative; flex: 1 1 0; min-width: 0; transition: transform var(--t-med) var(--ease-out); }
.tp-folder-tab {
  position: absolute;
  left: 0;
  bottom: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  height: 36px;
  padding: 0 44px 0 var(--s-4);
  border-radius: var(--r-folder) 0 0 0;
  background: var(--node);
  font: var(--text-caption);
  color: var(--muted-foreground);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 100%, 0 100%);
  transition: color var(--t-fast) var(--ease-out);
}
.tp-folder-tab b { color: var(--foreground); font-weight: 600; }
.tp-folder-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  height: 100%;
  padding: var(--s-5);
  border-radius: 0 var(--r-folder) var(--r-folder) var(--r-folder);
  background: var(--node);
  box-shadow: var(--shadow-node);
  transition: box-shadow var(--t-med) var(--ease-out);
}
.tp-folder-img { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--folder-img); }
.tp-folder-img img {
  position: absolute;
  inset: 8% 10%;
  width: 80%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px color-mix(in srgb, var(--brand-preto) 14%, transparent));
  transition: transform var(--t-slow) var(--ease-out);
}
.tp-folder h3, .tp-folder-name { font: var(--text-h3); letter-spacing: var(--tracking-h3); }
.tp-folder-why { font-size: 15px; line-height: 22px; color: var(--muted-foreground); }
.tp-folder-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
.tp-folder-foot [data-slot="button"] { white-space: normal; height: auto; min-height: var(--b-h); padding-block: var(--s-2); text-align: center; max-width: 100%; }
.tp-folder:hover, .tp-folder:focus-within { transform: translateY(-10px); }
.tp-folder:hover .tp-folder-body, .tp-folder:focus-within .tp-folder-body { box-shadow: var(--shadow-lift); }
.tp-folder:hover .tp-folder-tab, .tp-folder:focus-within .tp-folder-tab { color: var(--foreground); }
.tp-folder:hover .tp-folder-img img { transform: scale(1.04); }
@media (max-width: 899.98px) {
  [data-slot="folder-stack"] {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--wrap-pad);
    gap: var(--s-4);
    scrollbar-width: none;
    margin: 0 calc(var(--wrap-pad) * -1) calc(var(--s-5) * -1);
    padding: 44px var(--wrap-pad) var(--s-6);
  }
  .tp-folder { flex: 0 0 82%; scroll-snap-align: start; }
  .tp-folder:hover, .tp-folder:focus-within { transform: none; }
}

/* ─── ProcessCanvas: Como escolhemos ──────────────────────── */
[data-slot="process-canvas"] { position: relative; border-radius: var(--r-panel); background: var(--node); overflow: hidden; container-type: inline-size; }
[data-slot="process-canvas"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--input) 1px, transparent 1.3px);
  background-size: var(--grid) var(--grid);
  opacity: 0.3;
  pointer-events: none;
}
.tp-pc { position: relative; aspect-ratio: 1000 / 480; margin: 0; padding: 0; }
.tp-pc-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tp-pc-lines .tp-cc-flow { stroke-width: 2; animation-duration: 4.8s; }
.tp-pc-lines .tp-line-1 { animation-delay: 200ms; }
.tp-pc-lines .tp-line-2 { animation-delay: 320ms; }
.tp-pc-lines .tp-line-3 { animation-delay: 440ms; }
.tp-pc-lines .tp-flow-1 { animation-delay: -1.6s; }
.tp-pc-lines .tp-flow-2 { animation-delay: -3.2s; }
.tp-pc-n { position: absolute; width: 28%; transform: translateY(-50%); list-style: none; }
.tp-pc-n[data-at="in"] { left: 3%; top: 50%; }
.tp-pc-n[data-at="s1"] { left: 69%; top: 18%; }
.tp-pc-n[data-at="s2"] { left: 69%; top: 50%; }
.tp-pc-n[data-at="s3"] { left: 69%; top: 82%; }
.tp-pc-n .tp-node-body { background: var(--page); box-shadow: none; }
.tp-pc-n .tp-node-cap { color: var(--muted-foreground); }
.tp-pc-n p { font-size: 15px; line-height: 22px; }
.tp-pc-n strong { display: block; margin-bottom: var(--s-1); font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; }
@container (max-width: 1099.98px) {
  .tp-pc { aspect-ratio: auto; display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-5); }
  .tp-pc-lines { display: none; }
  .tp-pc-n, .tp-pc-n[data-at] { position: relative; inset: auto; width: 100%; transform: none; }
}
@container (max-width: 559.98px) { .tp-pc { padding: var(--s-4); gap: var(--s-4); } }

/* Portas das ligações */
.tp-port { fill: var(--node); stroke: var(--input); stroke-width: 1.25; }
.tp-port[data-on="true"] { fill: var(--brand-ciano); stroke: none; }
[data-slot="process-canvas"]:hover .tp-cc-flow, [data-slot="process-canvas"]:focus-within .tp-cc-flow { animation-play-state: paused; }

/* ─── Footnotes ───────────────────────────────────────────── */
[data-slot="footnotes"] { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tp-note {
  display: flex;
  gap: var(--s-2);
  margin-inline: calc(var(--s-2) * -1);
  padding: var(--s-1) var(--s-2);
  border-radius: var(--radius);
  font: var(--text-note);
  color: var(--muted-foreground);
  scroll-margin-top: calc(var(--nav-h) + var(--s-5));
  transition: color var(--t-med) var(--ease-out), background-color var(--t-med) var(--ease-out);
}
.tp-note:target, .tp-note:focus { color: var(--foreground); background: var(--node); }
.tp-note:focus { outline: none; }
.tp-note-m { flex-shrink: 0; min-width: 10px; color: var(--mark); font-weight: 600; }

/* ─── SiteFooter ──────────────────────────────────────────── */
[data-slot="site-footer"] { --ft-gap: var(--s-6); padding: var(--s-7) 0 var(--s-6); background: var(--background); color: var(--muted-foreground); font: var(--text-note); }
.tp-ft-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr); gap: var(--s-6); }
.tp-ft-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); }
.tp-ft-logo { display: inline-flex; align-items: center; min-height: 44px; }
.tp-ft-logo img { height: 44px; width: auto; }
.tp-ft-tagline { max-width: 26ch; font-size: 14px; line-height: 20px; }
.tp-ft-social { display: flex; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.tp-ft-social li { display: grid; place-items: center; width: 28px; height: 28px; color: var(--muted-foreground); }
.tp-ft-social svg { width: 20px; height: 20px; fill: currentColor; }
.tp-ft-nav { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-5); align-content: start; }
.tp-ft-h { margin: 0 0 var(--s-3); font: var(--text-ui); letter-spacing: var(--tracking-ui); font-weight: 600; color: var(--foreground); }
.tp-ft-col ul { list-style: none; margin: 0; padding: 0; }
.tp-ft-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: var(--s-5); }
.tp-ft-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}
.tp-ft-col a:hover { color: var(--foreground); }
.tp-ft-soon { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; color: var(--muted-foreground); }
.tp-ft-badge { padding: var(--s-1) var(--s-2); border-radius: var(--r-full); background: var(--secondary); color: var(--secondary-foreground); font: var(--text-note); font-weight: 500; white-space: nowrap; }
/* Três blocos separados por uma linha de 1px (exceção pedida por Augusto à separação por tom, 04/10/2026):
   o espaço acima e abaixo da linha é --ft-gap, então a linha cai no meio. */
.tp-ft-notice, .tp-ft-base { position: relative; margin-top: calc(var(--ft-gap) * 2); }
.tp-ft-notice::before, .tp-ft-base::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--ft-gap) * -1); height: 1px; background: var(--border); }
.tp-ft-notice { padding: var(--s-6); border-radius: var(--r-panel); background: var(--surface); }
.tp-ft-notice-t { font: var(--text-h3); letter-spacing: var(--tracking-h3); color: var(--foreground); }
.tp-ft-notice-d { margin-top: var(--s-2); max-width: 54ch; font: var(--text-body); color: var(--muted-foreground); }
.tp-store { display: grid; place-items: center; max-width: 100%; height: 48px; padding: var(--s-3) var(--s-4); border-radius: var(--radius); background: var(--brand-branco); }
.tp-store[data-plate="dark"] { background: var(--brand-preto); }
.tp-store img { width: auto; max-width: 100%; height: 22px; object-fit: contain; }
.tp-ft-base { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: var(--s-3); }
@media (max-width: 899.98px) {
  [data-slot="site-footer"] { --ft-gap: var(--s-5); }
  .tp-ft-top { grid-template-columns: minmax(0, 1fr); }
  .tp-ft-nav { grid-template-columns: minmax(0, 1fr); }
  .tp-ft-notice { padding: var(--s-5); }
}

/* ─── Revelação ao rolar (uma vez, suave) ─────────────────────
   O estado escondido só vale quando o home.js marcou o documento (.js): sem JS o conteúdo aparece. */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.js [data-reveal="in"] { opacity: 1; transform: none; }
.js [data-reveal]:not([data-reveal="in"]) .tp-cc-line,
.js [data-reveal]:not([data-reveal="in"]) .tp-cc-flow { animation-play-state: paused; }

/* ─── Movimento reduzido ───────────────────────────────────
   Desliga transições, a entrada tp-swap e a revelação ao rolar (regra global do base.css).
   Exceção da homepage, docs/03 seção 7 item 2, decisão de Augusto 03/10/2026: pulso das ligações
   (hero e ProcessCanvas), flutuação do hero, faixa de logos e destaque sequencial das categorias
   (decisão de 04/10/2026, ciclo de 10s) seguem animados.
   Os overrides abaixo vencem o !important do base.css por especificidade e repetem a duração original de cada um. */
@media (prefers-reduced-motion: reduce) {
  .tp-cc-flow { animation-duration: 3.6s !important; animation-iteration-count: infinite !important; }
  .tp-pc-lines .tp-cc-flow { animation-duration: 4.8s !important; }
  .tp-cat-link, .tp-cat-folder .tp-folder-body::after { animation-duration: 10s !important; animation-iteration-count: infinite !important; }
  .tp-note { transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  @container (min-width: 560px) {
    .tp-cc-n > .tp-folder { animation-duration: 2s !important; animation-iteration-count: infinite !important; }
  }
}
