/* Escopo exclusivo do conteúdo do curso; o restante da página não muda. */
.creator-roadmap {
  container: creator-roadmap / inline-size;
  --route-duration: 2400ms;
  margin-top: 30px;
}
.creator-roadmap-track { --roadmap-axis: vertical; position: relative; min-width: 0; }
.creator-roadmap-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.creator-route { fill: none; stroke: url(#creator-roadmap-gradient); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.creator-route-main { stroke-width: 2.5px; }
.creator-route-glow { stroke-width: 8px; opacity: .25; filter: blur(5px); }
.creator-start { filter: drop-shadow(0 0 5px #289dff80); }
.creator-start circle:first-child { fill: #07101e; stroke: #289dff; stroke-width: 2px; }
.creator-start circle:last-child { fill: #78c7ff; }
.creator-arrow { fill: none; stroke: #b077ff; stroke-width: 3px; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px #b077ff80); }
.creator-roadmap-steps { position: relative; display: grid; gap: 20px; margin: 0; padding: 0 0 0 48px; list-style: none; }
.creator-step { --node-offset: -29px; position: relative; min-width: 0; }
.creator-step:nth-child(even) { --node-offset: -17px; }
.creator-step::before {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(var(--node-offset) + 6px);
  width: calc(0px - var(--node-offset) - 6px);
  border-top: 2px dotted rgb(var(--step-rgb) / .65);
  pointer-events: none;
}
.creator-node {
  position: absolute;
  z-index: 2;
  left: var(--node-offset);
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid rgb(var(--step-rgb));
  border-radius: 50%;
  background: #07101e;
  box-shadow: 0 0 0 4px rgb(var(--step-rgb) / .13), 0 0 14px rgb(var(--step-rgb) / .45);
  transform: translate(-50%, -50%);
  transition: box-shadow .25s ease, background-color .25s ease;
  pointer-events: none;
}
.creator-node::after { content: ''; position: absolute; inset: 3px; border-radius: inherit; background: rgb(var(--step-rgb)); }
.creator-card {
  position: relative;
  min-width: 0;
  min-height: 158px;
  overflow-wrap: anywhere;
  padding: 18px;
  border: 1px solid rgb(var(--step-rgb) / .6);
  border-radius: 16px;
  background: radial-gradient(ellipse at 100% 0, rgb(var(--step-rgb) / .1), transparent 65%), #09111d;
  box-shadow: inset 0 1px 0 #ffffff08, 0 5px 22px rgb(var(--step-rgb) / .04);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.creator-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.creator-number { color: rgb(var(--step-rgb)); font-family: var(--font-geist-mono), monospace; font-size: 24px; font-weight: 650; letter-spacing: -.05em; line-height: 1; }
.creator-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid rgb(var(--step-rgb) / .45); border-radius: 11px; background: linear-gradient(145deg, rgb(var(--step-rgb) / .2), rgb(var(--step-rgb) / .04)); box-shadow: inset 0 1px 2px #ffffff16; color: rgb(var(--step-rgb)); }
.creator-icon svg { width: 27px; height: 27px; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.creator-card h4 { margin: 12px 0 0; color: #f0f5ff; font-size: 20px; font-weight: 650; line-height: 1.25; letter-spacing: -.03em; }
.creator-card p { margin: 8px 0 0; color: #a7bbd7; font-size: 14px; line-height: 1.65; }
.creator-step:hover .creator-card, .creator-step:focus-within .creator-card { border-color: rgb(var(--step-rgb)); box-shadow: inset 0 1px 0 #ffffff12, 0 0 24px rgb(var(--step-rgb) / .16); }
.creator-step:hover .creator-node, .creator-step:focus-within .creator-node { background: rgb(var(--step-rgb) / .4); box-shadow: 0 0 0 6px rgb(var(--step-rgb) / .18), 0 0 22px rgb(var(--step-rgb) / .7); }
.creator-card:focus-visible { outline: 2px solid rgb(var(--step-rgb)); outline-offset: 4px; }
.creator-roadmap .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* A largura útil considera a coluna de preço existente na página. */
@container creator-roadmap (min-width: 640px) {
  .creator-roadmap-track { --roadmap-axis: horizontal; height: 480px; }
  .creator-roadmap-steps { display: block; height: 100%; padding: 0; }
  .creator-step { --node-y: 220px; position: absolute; inset-block: 0; left: calc(var(--step-x) - 13.5%); width: 27%; pointer-events: none; }
  .creator-step:nth-child(even) { --node-y: 260px; }
  .creator-card { position: absolute; top: 0; width: 100%; height: 188px; min-height: 0; padding: 15px; pointer-events: auto; }
  .creator-step:nth-child(even) .creator-card { top: auto; bottom: 0; }
  .creator-card h4 { margin-top: 13px; font-size: 17px; }
  .creator-card p { margin-top: 8px; font-size: 13px; line-height: 1.6; }
  .creator-number { font-size: 22px; }
  .creator-icon { width: 36px; height: 36px; border-radius: 10px; }
  .creator-icon svg { width: 24px; height: 24px; }
  .creator-node { top: var(--node-y); left: 50%; }
  .creator-step::before { top: 188px; left: 50%; width: 0; height: 32px; border-top: 0; border-left: 2px dotted rgb(var(--step-rgb) / .65); transform: translateX(-50%); }
  .creator-step:nth-child(even)::before { top: 260px; }
}

/* Só ocultamos para animar depois que o SVG foi medido e preparado. */
.creator-roadmap.is-prepared .creator-route { stroke-dasharray: 1; stroke-dashoffset: 1; }
.creator-roadmap.is-prepared .creator-card { opacity: 0; transform: translateY(10px); }
.creator-roadmap.is-prepared .creator-node, .creator-roadmap.is-prepared .creator-step::before { opacity: 0; }
.creator-roadmap.is-prepared .creator-terminal { opacity: 0; }
.creator-roadmap.is-revealed .creator-route { animation: creatorRouteDraw var(--route-duration) linear both; }
.creator-roadmap.is-revealed .creator-card { animation: creatorCardReveal 400ms cubic-bezier(.2, .65, .3, 1) var(--arrival, 0ms) both; }
.creator-roadmap.is-revealed .creator-node, .creator-roadmap.is-revealed .creator-step::before { animation: creatorMarkReveal 250ms ease var(--arrival, 0ms) both; }
.creator-roadmap.is-revealed .creator-start { animation: creatorMarkReveal 250ms ease both; }
.creator-roadmap.is-revealed .creator-arrow { animation: creatorMarkReveal 250ms ease var(--route-duration) both; }
.creator-roadmap.is-instant .creator-route { animation: none; stroke-dashoffset: 0; }
.creator-roadmap.is-instant .creator-card { animation: none; opacity: 1; transform: none; }
.creator-roadmap.is-instant .creator-node, .creator-roadmap.is-instant .creator-step::before { animation: none; opacity: 1; }
.creator-roadmap.is-instant .creator-terminal { animation: none; opacity: 1; }
@keyframes creatorRouteDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes creatorCardReveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes creatorMarkReveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .creator-roadmap.is-prepared .creator-route { animation: none; stroke-dashoffset: 0; }
  .creator-roadmap.is-prepared .creator-card { animation: none; opacity: 1; transform: none; }
  .creator-roadmap.is-prepared .creator-node, .creator-roadmap.is-prepared .creator-step::before { animation: none; opacity: 1; }
  .creator-roadmap.is-prepared .creator-terminal { animation: none; opacity: 1; }
  .creator-card, .creator-node { transition: none; }
}
