/* =====================================================================
   Roadmap — linha do tempo de entregas e lista "Em breve"
   ===================================================================== */

/* ---------- Hero: texto + bloco de atualização ---------- */
.rm-hero { align-items: end; }
@media (max-width: 960px) { .rm-hero { grid-template-columns: minmax(0, 1fr); } }
.rm-hero h1 { max-width: none; font-size: clamp(2.3rem, 1.3rem + 3vw, 3.75rem); text-wrap: balance; }
.rm-hero .lead { margin-bottom: 30px; }
.rm-update .code { margin-top: 0; }
.rm-update .ticks { margin-top: 18px; }
.rm-update__back { margin: 16px 0 0; }

/* ---------- Linha do tempo ---------- */
.tl-wrap {
  --when: 168px;   /* coluna da data */
  --gap: 56px;     /* coluna do trilho */
  --rail-x: calc(var(--when) + var(--gap) / 2);
  --node-y: 9px;
  position: relative;
  max-width: 1000px;
}
.tl { position: relative; list-style: none; margin: 0; padding: 0; }

/* trilho + preenchimento de progresso */
.tl::before,
.tl::after { content: ""; position: absolute; left: calc(var(--rail-x) - 1px); top: var(--node-y); bottom: 0; width: 2px; border-radius: 2px; }
.tl::before { z-index: 0; background: var(--line-strong); }
.tl::after {
  background: linear-gradient(180deg, var(--in), var(--shield) 55%, var(--out));
  box-shadow: 0 0 12px rgba(60,198,228,.45);
  transform-origin: top;
  transform: scaleY(1);
  z-index: 0;
}
.js .tl::after { transform: scaleY(var(--p, 0)); transition: transform .35s linear; }

.tl__item { position: relative; display: grid; grid-template-columns: var(--when) var(--gap) minmax(0, 1fr); padding-bottom: 48px; }
.tl__item:last-child { padding-bottom: 8px; }

.tl__when { grid-column: 1; text-align: right; padding-top: 1px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tl__when time { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; }
.tl__ver { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ok); white-space: nowrap; }

.tl__node { grid-column: 2; justify-self: center; position: relative; z-index: 2; width: 13px; height: 13px; margin-top: calc(var(--node-y) - 6px); border-radius: 50%; background: var(--abyss); border: 2px solid var(--line-strong); box-shadow: 0 0 0 5px var(--abyss); transition: background .4s, border-color .4s, box-shadow .4s; }
.tl__item.is-lit .tl__node,
html:not(.js) .tl__node { background: var(--in); border-color: var(--in); box-shadow: 0 0 0 5px var(--abyss), 0 0 0 7px rgba(60,198,228,.18), 0 0 16px var(--in); }

.tl__body { grid-column: 3; min-width: 0; }
.tl__body h3 { font-size: var(--fs-md); margin: 0 0 8px; }
.tl__body > p { color: var(--text-3); font-size: var(--fs-base); line-height: 1.6; max-width: 64ch; margin-bottom: 0; }
.tl__body .ticks { margin-top: 14px; max-width: 70ch; }
.tl__body .ticks strong { color: var(--text-1); font-weight: 600; }
.tl__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.tl__scope { font-size: var(--fs-xs); color: var(--text-3); }

/* versões anteriores: nó apagado, lista curta */
.tl__item--past .tl__body h3 { color: var(--text-2); }
.tl__item--past .tl__when time { color: var(--text-3); }
.tl__versions { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tl__versions li { display: inline-flex; align-items: baseline; gap: 10px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(12,24,48,.5); font-size: var(--fs-xs); color: var(--text-3); }
.tl__versions .mono { color: var(--text-1); font-size: var(--fs-sm); }
.tl__versions time { font-family: var(--font-mono); }

/* versão atual: nó maior e conteúdo em painel */
.tl__item--current { --cur-c: calc(var(--node-y) + 23px); }
/* abaixo do nó atual o trilho vira tracejado (futuro) */
.tl__item--current::after { content: ""; position: absolute; z-index: 1; left: calc(var(--rail-x) - 1px); top: var(--cur-c); bottom: 0; width: 2px; background: var(--abyss); border-left: 2px dashed rgba(182,156,255,.45); box-sizing: border-box; }
.tl__item--current .tl__node { width: 19px; height: 19px; margin-top: calc(var(--node-y) + 14px); }
.tl__item--current .tl__when { padding-top: 22px; }
.tl__item--current.is-lit .tl__node,
html:not(.js) .tl__item--current .tl__node { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 5px var(--abyss), 0 0 0 9px rgba(61,214,140,.2), 0 0 22px var(--ok); }
.tl__item--current .tl__body { padding: clamp(20px, 2.4vw, 28px); border: 1px solid rgba(61,214,140,.35); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(16,32,61,.8), rgba(8,18,38,.85)); box-shadow: 0 30px 80px -50px rgba(61,214,140,.55); }
.tl__item--current .tl__body h3 { font-size: var(--fs-lg); }

/* continuação tracejada até "Em breve" */
.tl-next { position: relative; display: grid; grid-template-columns: var(--when) var(--gap) auto auto; justify-content: start; align-items: center; padding-top: 56px; color: var(--text-2); }
.tl-next::before { content: ""; position: absolute; left: calc(var(--rail-x) - 1px); top: 0; height: 56px; border-left: 2px dashed rgba(182,156,255,.45); }
.tl-next__node { grid-column: 2; justify-self: center; width: 15px; height: 15px; border-radius: 50%; border: 2px dashed var(--out); background: var(--abyss); animation: tl-soon 2.6s ease-in-out infinite; }
@keyframes tl-soon { 50% { box-shadow: 0 0 0 6px rgba(182,156,255,.14), 0 0 18px rgba(182,156,255,.5); } }
.tl-next__text { grid-column: 3; display: flex; flex-direction: column; color: var(--text-1); font-weight: 600; }
.tl-next__text small { color: var(--text-3); font-weight: 400; font-size: var(--fs-sm); }
.tl-next svg { grid-column: 4; width: 18px; height: 18px; margin-left: 14px; color: var(--out); transition: transform .2s var(--ease-out); }
.tl-next:hover { color: var(--text-1); }
.tl-next:hover svg { transform: translateY(3px); }

@media (max-width: 760px) {
  .tl-wrap { --when: 0px; --gap: 30px; --rail-x: 13px; --node-y: 8px; }
  .tl__item { grid-template-columns: var(--gap) minmax(0, 1fr); padding-bottom: 40px; }
  .tl__when { grid-column: 2; grid-row: 1; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; text-align: left; padding: 0 0 6px; }
  .tl__node { grid-column: 1; grid-row: 1; justify-self: start; margin-left: 7px; }
  .tl__body { grid-column: 2; grid-row: 2; }
  .tl__item--current .tl__when { padding-top: 0; }
  .tl__item--current { --cur-c: calc(var(--node-y) + 1px); }
  .tl__item--current .tl__node { margin-top: calc(var(--node-y) - 9px); margin-left: 4px; }
  .tl-next { grid-template-columns: var(--gap) auto auto; padding-top: 44px; }
  .tl-next::before { height: 44px; }
  .tl-next__node { grid-column: 1; justify-self: start; margin-left: 6px; }
  .tl-next__text { grid-column: 2; }
  .tl-next svg { grid-column: 3; }
}

/* ---------- Em breve: lista em duas colunas ---------- */
.soon { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); }
.soon > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.soon__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px dashed rgba(182,156,255,.5); background: rgba(182,156,255,.06); color: var(--out); }
.soon__icon svg { width: 20px; height: 20px; }
.soon__area { display: block; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-4); margin-bottom: 4px; }
.soon h3 { font-size: var(--fs-md); margin: 0 0 8px; }
.soon h3 .tag-soon { margin-left: 6px; vertical-align: 3px; font-family: var(--font-body); }
.soon p { color: var(--text-3); font-size: var(--fs-sm); line-height: 1.6; margin: 0; }
@media (max-width: 860px) { .soon { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .soon > li { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 24px 0; }
  .soon__icon { width: 34px; height: 34px; border-radius: 9px; }
  .soon__icon svg { width: 17px; height: 17px; }
}

/* ---------- CTA ---------- */
.rm-cta { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px 48px; align-items: end; }
.rm-cta p { margin-bottom: 0; }
@media (max-width: 900px) { .rm-cta { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .js .tl::after { transition: none; }
  .tl-next__node { animation: none; }
}

/* ---------- Botão copiar: ícone no tamanho das outras páginas ---------- */
.rm-update .code__copy svg { width: 14px; height: 14px; flex: none; }
