/* Mapa da jornada: índice /funcionalidades/ e landing (mesmo HTML, gerado por tools/gen-funcionalidades.mjs).
   Autónomo: só usa os tokens de cor do :root (existem no base.css e no :root da landing). */
.jr-wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); position: relative; }
.jr *, .jr *::before { box-sizing: border-box; }
.jr p { margin: 0; }
.jr h3 { margin: 0; }
.jr a { text-decoration: none; }
/* ===== Jornada (índice /funcionalidades/) =====
   Fundo escuro com acentos vivos (verde-lima/dourado): paleta invertida ratificada para secções escuras (§28.3). */
.jr { --lima: #6EE7A0; --oiro: #FBD38D; position: relative; overflow: hidden; color: #fff; margin-top: 4px; padding: 56px 0 44px;
  background:
    radial-gradient(1100px 480px at 12% -10%, rgba(45,122,79,.55), transparent 62%),
    radial-gradient(900px 420px at 95% 110%, rgba(224,123,18,.16), transparent 60%),
    var(--green-deep); }
.jr::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.jr-top { max-width: 720px; }
.jr-kicker { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 8px; margin: 0; }
.jr-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lima); }
.jr .jr-h { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(32px, 5.4vw, 58px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin: 14px 0 16px; color: #fff; }
.jr .jr-h .it { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--lima); letter-spacing: -.01em; }
.jr-lede { font-size: 17.5px; line-height: 1.55; color: rgba(255,255,255,.78); margin: 0; max-width: 60ch; }

.jr-moms { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 36px 0 0; }
.jr-moms span { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.55); transition: color .3s; white-space: nowrap; }
.jr-moms span b { color: var(--oiro); font-weight: 600; margin-right: 6px; }
.jr-moms span.on { color: #fff; }

/* Lista (telemóvel e sem JS) */
.jr-stage { position: relative; margin-top: 18px; }
.jr-svg, .jr-panel, .jr-ctrl, .jr-pulse { display: none; }
.jr-list { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.jr-list::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: rgba(255,255,255,.14); }
.jr-step { position: relative; }
.jr-sep { margin: 22px 0 8px 52px; font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.jr-sep b { color: var(--oiro); font-weight: 600; margin-right: 6px; }
.jr-step:first-child .jr-sep { margin-top: 0; }
.jr-node { display: flex; align-items: center; gap: 14px; width: 100%; background: none; border: 0; color: #fff; padding: 7px 0; cursor: pointer; text-align: left; font: inherit; min-height: 44px; }
.jr-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green-deep); border: 2px solid rgba(255,255,255,.32); font: 600 11px 'Geist Mono', monospace; color: rgba(255,255,255,.85); position: relative; z-index: 1; transition: background .35s, border-color .35s, color .35s, transform .35s, box-shadow .35s; }
.jr-name { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.jr-step.feito .jr-dot { border-color: var(--lima); color: var(--lima); }
.jr-step.on .jr-dot { background: var(--lima); border-color: var(--lima); color: var(--green-deep); box-shadow: 0 0 0 6px rgba(110,231,160,.18); }
.jr-node:focus-visible { outline: none; }
.jr-node:focus-visible .jr-dot { outline: 2px solid var(--oiro); outline-offset: 3px; }
.jr-detail { margin: 6px 0 14px 52px; }
.jr.js .jr-step .jr-detail { display: none; }
.jr.js .jr-step.on .jr-detail { display: block; animation: jrIn .4s ease both; }

/* Cartão do detalhe (no painel do computador e dentro da etapa no telemóvel) */
.jr-detail, .jr-panel { background: var(--white); color: var(--ink); border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.jr-d-head { display: flex; gap: 16px; align-items: flex-start; }
.jr-num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 48px; font-weight: 700; letter-spacing: -.04em; line-height: .9; color: var(--green); font-variant-numeric: tabular-nums; }
.jr-mom { font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 4px; }
.jr-d-head h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
.jr-est { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.jr-est::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.jr-est.app { background: var(--green-soft); color: var(--green); }
.jr-est.parcial { background: var(--amber-soft); color: var(--amber); }
.jr-lbl { display: flex; align-items: center; gap: 6px; font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 8px; }
.jr-lbl svg { width: 15px; height: 15px; }
.jr-d-app ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.jr-d-app li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 15px; line-height: 1.45; }
.jr-d-app li svg { width: 18px; height: 18px; color: var(--green); margin-top: 1px; }
.jr-nota { margin: 10px 0 0; font-size: 13.5px; color: var(--amber); }
.jr-d-prazo { margin-top: 14px; background: var(--amber-soft); border-radius: 14px; padding: 2px 14px 12px; }
.jr-d-prazo .jr-lbl { color: var(--amber); margin-top: 12px; }
.jr-d-prazo p:last-child { margin: 0; font-size: 14.5px; line-height: 1.5; }
.jr-d-prazo.vazio { background: var(--paper); }
.jr-d-prazo.vazio .jr-lbl { color: var(--ink-3); }
.jr-d-prazo a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.jr-d-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; color: var(--green); }
.jr-d-link svg { width: 18px; height: 18px; transition: transform .2s; }
.jr-d-link:hover svg { transform: translateX(3px); }
.jr-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 26px 0 0; font-size: 13px; color: rgba(255,255,255,.7); }
.jr-legend .jr-est { margin-left: 8px; }
.jr-legend .jr-est:first-child { margin-left: 0; }
@keyframes jrIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Computador com JS: o caminho */
@media (min-width: 860px) {
  .jr.js .jr-moms { position: relative; height: 18px; display: block; }
  .jr.js .jr-moms span { position: absolute; top: 0; transform: translateX(-50%); }
  .jr.js .jr-stage { height: auto; }
  .jr.js .jr-svg { display: block; position: absolute; left: 0; top: 10px; width: 100%; height: 220px; overflow: visible; }
  .jr-path-bg { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 2 7; stroke-linecap: round; }
  .jr-path-fg { fill: none; stroke: var(--lima); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.6,0,.2,1); filter: drop-shadow(0 0 6px rgba(110,231,160,.5)); }
  .jr.js .jr-pulse { display: block; position: absolute; left: calc(var(--x, 0) * 100%); top: calc(10px + var(--y, .5) * 220px); width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: radial-gradient(circle, rgba(251,211,141,.55) 0%, rgba(251,211,141,.18) 38%, transparent 70%); transition: left .9s cubic-bezier(.6,0,.2,1), top .9s cubic-bezier(.6,0,.2,1); z-index: 0; pointer-events: none; }
  .jr.js .jr-list { padding: 0; height: 250px; }
  .jr.js .jr-list::before { display: none; }
  .jr.js .jr-step { position: absolute; left: calc(var(--x) * 100%); top: calc(10px + var(--y) * 220px); transform: translate(-50%, -50%); }
  .jr.js .jr-sep { display: none; }
  .jr.js .jr-node { flex-direction: column; gap: 8px; width: auto; padding: 0; min-height: 0; position: relative; }
  .jr.js .jr-name { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); font-size: 13.5px; white-space: nowrap; color: rgba(255,255,255,.72); transition: color .3s; }
  .jr.js .jr-step:nth-child(even) .jr-name { top: auto; bottom: 44px; }
  .jr.js .jr-step.on .jr-name { color: #fff; }
  .jr.js .jr-step.on .jr-dot { transform: scale(1.18); }
  .jr.js .jr-node:hover .jr-dot { border-color: var(--lima); }
  .jr.js .jr-step .jr-detail, .jr.js .jr-step.on .jr-detail { display: none; }
  .jr.js .jr-panel { display: grid; grid-template-columns: 1.05fr 1.25fr 1fr; gap: 0 28px; align-items: start; padding: 26px 28px; margin-top: 12px; }
  .jr.js .jr-panel.in > * { animation: jrIn .45s ease both; }
  .jr.js .jr-panel.in > *:nth-child(2) { animation-delay: .06s; }
  .jr.js .jr-panel.in > *:nth-child(3) { animation-delay: .12s; }
  .jr.js .jr-panel .jr-d-app .jr-lbl, .jr.js .jr-panel .jr-d-prazo { margin-top: 0; }
  .jr.js .jr-panel .jr-d-link { grid-column: 1; margin-top: 14px; }
  .jr.js .jr-ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; }
  .jr-ctrl button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
  .jr-ctrl button:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
  .jr-ctrl button svg { width: 18px; height: 18px; }
  .jr-ctrl .jr-play[aria-pressed="false"] { border-color: var(--oiro); color: var(--oiro); }
  .jr-count { font: 500 13px 'Geist Mono', monospace; color: rgba(255,255,255,.6); margin: 0 6px; }
  .jr-count b { color: #fff; font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) {
  .jr-path-fg, .jr-pulse, .jr.js .jr-pulse, .jr-dot { transition: none; }
  .jr.js .jr-panel.in > *, .jr.js .jr-step.on .jr-detail { animation: none; }
}

@media (max-width: 859px) { .jr .jr-moms { display: none; } }
.jr-mais { margin-top: 18px; }
.jr-mais a { color: #fff; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 2px; }
.jr-mais a:hover { border-color: #fff; }
.jr-mais svg { width: 18px; height: 18px; }
