/* =====================================================================
   Página Treinamento (prefixo .tr-) — css/pagina-treinamento.css
   Hero escuro com "player" da capa · Comece por aqui (rota tracejada que
   liga as 5 paradas) · trilha nova WhatsApp com IA · 2 trilhas · todas as
   aulas (busca, filtros com indicador deslizante, grade com FLIP) · ajuda
   · modal da aula. Depende de css/ds.css (+ css/home.css para cabeçalho e
   rodapé). Movimento reduzido: o DS zera durações; aqui zeramos atrasos.
   ===================================================================== */

/* ---------- Página: item "Treinamento" ativo no menu e no drawer ---------- */
.tr-page .hd__link[aria-current="page"] { position: relative; color: var(--teal-d); }
.tr-page .hd__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 11px; right: 11px; top: calc(50% + 12px); height: 2px; border-radius: 2px; background: var(--teal);
}
.tr-page .drawer__link[aria-current="page"] { color: var(--teal-d); background: var(--teal-l); }

/* ---------- Ritmo dos blocos ---------- */
.tr-main { background: var(--bg); }
.tr-block { padding-top: clamp(44px, 5vw, 72px); }
.tr-block--last { padding-bottom: clamp(60px, 6.5vw, 92px); }
.tr-head { max-width: 920px; margin-bottom: clamp(24px, 3vw, 34px); }
.tr-head h2 { font-size: clamp(1.7rem, 1.25rem + 1.45vw, 2.15rem); margin-top: 16px; }
.tr-head .lead { max-width: 64ch; margin-top: 8px; }

/* =====================================================================
   Hero
   ===================================================================== */
.tr-hero { position: relative; padding-top: calc(var(--header-total) + 64px); padding-bottom: clamp(56px, 6vw, 84px); }
.tr-hero__glow {
  position: absolute; z-index: 0; right: -8%; bottom: -36%; width: 58%; height: 100%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(67, 176, 152, .34) 0%, rgba(67, 176, 152, .12) 38%, rgba(67, 176, 152, 0) 68%);
}
.tr-hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); column-gap: clamp(32px, 4vw, 64px); align-items: center;
}
.tr-hero__text { min-width: 0; }
.tr-hero__pill { animation: pxFadeUp .8s var(--ease-out) .1s backwards; }
.tr-hero__pill-ico { display: inline-flex; color: var(--teal-bright); }
.tr-hero__h1 { margin-top: 20px; font-size: clamp(2.2rem, 1.66rem + 1.76vw, 3.25rem); line-height: 1.08; letter-spacing: -.025em; }
.tr-hero__line { display: block; overflow: visible clip; padding: .08em 0 .12em; margin: -.08em 0 -.12em; }
.tr-hero__inner { display: block; animation: trLineUp .9s var(--ease-out) .22s backwards; }
.tr-hero__line:nth-child(2) .tr-hero__inner { animation-delay: .34s; }
@keyframes trLineUp { from { transform: translateY(112%); opacity: 0; } to { transform: none; opacity: 1; } }
.tr-hero__lead { margin-top: 20px; max-width: 36em; font-size: 17.5px; line-height: 1.6; color: var(--on-dark-muted); animation: pxFadeUp .8s var(--ease-out) .48s backwards; }
.tr-hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.tr-hero__actions .btn { animation: pxFadeUp .8s var(--ease-out) .66s backwards; }
.tr-hero__actions .btn:nth-child(2) { animation-delay: .74s; }
.tr-hero__btn-ico { display: inline-flex; }
.tr-hero__btn-ico svg { width: 14px; height: 14px; }
.tr-hero__stats { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px 44px; }
.tr-stat { display: grid; gap: 3px; animation: pxFadeUp .8s var(--ease-out) calc(.86s + var(--i, 0) * 80ms) backwards; }
.tr-stat__num { position: relative; display: inline-block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.tr-stat__ghost { visibility: hidden; }
.tr-stat__val { position: absolute; left: 0; top: 0; white-space: nowrap; }
.tr-stat__label { font-size: 14px; color: var(--on-dark-muted); }

/* "player" da capa (capa gerada em CSS — provisório) */
.tr-hero__visual { min-width: 0; animation: trCardIn .9s var(--ease-out) .4s backwards; }
@keyframes trCardIn { from { opacity: 0; transform: translateX(48px) scale(.97); } to { opacity: 1; transform: none; } }
.tr-player {
  position: relative; display: block; width: 100%; aspect-ratio: 560 / 340; min-height: 300px; text-align: left;
  border-radius: 18px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #3A4B5C, #2D3645);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 70px -25px rgba(0, 0, 0, .6);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.tr-player::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 20% 0%, rgba(255, 255, 255, .08), transparent 60%), linear-gradient(180deg, rgba(20, 28, 36, 0) 40%, rgba(20, 28, 36, .85));
}
.tr-player:hover { transform: translateY(-4px); box-shadow: 0 50px 80px -28px rgba(0, 0, 0, .65); }
.tr-player__play {
  position: absolute; left: 50%; top: 44%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal); color: #fff;
  box-shadow: 0 0 0 12px rgba(67, 176, 152, .25), 0 18px 40px -14px rgba(0, 0, 0, .6);
  transition: transform var(--dur-3) var(--ease-spring), background var(--dur-2);
}
.tr-player__play::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(93, 211, 180, .5); animation: pxPulseRing 3s ease-out 1.6s infinite; }
.tr-player__play svg { width: 30px; height: 30px; margin-left: 4px; }
.tr-player:hover .tr-player__play { transform: scale(1.08); background: #3CA48C; }
.tr-player__cap { position: absolute; left: 22px; right: 22px; bottom: 18px; display: grid; gap: 4px; }
.tr-player__kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7FD8C3; }
.tr-player__title { font-size: 19px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.tr-player__bar { display: block; height: 5px; margin-top: 8px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.tr-player__bar i { display: block; width: 34%; height: 100%; border-radius: 3px; background: #5CC7AE; transform: scaleX(0); transform-origin: left; animation: trBarFill .9s var(--ease-out) 1.3s forwards; }
@keyframes trBarFill { to { transform: scaleX(1); } }

/* =====================================================================
   Comece por aqui — card branco + 5 paradas ligadas por rota tracejada
   ===================================================================== */
.tr-first__card {
  position: relative; padding: 30px 32px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: center;
  border: 1px solid var(--line); box-shadow: 0 20px 50px -30px rgba(45, 54, 69, .35);
}
.tr-first__card.is-hit { animation: trHit 1.4s var(--ease-out); }
@keyframes trHit {
  0% { box-shadow: 0 0 0 0 rgba(67, 176, 152, 0), 0 20px 50px -30px rgba(45, 54, 69, .35); }
  25% { box-shadow: 0 0 0 6px rgba(67, 176, 152, .35), 0 20px 50px -30px rgba(45, 54, 69, .35); }
  100% { box-shadow: 0 0 0 0 rgba(67, 176, 152, 0), 0 20px 50px -30px rgba(45, 54, 69, .35); }
}
.tr-first__intro { min-width: 0; }
.tr-first__title { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.65rem); margin-top: 12px; }
.tr-first__text { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.tr-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tr-steps__item { min-width: 0; display: flex; }
.tr-step {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%; text-align: left; padding: 16px 14px 18px;
  border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-2), background var(--dur-2);
}
.tr-step:hover, .tr-step:focus-visible { transform: translateY(-3px); border-color: #BFE6DA; background: #fff; box-shadow: var(--sh-md); }
/* rota: cada parada desenha o trecho que leva até a próxima (desenha-se quando o card entra na tela) */
.tr-step::before, .tr-step::after { content: ""; position: absolute; z-index: 0; top: 30px; height: 0; border-top: 2px dashed #9ED9C8; pointer-events: none; }
.tr-step::after { left: 0; width: 30px; transform-origin: left center; }                                  /* chegada: da borda até o número */
.tr-step::before { left: 30px; right: -13px; transform-origin: left center; }                               /* partida: do número até a próxima parada */
.tr-steps__item:first-child .tr-step::after, .tr-steps__item:last-child .tr-step::before { display: none; }
html.js .tr-first__card:not(.in) .tr-step::before, html.js .tr-first__card:not(.in) .tr-step::after { transform: scaleX(0); }
.tr-first__card.in .tr-step::after { transition: transform .22s linear calc(.2s + var(--i, 0) * .48s); }
.tr-first__card.in .tr-step::before { transition: transform .3s linear calc(.5s + var(--i, 0) * .48s); }
.tr-step__n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 0 0 4px var(--bg);
  transition: transform var(--dur-3) var(--ease-spring), box-shadow var(--dur-2);
}
.tr-step:hover .tr-step__n, .tr-step:focus-visible .tr-step__n { transform: scale(1.1); box-shadow: 0 0 0 4px #fff; }
.tr-first__card.in .tr-step__n { animation: pxPop .55s var(--ease-spring) calc(.32s + var(--i, 0) * .48s) both; }
.tr-step__t { display: block; margin: 12px 0 6px; font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.tr-step__s { display: block; font-size: 12px; color: var(--muted); }

/* =====================================================================
   Nova trilha: WhatsApp com IA (card degradê escuro → verde)
   ===================================================================== */
.tr-feat__card {
  border-radius: 22px; padding: 34px 36px; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 34px; align-items: center;
  background: linear-gradient(135deg, #2D3645 0%, #2C4A4C 60%, #2E6B5F 100%); color: #fff;
  box-shadow: 0 30px 60px -30px rgba(45, 54, 69, .6);
}
.tr-feat__intro { min-width: 0; }
.tr-feat__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 1.9rem); margin-top: 14px; }
.tr-feat__title-nw { white-space: nowrap; }
.tr-feat__text { margin-top: 10px; color: var(--on-dark-muted); font-size: 15.5px; line-height: 1.6; max-width: 40ch; }
.tr-feat__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tr-soon-card {
  min-width: 0; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(127, 216, 195, .35);
  transition: background var(--dur-2), border-color var(--dur-2), transform var(--dur-3) var(--ease-out);
}
.tr-soon-card:hover { background: rgba(255, 255, 255, .11); border-color: rgba(127, 216, 195, .6); transform: translateY(-3px); }
html.js .tr-feat__card:not(.in) .tr-soon-card { opacity: 0; }
.tr-feat__card.in .tr-soon-card { animation: pxFadeUp .7s var(--ease-out) calc(.25s + var(--i, 0) * .12s) both; }
.tr-soon-card__cover {
  position: relative; display: grid; place-items: center; height: 96px; margin-bottom: 14px; border-radius: 10px; overflow: hidden;
  background: rgba(255, 255, 255, .06); border: 1px dashed rgba(127, 216, 195, .45);
  color: #7FD8C3; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.tr-soon-card__cover::after { /* brilho que atravessa a capa uma vez, quando o card entra */
  content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%);
  transform: translateX(-120%);
}
.tr-feat__card.in .tr-soon-card__cover::after { animation: trShine .9s var(--ease-out) calc(.7s + var(--i, 0) * .12s) forwards; }
@keyframes trShine { to { transform: translateX(120%); } }
.tr-soon-card__kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7FD8C3; }
.tr-soon { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 999px; background: #FFF3C4; color: #8A5A00; font-size: 11px; font-weight: 800; line-height: 1.5; }
.tr-feat__card.in .tr-soon { animation: pxPop .5s var(--ease-spring) calc(.6s + var(--i, 0) * .12s) both; }
.tr-soon-card__t { margin: 8px 0 6px; font-size: 15.5px; font-weight: 700; line-height: 1.35; color: #fff; text-wrap: pretty; }
.tr-soon-card__s { font-size: 12.5px; line-height: 1.4; color: #AEB9C5; }

/* =====================================================================
   Trilhas (2 cards grandes que filtram a grade)
   ===================================================================== */
.tr-tracks__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tr-track {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; min-height: 210px;
  padding: 26px 28px 24px; border-radius: 18px; color: #fff; overflow: hidden; cursor: pointer;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.tr-track--sistema { background: linear-gradient(135deg, #2D3645, #3A4B5C); }
.tr-track--crm { background: linear-gradient(135deg, #2A7D6A, #43B098); }
.tr-track::before { /* brilho suave no canto */
  content: ""; position: absolute; z-index: -1; right: -20%; top: -40%; width: 60%; height: 120%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .12), transparent 60%);
}
.tr-track:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.tr-track.is-active { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--teal); }
.tr-track.is-active:hover { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--teal), var(--sh-lg); }
.tr-track__n { position: absolute; right: 22px; top: 20px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 13px; font-weight: 700; }
.tr-track__kicker { padding-right: 96px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.tr-track__title { margin: 10px 0 8px; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.5rem); color: #fff; }
.tr-track__text { font-size: 14.5px; line-height: 1.55; opacity: .92; max-width: 56ch; }
.tr-track__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: auto; padding-top: 18px; }
.tr-track__link { position: static; flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; padding-bottom: 2px; border-bottom: 2px solid rgba(255, 255, 255, .6); font-size: 14px; font-weight: 700; color: #fff; transition: border-color var(--dur-2); }
.tr-track__link::after { content: ""; position: absolute; inset: 0; }       /* link "esticado": o card inteiro é clicável */
.tr-track__link .arr { display: inline-block; transition: transform var(--dur-2) var(--ease-out); }
.tr-track:hover .tr-track__link { border-color: #fff; }
.tr-track:hover .tr-track__link .arr { transform: translateX(4px); }
.tr-track__link:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* =====================================================================
   Todas as aulas
   ===================================================================== */
.tr-note {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 16px; border-radius: 12px;
  background: #FFFBEA; border: 1px solid #F2E3A6; color: #6B5A1E; font-size: 14px; line-height: 1.5;
}
.tr-note__ico { flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: #B07E12; }
.tr-note__ico svg { width: 18px; height: 18px; }

.tr-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 16px; }
.tr-search {
  position: relative; flex: 1 1 360px; display: flex; align-items: center; min-height: 52px; min-width: 0;
  padding: 0 8px 0 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2);
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.tr-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(67, 176, 152, .16); }
.tr-search__ico { flex: none; display: grid; place-items: center; color: var(--muted-2); transition: color var(--dur-2); }
.tr-search:focus-within .tr-search__ico { color: var(--teal-d); }
.tr-search__input { flex: 1; min-width: 0; padding: 13px 12px; border: 0; outline: none; background: transparent; font-size: 15px; color: var(--ink); }
.tr-search__input::placeholder { color: #9AA3AF; }
.tr-search__input::-webkit-search-cancel-button, .tr-search__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.tr-search__clear { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); transition: background var(--dur-2), color var(--dur-2); }
.tr-search__clear:hover { background: var(--bg); color: var(--navy); }

.tr-seg { position: relative; isolation: isolate; display: inline-flex; align-items: center; padding: 5px; border-radius: 14px; background: #EAEEF1; }
.tr-seg__label { padding: 0 8px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tr-seg__ind { position: absolute; z-index: -1; left: 0; top: 0; border-radius: 10px; background: #fff; box-shadow: var(--sh-sm); opacity: 0; transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .2s; }
.tr-seg.has-ind .tr-seg__ind { opacity: 1; }
.tr-seg__opt { position: relative; min-height: 40px; padding: 8px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; color: #4A5563; transition: color var(--dur-2); }
.tr-seg__opt[aria-pressed="true"] { color: var(--navy); }
.tr-seg:not(.has-ind) .tr-seg__opt[aria-pressed="true"] { background: #fff; box-shadow: var(--sh-sm); }
.tr-seg__opt:not([aria-pressed="true"]):hover { color: var(--teal-d); }

.tr-filters { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tr-filters__ind { position: absolute; z-index: 0; left: 0; top: 0; border-radius: 999px; background: var(--navy); opacity: 0; pointer-events: none; transition: transform .45s var(--ease-out), width .45s var(--ease-out), height .45s var(--ease-out), opacity .2s; }
.tr-filters.has-ind .tr-filters__ind { opacity: 1; }
.tr-filter {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 15px; border-radius: 999px;
  background: #fff; border: 1px solid #E1E6EA; color: var(--navy); font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: color var(--dur-2), border-color var(--dur-2), background var(--dur-2), transform var(--dur-2) var(--ease-out), opacity var(--dur-2);
}
.tr-filter__n { color: #9AA3AF; font-weight: 600; transition: color var(--dur-2); }
.tr-filter[aria-pressed="true"] { color: #fff; border-color: transparent; background: transparent; }
.tr-filter[aria-pressed="true"] .tr-filter__n { color: #7FD8C3; }
.tr-filters:not(.has-ind) .tr-filter[aria-pressed="true"] { background: var(--navy); }
.tr-filter:not([aria-pressed="true"]):hover { border-color: var(--teal); color: var(--teal-d); transform: translateY(-1px); }
.tr-filter.is-empty { opacity: .45; cursor: not-allowed; }
.tr-filter.is-empty:hover { border-color: #E1E6EA; color: var(--navy); transform: none; }

/* grade de cards */
.tr-cards { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tr-card { min-width: 0; display: flex; }
.tr-card.is-pending { opacity: 0; }
.tr-card.is-leaving { pointer-events: none; }
.tr-card__btn {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: 100%; text-align: left; border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-2);
}
.tr-card__btn:hover, .tr-card__btn:focus-visible { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: rgba(227, 232, 236, 0); }
.tr-cover {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 150px; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 86%, #000) 0%, var(--c) 48%, color-mix(in srgb, var(--c) 62%, #fff) 100%);
}
.tr-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .18), transparent 55%); }
.tr-cover::after { /* brilho que atravessa a capa no hover */
  content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.tr-card__btn:hover .tr-cover::after { transform: translateX(120%); }
.tr-cover__play {
  position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  transition: transform var(--dur-3) var(--ease-spring), background var(--dur-2);
}
.tr-cover__play svg { width: 18px; height: 18px; margin-left: 2px; }
.tr-card__btn:hover .tr-cover__play, .tr-card__btn:focus-visible .tr-cover__play { transform: scale(1.18); background: rgba(255, 255, 255, .4); }
.tr-cover__label { position: relative; z-index: 1; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.tr-card__body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.tr-card__kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text, var(--teal-d)); }
.tr-card__title { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--navy); text-wrap: pretty; }

.tr-empty { display: grid; justify-items: center; gap: 12px; padding: 40px 20px; border-radius: 16px; border: 1px dashed var(--line-2); background: #fff; text-align: center; }
.tr-empty__t { color: var(--muted); font-size: 15.5px; }
.tr-more { text-align: center; margin-top: 24px; }
.tr-more__arr { display: inline-block; margin-left: 2px; transition: transform var(--dur-3) var(--ease-out); }
.tr-more__btn[aria-expanded="true"] .tr-more__arr { transform: rotate(180deg); }

/* =====================================================================
   Ajuda: treinamento ao vivo + check-in
   ===================================================================== */
.tr-help__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tr-help__card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 34px 36px; border-radius: 20px; }
.tr-help__card--light { background: #fff; border: 1px solid var(--line); }
.tr-help__card--dark { color: #fff; }
.tr-help__title { margin-top: 12px; font-size: clamp(1.4rem, 1.15rem + .8vw, 1.65rem); }
.tr-help__text { margin: 10px 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.tr-help__card--dark .tr-help__text { color: var(--on-dark-muted); }
.tr-help__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.tr-chip { padding: 7px 12px; transition: transform var(--dur-2) var(--ease-out), background var(--dur-2); }
.tr-chip:hover { transform: translateY(-1px); background: #DDF3EC; }
.tr-chip__ico { display: inline-flex; }
.tr-chip__ico svg { width: 14px; height: 14px; }
.tr-help__btn { align-self: flex-start; }

/* =====================================================================
   Modal da aula
   ===================================================================== */
.tr-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .22s ease; }
.tr-modal.is-open { opacity: 1; }
.tr-modal__overlay { position: absolute; inset: 0; background: rgba(20, 26, 34, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tr-modal__box {
  position: relative; width: min(900px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65);
  transform: translateY(16px) scale(.98); transition: transform .4s var(--ease-out);
}
.tr-modal.is-open .tr-modal__box { transform: none; }
.tr-modal__box:focus { outline: none; }
.tr-modal__close {
  position: absolute; z-index: 3; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(20, 26, 34, .45); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background var(--dur-2), transform var(--dur-3) var(--ease-out);
}
.tr-modal__close:hover { background: rgba(20, 26, 34, .7); transform: rotate(90deg); }
.tr-modal__close:focus-visible { outline-color: #fff; }
.tr-modal__video { position: relative; aspect-ratio: 16 / 9; background: #0B1118; }
.tr-modal__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.tr-modal__body { padding: 22px 26px 6px; }
.tr-modal__kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text, var(--teal-d)); }
.tr-modal__title { margin-top: 6px; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.tr-modal__desc { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.tr-modal__link { margin-top: 14px; font-size: 15px; }
.tr-modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 16px 26px 22px; border-top: 1px solid var(--line); }
.tr-modal__nav { gap: 6px; }
.tr-modal__nav:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.tr-modal__nav:disabled:hover { border-color: var(--line-2); color: var(--ink); }
.tr-modal__nav:disabled::after { display: none; }
.tr-modal__nav-arr { display: inline-block; transition: transform var(--dur-2) var(--ease-out); }
.tr-modal__nav:not(:disabled):hover [data-dir] .tr-modal__nav-arr { transform: none; }
.tr-modal__nav[data-dir="1"]:not(:disabled):hover .tr-modal__nav-arr { transform: translateX(3px); }
.tr-modal__nav[data-dir="-1"]:not(:disabled):hover .tr-modal__nav-arr { transform: translateX(-3px); }
.tr-modal__pos { flex: 1; display: grid; gap: 6px; justify-items: center; min-width: 0; }
.tr-modal__pos-txt { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tr-modal__bar { display: block; width: min(160px, 100%); height: 4px; border-radius: 2px; background: #EAEEF1; overflow: hidden; }
.tr-modal__bar i { display: block; height: 100%; border-radius: 2px; background: var(--teal); transform-origin: left; transition: transform .5s var(--ease-out); }
html.tr-lock, html.tr-lock body { overflow: hidden; }
html.tr-lock body { padding-right: var(--tr-sbw, 0px); }

/* =====================================================================
   Responsivo
   ===================================================================== */
@media (max-width: 1100px) {
  .tr-hero { padding-top: calc(var(--header-total) + 44px); }
  .tr-hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .tr-hero__text { max-width: 720px; }
  .tr-hero__visual { max-width: 640px; }
  .tr-first__card { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tr-first__intro { max-width: 640px; }
  .tr-feat__card { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tr-feat__intro { max-width: 640px; }
  .tr-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .tr-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-step::before, .tr-step::after { display: none; }   /* a rota só faz sentido numa fileira (ou na coluna do celular) */
  .tr-tracks__grid { grid-template-columns: minmax(0, 1fr); }
  .tr-track { min-height: 0; }
  html.js .tr-track.rv--right:not(.in), html.js .tr-track.rv--left:not(.in) { transform: translateY(22px); } /* numa coluna, nada entra pelos lados (sem estouro horizontal) */
  .tr-help__grid { grid-template-columns: minmax(0, 1fr); }
  .tr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-feat__card, .tr-help__card { padding: 28px; }
}

@media (max-width: 680px) {
  .tr-hero { padding-top: calc(var(--header-total) + 28px); padding-bottom: 48px; }
  .tr-hero__grid { row-gap: 32px; }
  .tr-hero__lead { font-size: 16px; }
  .tr-hero__actions { flex-direction: column; }
  .tr-hero__actions .btn { width: 100%; }
  .tr-hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 30px; }
  .tr-stat__num { font-size: 26px; }
  .tr-stat__label { font-size: 13px; }
  .tr-player { aspect-ratio: auto; min-height: 0; height: 280px; }
  .tr-player__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .tr-player__play svg { width: 24px; height: 24px; }
  .tr-player__cap { left: 18px; right: 18px; bottom: 16px; }
  .tr-player__title { font-size: 17px; }

  .tr-first__card { padding: 24px 20px; }
  .tr-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tr-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; align-items: start; align-content: start; padding: 14px 16px; }
  .tr-step__n { grid-row: 1 / span 2; }
  .tr-step__t { margin: 4px 0 4px; }
  /* rota vertical: desce do número até a próxima parada */
  .tr-step::before, .tr-step::after { display: block; left: 30px; top: auto; right: auto; width: 0; height: auto; border-top: 0; border-left: 2px dashed #9ED9C8; }
  .tr-step::after { top: 0; height: 14px; transform-origin: top center; }
  .tr-step::before { top: 44px; bottom: -11px; transform-origin: top center; }
  .tr-steps__item:first-child .tr-step::after, .tr-steps__item:last-child .tr-step::before { display: none; }
  html.js .tr-first__card:not(.in) .tr-step::before, html.js .tr-first__card:not(.in) .tr-step::after { transform: scaleY(0); }

  .tr-feat__card { padding: 24px 20px; border-radius: 18px; }
  .tr-feat__list { grid-template-columns: minmax(0, 1fr); }
  .tr-track { padding: 22px 20px 20px; }
  .tr-track__kicker { padding-right: 90px; }

  /* filtros em rolagem horizontal, sangrando até as bordas da tela */
  .tr-filters {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r)); padding: 4px var(--gutter-r) 8px var(--gutter); margin-bottom: 18px;
  }
  .tr-filters::-webkit-scrollbar { display: none; }
  .tr-filter { flex: none; }
  .tr-toolbar { gap: 10px; }
  .tr-seg { width: 100%; }
  .tr-seg__opt { flex: 1; padding-inline: 10px; }
  .tr-help__card { padding: 24px 20px; }
  .tr-help__btn { max-width: 100%; white-space: normal; text-align: center; }
  .tr-modal { padding: 12px; }
  .tr-modal__box { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .tr-modal__body { padding: 18px 20px 4px; }
  .tr-modal__foot { flex-wrap: wrap; padding: 14px 20px 18px; }
  .tr-modal__pos { order: -1; flex-basis: 100%; }
  .tr-modal__nav { flex: 1; }
}

@media (max-width: 560px) {
  .tr-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 420px) {
  .tr-hero__pill { font-size: 12px; }
  .tr-hero__actions .btn { white-space: normal; text-align: center; font-size: 15px; padding-inline: 18px; }
  .tr-player { height: 250px; }
  .tr-search { flex-basis: 100%; }
  .tr-seg__label { display: none; }
  .tr-cover { height: 136px; }
}

/* ---------- Movimento reduzido: nada espera atraso ---------- */
@media (prefers-reduced-motion: reduce) {
  .tr-main *, .tr-main *::before, .tr-main *::after, .tr-modal * { animation-delay: 0s !important; transition-delay: 0s !important; }
  .tr-player__play::after { display: none; }
  .tr-player__bar i { transform: none; }
  html.js .tr-first__card:not(.in) .tr-step::before, html.js .tr-first__card:not(.in) .tr-step::after { transform: none; }
  html.js .tr-feat__card:not(.in) .tr-soon-card { opacity: 1; }
  .tr-card.is-pending { opacity: 1; }
  .tr-modal, .tr-modal__box { transition: none; transform: none; }
}

/* =====================================================================
   Capas automáticas do YouTube (hero, grade e trilha WhatsApp) — 04/11
   ===================================================================== */
.tr-player__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-player::before { z-index: 1; }
.tr-player__play, .tr-player__cap { z-index: 2; }
.tr-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-cover__play { position: relative; z-index: 1; }
.tr-cover::after { z-index: 2; }

/* trilha WhatsApp com IA: 5 aulas reais da playlist */
.tr-feat__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tr-wa-card { min-width: 0; display: flex; } /* flex: todos os cards da linha com a mesma altura */
.tr-wa-card__btn {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: 100%; padding: 10px 10px 14px; text-align: left; border-radius: 14px; color: #fff; /* o li em flex estica o card; a coluna alinha capa e textos no topo */
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(127, 216, 195, .35);
  transition: background var(--dur-2), border-color var(--dur-2), transform var(--dur-3) var(--ease-out);
}
.tr-wa-card__btn:hover, .tr-wa-card__btn:focus-visible { background: rgba(255, 255, 255, .11); border-color: rgba(127, 216, 195, .6); transform: translateY(-3px); }
.tr-wa-card__btn:focus-visible { outline-color: #fff; }
.tr-wa-card__cover { position: relative; display: block; aspect-ratio: 16 / 9; margin-bottom: 10px; border-radius: 9px; overflow: hidden; background: #1C2D48; }
.tr-wa-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-wa-card__play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  background: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); box-shadow: 0 0 0 6px rgba(255, 255, 255, .12);
  transition: transform var(--dur-3) var(--ease-spring), background var(--dur-2);
}
.tr-wa-card__play svg { width: 16px; height: 16px; margin-left: 2px; }
.tr-wa-card__btn:hover .tr-wa-card__play, .tr-wa-card__btn:focus-visible .tr-wa-card__play { transform: scale(1.15); background: rgba(255, 255, 255, .45); }
.tr-wa-card__kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7FD8C3; }
.tr-wa-card__t { display: block; margin-top: 5px; font-size: 14.5px; font-weight: 700; line-height: 1.35; text-wrap: pretty; }
.tr-feat__more { margin-top: 16px; font-size: 14px; }
.tr-feat__more a { color: #7FD8C3; font-weight: 700; text-decoration: none; }
.tr-feat__more a:hover { text-decoration: underline; }
html.js .tr-feat__card:not(.in) .tr-wa-card { opacity: 0; }
.tr-feat__card.in .tr-wa-card { animation: pxFadeUp .7s var(--ease-out) calc(.25s + var(--i, 0) * .1s) both; }
@media (max-width: 1080px) { .tr-feat__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .tr-feat__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 420px) { .tr-feat__list { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  html.js .tr-feat__card:not(.in) .tr-wa-card { opacity: 1; }
  .tr-feat__card.in .tr-wa-card { animation: none; }
}
