/* BLYO · Como trabalhamos (prefixo tr-)
   A página conta o processo com uma folha de projeto: ela começa como anotação, vira rascunho
   e termina como tela pronta. O estado sem classe é sempre o final: é o que aparece sem JS
   e com "reduzir movimento". */

/* ---------- Capa: o título e um bloco de anotações onde ainda não existe tela ---------- */

.tr-capa { display: grid; align-items: center; min-height: min(100vh, 880px); min-height: min(100svh, 880px); }
.tr-capa__grade { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.tr-capa__acoes { margin-top: clamp(26px, 3.6vh, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }

.tr-bloco { justify-self: center; width: min(100%, 400px); }
.tr-bloco__papel {
  position: relative;
  padding: 62px 28px 28px;
  border-radius: 4px;
  background: var(--papel);
  color: var(--petroleo);
  box-shadow: 12px 14px 0 rgba(6, 22, 19, .55);
  transform: rotate(2.2deg);
}
/* a tira furada de cima, como num bloco de verdade */
.tr-bloco__papel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 38px;
  border-radius: 4px 4px 0 0;
  background: radial-gradient(circle, var(--papel) 0 5px, transparent 5.6px) 0 0 / 38px 38px space no-repeat, var(--musgo);
}
.tr-rascunho { width: 100%; height: auto; overflow: visible; fill: none; stroke: var(--petroleo); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.tr-rascunho__fraco { stroke-width: 1.3; opacity: .38; }
.tr-bloco__legenda { margin-top: 20px; padding-top: 16px; border-top: 1.5px dashed rgba(16, 46, 40, .36); font-size: 20px; font-weight: 650; line-height: 1.15; letter-spacing: -.025em; }
.tr-bloco__legenda small { display: block; margin-top: 7px; max-width: 24ch; font-size: 15px; font-weight: 450; line-height: 1.4; letter-spacing: 0; color: var(--suave-claro); }

/* o lápis, largado na beira do bloco com a ponta ainda no papel: corpo menta, madeira marfim e ponta petróleo */
.tr-lapis { position: absolute; right: -40px; bottom: 176px; width: 178px; height: 15px; transform: rotate(-64deg); transform-origin: 100% 50%; }
.tr-lapis i { display: block; height: 100%; margin-left: 20px; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, var(--menta) 0 calc(100% - 26px), var(--marfim) calc(100% - 26px) calc(100% - 20px), var(--positivo) calc(100% - 20px)); box-shadow: 3px 4px 0 rgba(6, 22, 19, .45); }
.tr-lapis::before, .tr-lapis::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; }
.tr-lapis::before { width: 21px; background: var(--marfim); clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.tr-lapis::after { width: 8px; background: var(--petroleo); clip-path: polygon(0 50%, 100% 18%, 100% 82%); }

/* ---------- Antes do projeto: a pasta da proposta e as três folhas que saem dela ---------- */

.tr-antes__grade { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.tr-antes__texto .pg-texto { margin-top: clamp(18px, 2.6vh, 28px); }
.tr-antes__acao { margin-top: clamp(24px, 3.4vh, 36px); }

.tr-pasta { --tr-capa: 112px; position: relative; padding: 30px 0 calc(var(--tr-capa) - 30px); }
/* o fundo da pasta e a aba ficam atrás das folhas; a capa, na frente */
.tr-pasta::before { content: ""; position: absolute; inset: auto 0 0; height: calc(var(--tr-capa) + 22px); border-radius: 0 4px 4px 4px; background: var(--musgo); }
.tr-pasta__aba { position: absolute; left: 0; bottom: calc(var(--tr-capa) + 21px); width: 36%; height: 26px; border-radius: 4px 16px 0 0; background: var(--musgo); }
.tr-pasta__capa {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  height: var(--tr-capa);
  display: flex;
  align-items: flex-end;
  padding: 0 24px 20px;
  border-radius: 4px;
  background: var(--petroleo);
  color: var(--marfim);
  box-shadow: 10px 12px 0 rgba(16, 46, 40, .2);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.03em;
}
/* o corte de baixo é a boca da pasta: o que está abaixo dele ainda está guardado */
.tr-pasta__folhas { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 6%; clip-path: inset(-90px -90px 0 -90px); }
.tr-pasta__folha {
  --y: 0px;
  --r: 0deg;
  position: relative;
  min-height: clamp(236px, 23vw, 300px);
  margin: 0 -6%;
  padding: 24px 22px 76px;
  border-radius: 4px 4px 0 0;
  background: var(--papel);
  box-shadow: 0 0 0 1.5px var(--petroleo), 7px 8px 0 var(--petroleo);
  transform: translate3d(0, var(--y), 0) rotate(var(--r));
  transform-origin: 50% 100%;
  transition: transform 1.05s var(--entra) calc(var(--k) * 150ms + 120ms);
}
.tr-pasta__folha:nth-child(1) { --r: -5deg; --y: 18px; }
.tr-pasta__folha:nth-child(2) { --r: 1.2deg; z-index: 2; }
.tr-pasta__folha:nth-child(3) { --r: 5.5deg; --y: 22px; }
.tr-pasta__folha p { margin-top: 10px; font-size: 17px; line-height: 1.4; color: var(--suave-claro); }
/* as linhas do resto da folha, só para ela parecer um documento */
.tr-pasta__folha::after { content: ""; display: block; width: 72%; height: 44px; margin-top: 20px; background: repeating-linear-gradient(180deg, var(--linha-clara) 0 2px, transparent 2px 14px); }

/* ---------- Os cinco passos ---------- */

.tr-passos__cabeca { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px clamp(24px, 4vw, 64px); }
.tr-passos__cabeca .pg-texto { max-width: 26ch; margin-bottom: .35em; }
.tr-passos__grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 104px); align-items: start; margin-top: clamp(44px, 8vh, 96px); }
.tr-passos__lista { position: relative; display: grid; gap: clamp(48px, 8vh, 84px); }

/* o número de cada passo dentro de um círculo riscado à mão */
.tr-passo__n { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin-left: -6px; font: 700 28px/1 var(--fonte); letter-spacing: -.03em; transition: color .45s var(--ease); }
.tr-anel { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--menta); stroke-width: 2.6; stroke-linecap: round; }
.tr-anel path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease); }
.tr-passo h3 { margin-top: 16px; transition: color .45s var(--ease); }
.tr-passo .pg-texto { margin-top: 10px; max-width: 40ch; transition: color .45s var(--ease); }

.tr-passos__folha { position: sticky; top: calc(var(--topo-altura) + clamp(14px, 3.5vh, 36px)); display: grid; justify-items: center; }

/* com a folha presa: cada passo ocupa um trecho da rolagem e só o da vez fica em destaque */
.tr-preso .tr-passos__grade { margin-top: clamp(12px, 3vh, 40px); }
.tr-preso .tr-passos__lista { gap: 0; }
.tr-preso .tr-passo { display: flex; flex-direction: column; justify-content: center; min-height: clamp(380px, 64vh, 620px); min-height: clamp(380px, 64svh, 620px); }
.tr-preso .tr-passo:not(.tr-ativo) :is(h3, .pg-texto, .tr-passo__n) { color: rgba(244, 240, 216, .6); }
.tr-preso .tr-passo:not(.tr-ativo) .tr-anel path { stroke-dashoffset: 1; }
.tr-preso .tr-passo__folha { display: none; }
.tr-preso .tr-folha { width: min(100%, 440px, calc((100vh - var(--topo-altura) - 60px) * .74)); width: min(100%, 440px, calc((100svh - var(--topo-altura) - 60px) * .74)); }

/* sem folha presa (celular, tela baixa, movimento reduzido): cada passo traz a sua folha, já no estado dele */
.tr-fluxo .tr-passos__grade { grid-template-columns: minmax(0, 1fr); }
.tr-fluxo .tr-passos__folha { display: none; }
.tr-fluxo .tr-passo { display: grid; gap: 30px; }
.tr-fluxo .tr-passo__folha { display: grid; justify-items: start; padding-bottom: 8px; }
.tr-fluxo .tr-folha { width: min(100%, 372px); }

/* ---------- A folha do projeto de exemplo ----------
   Dois números mandam em tudo: --p é o passo (0 a 5) e --e são as entregas do passo 3 (0 a 3).
   Cada peça lê "já chegou neste ponto?" (0 ou 1) e calcula a própria opacidade, corte e posição.
   A folha tem 21em de largura e o em acompanha o tamanho dela, então o desenho inteiro encolhe junto. */

.tr-folha {
  --p: 5;
  --e: 3;
  --ge1: clamp(0, var(--p), 1);
  --ge2: clamp(0, calc(var(--p) - 1), 1);
  --ge3: clamp(0, calc(var(--p) - 2), 1);
  --ge4: clamp(0, calc(var(--p) - 3), 1);
  --ge5: clamp(0, calc(var(--p) - 4), 1);
  --e1: clamp(0, var(--e), 1);
  --e2: clamp(0, calc(var(--e) - 1), 1);
  --e3: clamp(0, calc(var(--e) - 2), 1);
  container-type: inline-size;
  width: min(100%, 440px);
  color: var(--petroleo);
  text-align: left;
}
/* enquanto é papel de rascunho a folha fica torta na mesa; quando vira sistema, endireita */
.tr-folha__escala {
  position: relative;
  padding: 1.9em 0 1.5em;
  font-size: 16px;
  font-size: calc(100cqw / 21);
  line-height: 1.25;
  transform: rotate(calc((1 - var(--ge3)) * -1.6deg));
  transition: transform .9s var(--entra);
}
.tr-folha__aba { position: absolute; left: 1.7em; top: 0; height: 2.72em; display: flex; align-items: center; padding: 0 1.1em; border-radius: .4em .4em 0 0; background: var(--marfim); color: var(--suave-claro); font-size: .7em; font-weight: 600; white-space: nowrap; }
.tr-folha__papel { position: relative; padding: 1em; border-radius: .2em; background: var(--papel); box-shadow: .55em .65em 0 rgba(6, 22, 19, .55); }
.tr-palco { position: relative; height: 22.4em; }

/* passo 1 · os bilhetes caem na folha um a um: é o que a gente anota vendo a rotina */
.tr-nota {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  padding: .95em .85em .9em;
  background: var(--alerta-fundo);
  box-shadow: .16em .22em 0 rgba(16, 46, 40, .3);
  opacity: calc(var(--ge1) * (1 - var(--ge2) * .82) * (1 - var(--ge3)));
  transform: translate3d(0, calc((1 - var(--ge1)) * -2.6em), 0) rotate(calc(var(--r) + (1 - var(--ge1)) * 9deg));
  transition: opacity .5s var(--ease), transform .85s var(--entra);
  transition-delay: calc(var(--ge1) * (1 - var(--ge2)) * var(--k) * 130ms);
}
/* a fita que prende o bilhete */
.tr-nota::before { content: ""; position: absolute; left: 50%; top: -.35em; width: 2.6em; height: .85em; margin-left: -1.3em; background: rgba(16, 46, 40, .14); transform: rotate(-3deg); }
.tr-nota > span { display: block; font-size: .8em; font-weight: 580; line-height: 1.22; letter-spacing: -.01em; }
.tr-nota--a { --x: .1em; --y: .7em; --w: 9.8em; --r: -4deg; }
.tr-nota--b { --x: 8.9em; --y: 4.3em; --w: 9.6em; --r: 3deg; background: var(--ok-fundo); }
.tr-nota--c { --x: 1.1em; --y: 10.2em; --w: 9.9em; --r: -2deg; background: var(--marfim); }
.tr-nota--d { --x: 9.9em; --y: 15.4em; --w: 7.8em; --r: 5deg; }

/* passo 2 · o rascunho se risca por cima das anotações, que ficam apagadas embaixo */
.tr-esboco { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--petroleo); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.tr-risco { stroke-dasharray: 1; stroke-dashoffset: calc((1 - var(--ge2)) * 1px); transition: stroke-dashoffset .6s var(--ease) calc(var(--ge2) * var(--k, 0) * 70ms); }
.tr-esboco g { transition: opacity .45s var(--ease); }
.tr-esboco__lista { opacity: calc(1 - var(--e1)); }
.tr-esboco__botao { opacity: calc(1 - var(--e2)); }
.tr-esboco__resumo { opacity: calc(1 - var(--e3)); }

/* o recado da equipe aparece depois do rascunho; o botão que faltava se risca em seguida */
.tr-recado {
  --vez: calc(var(--ge2) * (1 - var(--ge3)));
  position: absolute;
  z-index: 4;
  left: 5.8em;
  top: 10.2em;
  width: 12.4em;
  padding: .7em .9em .8em;
  border-radius: .25em;
  background: var(--petroleo);
  color: var(--marfim);
  box-shadow: .22em .28em 0 var(--menta-borda);
  opacity: var(--vez);
  transform: translate3d(0, calc((1 - var(--vez)) * .9em), 0) scale(calc(.9 + var(--vez) * .1));
  transform-origin: 84% 0;
  transition: opacity .3s var(--ease), transform .5s var(--entra);
  transition-delay: calc(var(--vez) * 1450ms);
}
.tr-recado::before { content: ""; position: absolute; right: 2.1em; top: -.55em; width: 1.1em; height: .6em; background: inherit; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tr-recado > span { display: block; font-size: .76em; line-height: 1.25; }
.tr-recado b { display: block; margin-bottom: .1em; font-size: .88em; font-weight: 650; color: var(--menta); }

/* passo 3 · cada peça de verdade entra da esquerda para a direita, no lugar exato do rascunho dela */
.tr-peca { --v: 1; clip-path: inset(-.4em calc((1 - var(--v)) * 104%) -.4em -.4em); transition: clip-path .7s var(--ease); }
.tr-osso { display: block; width: var(--w, 3em); height: .52em; border-radius: .26em; background: rgba(16, 46, 40, .16); opacity: calc(1 - var(--ge4)); transition: opacity .3s var(--ease); }

.tr-barra { --v: var(--e1); position: absolute; inset: 0 0 auto; height: 2.8em; display: flex; align-items: center; gap: .55em; padding: 0 .8em; border-radius: .2em; background: var(--petroleo); color: var(--marfim); }
.tr-barra svg { flex: none; width: 1.3em; height: 1.18em; fill: var(--menta); }
.tr-barra b { font-size: .84em; font-weight: 650; letter-spacing: -.01em; }
.tr-barra span { margin-left: auto; font-size: .7em; color: var(--suave-escuro); }

.tr-resumo { --v: var(--e3); position: absolute; inset: 3.5em 0 auto; height: 2.2em; display: flex; align-items: center; gap: 1.2em; padding: 0 .8em; border: .07em solid rgba(16, 46, 40, .3); border-radius: .2em; }
.tr-resumo .tr-osso { position: absolute; left: .8em; top: .8em; }
.tr-resumo .tr-osso + .tr-osso { left: 8em; }
.tr-resumo .tr-dado { font-size: .72em; color: var(--suave-claro); white-space: nowrap; }
.tr-resumo .tr-dado b { font-weight: 700; color: var(--petroleo); }

.tr-linhas { position: absolute; inset: 6.4em 0 auto; height: 11.8em; transform: translate3d(0, calc(var(--ge5) * 3em), 0); transition: transform .75s var(--entra); }
.tr-linha {
  --v: var(--e1);
  position: absolute;
  inset: calc(var(--n) * 4.1em) 0 auto;
  height: 3.6em;
  display: flex;
  align-items: center;
  gap: .65em;
  padding: 0 .7em;
  border: .07em solid rgba(16, 46, 40, .3);
  border-radius: .2em;
  background: var(--papel);
  transition-delay: calc(var(--e1) * (var(--n) * 120ms + 160ms));
}
.tr-foto { flex: none; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--marfim); box-shadow: inset 0 0 0 .07em rgba(16, 46, 40, .3); }
.tr-foto b { display: block; font-size: .78em; font-weight: 700; line-height: 1; }
.tr-linha__texto { position: relative; flex: 1; min-width: 0; height: 2.1em; }
.tr-linha__texto .tr-osso { position: absolute; left: 0; top: .3em; }
.tr-linha__texto .tr-osso + .tr-osso { top: 1.34em; height: .44em; }
.tr-linha__texto .tr-dado { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; white-space: nowrap; }
.tr-linha__texto .tr-dado b { font-size: .78em; font-weight: 650; letter-spacing: -.01em; }
.tr-linha__texto .tr-dado small { font-size: .66em; color: var(--suave-claro); }
.tr-chip { flex: none; display: grid; width: 4.6em; height: 1.76em; }
.tr-chip > * { grid-area: 1 / 1; }
.tr-chip .tr-osso { width: 100%; height: 100%; border-radius: .2em; }
.tr-chip .tr-dado { display: grid; place-items: center; border-radius: .3em; font-size: .64em; font-weight: 650; line-height: 1; }
.tr-chip--ok { background: var(--ok-fundo); color: var(--positivo); }
.tr-chip--feito { box-shadow: inset 0 0 0 .1em rgba(16, 46, 40, .3); color: var(--suave-claro); }

.tr-botao { --v: var(--e2); position: absolute; right: .7em; top: .7em; width: 4.9em; height: 2.2em; display: grid; }
.tr-botao > span { grid-area: 1 / 1; display: grid; place-items: center; border-radius: .28em; font-size: .72em; font-weight: 650; line-height: 1; transition: opacity .3s var(--ease) calc(var(--ge4) * 1500ms); }
.tr-botao__de { background: var(--petroleo); color: var(--marfim); opacity: calc(1 - var(--ge4)); }
.tr-botao__para { background: var(--ok-fundo); color: var(--positivo); opacity: var(--ge4); }

/* a etiqueta de cada entrega cola na peça quando ela chega e sai quando a tela fica pronta */
.tr-entrega {
  --t: 1;
  position: absolute;
  z-index: 3;
  padding: .3em .6em .34em;
  border-radius: .25em;
  background: var(--positivo);
  color: var(--marfim);
  font-size: .62em;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  opacity: calc(var(--t) * (1 - var(--ge4)));
  transform: rotate(-3deg) scale(calc(.6 + var(--t) * .4));
  transition: opacity .3s var(--ease), transform .5s var(--entra);
  transition-delay: calc(var(--t) * (1 - var(--ge4)) * 420ms);
}
.tr-entrega--1 { --t: var(--e1); left: 1.4em; top: -1.15em; }
.tr-entrega--2 { --t: var(--e2); right: .7em; top: -1.05em; }
.tr-entrega--3 { --t: var(--e3); right: .95em; top: 4.55em; }

/* passo 4 · os dados da equipe entram nas linhas e um toque aprova o primeiro pedido */
.tr-dado { opacity: var(--ge4); transform: translate3d(0, calc((1 - var(--ge4)) * .5em), 0); transition: opacity .4s var(--ease), transform .6s var(--entra); transition-delay: calc(var(--ge4) * (var(--q, 0) * 130ms + 150ms)); }
.tr-toque { position: absolute; right: 2.3em; top: .95em; width: 1.7em; height: 1.7em; border-radius: 50%; box-shadow: 0 0 0 .14em var(--positivo); opacity: 0; pointer-events: none; }
.tr-folha[data-passo="4"] .tr-toque { animation: tr-toque .8s var(--ease) 1.05s both; }
@keyframes tr-toque {
  0% { opacity: 0; transform: scale(.3); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(2.3); }
}
.tr-troca { display: inline-grid; }
.tr-troca > i { grid-area: 1 / 1; font-style: normal; transition: opacity .3s var(--ease) calc(var(--ge4) * 1500ms); }
.tr-troca__de { opacity: calc(1 - var(--ge4)); }
.tr-troca__para { opacity: var(--ge4); }

/* passo 5 · as linhas descem para abrir espaço ao aviso novo, e a folha confirma o ajuste */
.tr-aviso {
  position: absolute;
  inset: 6.4em 0 auto;
  height: 2.4em;
  display: flex;
  align-items: center;
  gap: .6em;
  padding: 0 .8em;
  border-radius: .2em;
  background: var(--alerta-fundo);
  color: var(--alerta);
  white-space: nowrap;
  opacity: var(--ge5);
  clip-path: inset(0 calc((1 - var(--ge5)) * 100%) 0 0);
  transition: clip-path .6s var(--ease), opacity .2s linear;
  transition-delay: calc(var(--ge5) * 300ms);
}
.tr-aviso b { font-size: .74em; font-weight: 700; }
.tr-aviso > span { font-size: .7em; }
.tr-feito {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: -2.9em;
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .6em 1em .6em .75em;
  border-radius: .25em;
  background: var(--menta);
  color: var(--petroleo);
  box-shadow: .3em .36em 0 rgba(6, 22, 19, .55);
  font-size: .8em;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  opacity: var(--ge5);
  transform: translate3d(-50%, calc((1 - var(--ge5)) * 1.5em), 0);
  transition: opacity .3s var(--ease), transform .6s var(--entra);
  transition-delay: calc(var(--ge5) * 850ms);
}
.tr-feito svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Depois da entrega: a frase de um lado, os quatro cuidados em lista do outro ---------- */

.tr-depois { background: var(--musgo); }
.tr-depois__grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.tr-depois__frase { position: sticky; top: calc(var(--topo-altura) + clamp(24px, 8vh, 80px)); }

.tr-cuidados li { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: clamp(16px, 2.2vw, 30px); padding: clamp(24px, 3.6vh, 36px) 0; }
/* a linha de cada item se risca da esquerda para a direita quando ele aparece */
.tr-cuidados li::before, .tr-cuidados li:last-child::after { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: rgba(244, 240, 216, .3); transform-origin: 0 50%; transition: transform 1.1s var(--ease) .1s; }
.tr-cuidados li:last-child::after { inset: auto 0 0; }
.tr-cuidados svg { grid-row: 1 / span 2; width: 60px; height: 60px; overflow: visible; fill: none; stroke: var(--marfim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tr-cuidados__menta { stroke: var(--menta); }
/* o desenho da frente tampa o de trás, como papel recortado */
.tr-cuidados__tampa { fill: var(--musgo); }
.tr-cuidados p { margin-top: 8px; max-width: 44ch; color: var(--suave-escuro); }

/* ---------- Perguntas e respostas ---------- */

.tr-perguntas__grade { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.tr-perguntas__cabeca { position: sticky; top: calc(var(--topo-altura) + clamp(24px, 8vh, 80px)); }
.tr-perguntas__cabeca .pg-texto { margin-top: clamp(16px, 2.4vh, 24px); max-width: 30ch; }

.tr-item { border-top: 1.5px solid var(--petroleo); }
.tr-item:last-child { border-bottom: 1.5px solid var(--petroleo); }
.tr-item summary { display: block; border-radius: 4px; cursor: pointer; list-style: none; }
.tr-item summary::-webkit-details-marker { display: none; }
.tr-item h3 { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; padding: 14px 0; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.12; letter-spacing: -.03em; }
.tr-item summary:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
/* o sinal de mais: a haste em pé deita quando a resposta abre */
.tr-mais { flex: none; position: relative; width: 44px; height: 44px; border: 1.5px solid var(--petroleo); border-radius: 4px; transition: background-color .25s, color .25s; }
.tr-mais::before, .tr-mais::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: currentColor; transition: transform .4s var(--ease); }
.tr-mais::after { transform: rotate(90deg); }
.tr-item[open] .tr-mais { background: var(--petroleo); color: var(--marfim); }
.tr-item[open] .tr-mais::after { transform: none; }
.tr-resposta p { max-width: 56ch; padding: 0 64px 30px 0; font-size: clamp(17px, 1.3vw, 19px); color: var(--suave-claro); }
.tr-resposta a { color: var(--petroleo); font-weight: 600; text-underline-offset: 4px; }

/* com JS a resposta abre e fecha pela altura; a classe tr-aberta manda, e o [open] só sai no fim */
.tr-item.tr-vivo > .tr-resposta { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.tr-item.tr-vivo > .tr-resposta > div { min-height: 0; overflow: hidden; }
.tr-item.tr-vivo.tr-aberta > .tr-resposta { grid-template-rows: 1fr; }
.tr-item.tr-vivo .tr-resposta p { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .3s var(--ease), transform .5s var(--entra); }
.tr-item.tr-vivo.tr-aberta .tr-resposta p { opacity: 1; transform: none; transition-delay: .12s; }
.tr-item.tr-vivo[open]:not(.tr-aberta) .tr-mais { background: transparent; color: inherit; }
.tr-item.tr-vivo[open]:not(.tr-aberta) .tr-mais::after { transform: rotate(90deg); }

/* ---------- Fecho: o traço a lápis embaixo de "hoje" ---------- */

.tr-sublinha { position: relative; display: inline-block; }
.tr-sublinha svg { position: absolute; left: -2%; bottom: -.03em; width: 104%; height: .17em; overflow: visible; fill: none; stroke: var(--petroleo); stroke-width: 3.2; stroke-linecap: round; }

/* ---------- Entradas: só com JS e com movimento ligado; sem isso tudo já está no lugar ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .tr-pasta:not(.tr-abriu) .tr-pasta__folha { transform: translate3d(0, 114%, 0) rotate(0deg); }
  .js .tr-fluxo .tr-passo:not(.visivel) .tr-anel path { stroke-dashoffset: 1; }
  .js .tr-cuidados li:not(.visivel)::before, .js .tr-cuidados li:not(.visivel)::after { transform: scaleX(0); }
  /* o lápis pousa no canto depois que o rascunho da capa termina */
  .js .tr-lapis { transition: transform 1s var(--entra) 2.5s, opacity .3s linear 2.5s; }
  .js .tr-bloco:not(.visivel) .tr-lapis { opacity: 0; transform: translate3d(46px, -40px, 0) rotate(-88deg); }
}

/* ---------- Larguras médias e celular ---------- */

@media (min-width: 700px) {
  .tr-fluxo .tr-passo { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
  .tr-fluxo .tr-passo__folha { justify-items: center; }
}

/* computador estreito: as três folhas da pasta ficam finas, então o texto delas aperta um pouco */
@media (min-width: 700px) and (max-width: 1099px) {
  .tr-pasta__folha { padding: 20px 16px 72px; }
  .tr-pasta__folha p { font-size: 15.5px; }
}

@media (max-width: 899px) {
  .tr-capa { min-height: 0; }
  .tr-capa__grade, .tr-antes__grade, .tr-passos__grade, .tr-depois__grade, .tr-perguntas__grade { grid-template-columns: minmax(0, 1fr); }
  .tr-bloco { justify-self: start; width: min(92%, 340px); margin: 6px 0 14px 4px; }
  .tr-passos__folha, .tr-depois__frase, .tr-perguntas__cabeca { position: static; }
  .tr-antes__grade { gap: 44px; }
}

@media (max-width: 699px) {
  /* no celular as folhas saem em cascata, uma sobre a outra, e a última fica com o pé dentro da pasta */
  .tr-pasta { --tr-capa: 92px; padding-top: 8px; }
  .tr-pasta__folhas { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .tr-pasta__folha { z-index: var(--k); min-height: 0; margin: 0 0 -24px; padding: 18px 20px 46px; transform-origin: 50% 50%; }
  .tr-pasta__folha:nth-child(1) { --r: -1.4deg; --y: 0px; margin-right: 22px; }
  .tr-pasta__folha:nth-child(2) { --r: 1.1deg; margin-left: 18px; }
  .tr-pasta__folha:nth-child(3) { --r: -.8deg; --y: 0px; margin-right: 10px; margin-bottom: 0; padding-bottom: 58px; }
  .tr-pasta__folha::after { display: none; }
  .tr-pasta__capa { padding-bottom: 16px; }
}
@media (max-width: 699px) and (prefers-reduced-motion: no-preference) {
  .js .tr-pasta:not(.tr-abriu) .tr-pasta__folha { transform: translate3d(0, calc((3 - var(--k)) * 104% + 30px), 0) rotate(0deg); }
}

@media (max-width: 599px) {
  .tr-capa__acoes .botao, .tr-antes__acao .botao, .tr-fecho .pg-chamada__acoes .botao { width: 100%; }
  .tr-passo__n { width: 54px; height: 54px; font-size: 25px; }
  .tr-cuidados li { grid-template-columns: 48px minmax(0, 1fr); }
  .tr-cuidados svg { width: 48px; height: 48px; }
  .tr-item h3 { min-height: 72px; gap: 14px; }
  .tr-resposta p { padding-right: 0; }
  .tr-lapis { right: -22px; bottom: 150px; width: 150px; }
}

/* ---------- Movimento reduzido: a folha de cada passo já vem no estado dele ---------- */

@media (prefers-reduced-motion: reduce) {
  .tr-toque { animation: none !important; }
}
