/* ============================================================
   Processo · página do método, por cima do home.css (tokens, topo,
   botões e rodapé do portfólio). Uma cor funcional só: amarelo nos
   pontos de parada. Espaçamentos na grade de 4px.
============================================================ */

:root {
  --paper: #ffffff;
  --stop: #7a5d00;
  --stop-bg: #fff6c2;
  --stop-line: #ffd400; /* o amarelo do Fato Público */
  --ok: #2f9e44;
  --shadow: 0 1px 2px rgba(17, 17, 16, .04), 0 8px 24px -16px rgba(17, 17, 16, .16);
}
[data-theme="dark"] {
  --paper: #151514;
  --stop: #ffd400;
  --stop-bg: rgba(255, 212, 0, .14);
  --ok: #4cc764;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* Base do texto corrido (o reset do home.css zera margens e listas) */
.p-page { line-height: 1.6; }
:where(.p-body) p { margin: 0 0 16px; }
:where(.p-body) ul:not([class]), :where(.p-body) ol:not([class]) { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; }
:where(.p-body) ul:not([class]) { list-style: disc; }
:where(.p-body) ol:not([class]) { list-style: decimal; }
:where(.p-body) li::marker { color: var(--ink-3); }
:where(.p-body) a:not(.btn) { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color 160ms var(--ease); }
:where(.p-body) a:not(.btn):hover { text-decoration-color: var(--ink); }
.p-page code { font-family: var(--mono); font-size: .86em; background: var(--bg-2); padding: 0 4px; border-radius: 4px; overflow-wrap: anywhere; }
.p-page pre { font-family: var(--mono); font-size: 13px; line-height: 1.7; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow: auto; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.p-page pre code { background: none; padding: 0; }
.p-page strong { font-weight: 500; }
.p-page h2 { font-size: clamp(28px, 3.2vw, 36px); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.p-page h3 { font-size: 18px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

/* Botões: complementa o .btn do home.css */
.p-page .btn { gap: 8px; cursor: pointer; background: var(--paper); color: var(--ink); }
.p-page .btn--solid { background: var(--ink); color: var(--bg); }
.btn--sm { height: 36px; padding-inline: 16px; font-size: 14px; }
.p-page .btn:disabled { opacity: .36; cursor: default; }
/* "Copiado": o verde se espalha do clique (processo.js cria .fx-fill); sem movimento, o botão só fica verde */
.p-page .btn, .p-page .gate-btn, .p-page .gate-link { position: relative; isolation: isolate; overflow: hidden; }
.p-page .btn > span:not(.fx-msg), .p-page .gate-btn > span:not(.fx-msg), .p-page .gate-link > span:not(.fx-msg) { display: inline-block; }
.fx-fill { position: absolute; z-index: -1; border-radius: 50%; background: #4cc764; transform: scale(0); pointer-events: none; will-change: transform; }
.fx-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #0b0b0a; pointer-events: none; white-space: nowrap; }
.fx-txt b { display: inline-block; font-weight: inherit; }
.p-page [data-copy].gate-link--sm { min-width: 112px; }
.fx-check path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.p-page .btn.is-done, .p-page .gate-btn.is-done, .p-page .gate-link.is-done { border-color: #4cc764; box-shadow: none; color: #0b0b0a; transition: color 160ms var(--ease), border-color 160ms var(--ease); }
.p-page .btn.is-done:not(.has-fx), .p-page .gate-btn.is-done:not(.has-fx), .p-page .gate-link.is-done:not(.has-fx) { background: #4cc764; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.linkish { padding: 0; color: var(--ink-2); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767px) {
  .p-page .nav__links a:not(:last-child) { display: none; }
  .p-page .nav__links a:last-child { display: inline; }
}

/* ---------- Topo da página ---------- */
.p-hero { padding-top: clamp(48px, 10vh, 112px); padding-bottom: clamp(48px, 8vh, 96px); }
.p-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; font-size: 14px; color: var(--ink-2); }
.p-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--stop-line); }
.p-hero h1 { font-size: clamp(44px, 8vw, 104px); font-weight: 500; line-height: .96; letter-spacing: -.045em; max-width: 12ch; text-wrap: balance; }
.p-lead { margin-top: 32px; max-width: 48ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.p-lead strong { color: var(--ink); }
.p-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.p-meta { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.p-meta dt { color: var(--ink-3); margin-bottom: 4px; }

/* ---------- Corpo: índice fixo + conteúdo ---------- */
.p-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; padding-bottom: 96px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc ol { position: relative; display: block; list-style: none; margin: 0; padding-left: 16px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 4px 0; color: var(--ink-3); transition: color 160ms var(--ease); }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc-ind { position: absolute; left: -1px; top: 0; width: 1px; height: 0; background: var(--ink); opacity: 0; transition: transform 240ms var(--ease), height 240ms var(--ease), opacity 160ms; }
.toc-m { display: none; margin-bottom: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.toc-m summary, .kit-team summary { cursor: pointer; padding: 12px 16px; font-weight: 500; list-style: none; display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.toc-m summary::-webkit-details-marker, .kit-team summary::-webkit-details-marker, .preview summary::-webkit-details-marker { display: none; }
.toc-m[open] summary .i, .kit-team[open] summary .i, .preview[open] summary .i { transform: rotate(180deg); }
.toc-m ol { padding: 0 16px 16px 36px; list-style: decimal; display: grid; gap: 4px; }
.toc-m li::marker { color: var(--ink-3); }
.p-main { min-width: 0; max-width: 800px; }

.p-sec { margin-top: 112px; scroll-margin-top: 80px; }
.p-sec:first-of-type { margin-top: 0; }
.p-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.p-sec h2 { margin-top: 32px; }
.p-sec-lead { margin: 16px 0 32px !important; max-width: 60ch; color: var(--ink-2); font-size: 17px; text-wrap: pretty; }
.p-sub { margin: 48px 0 16px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; }
.card--flush { padding: 0; overflow: hidden; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; min-width: 0; font-size: 15px; }
.box h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.box ul, .box ol { margin: 0 !important; }

/* Papéis */
.roles-head, .roles li { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 16px 24px; }
.roles-head { font-size: 13px; color: var(--ink-3); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.roles li { border-bottom: 1px solid var(--line); font-size: 15px; }
.roles li:last-child { border-bottom: 0; }
.roles .topic { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 4px; }
.roles .you { font-weight: 500; }
.roles .cl { color: var(--ink-2); }
.roles .k { display: none; }

/* Aprendizados */
.learn li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.learn li:first-child { padding-top: 0; }
.learn li:last-child { border-bottom: 0; }
.learn .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 4px; }
.learn h3 { margin-bottom: 8px; }
.learn p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Abas em pílula */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 999px; margin-bottom: 24px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 8px 16px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 14px; white-space: nowrap; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }

/* Termos do glossário */
.p-page a.term { text-decoration: underline dotted var(--ink-3); text-decoration-thickness: 1.5px; cursor: help; }
.p-page a.term:hover { text-decoration-color: var(--ink); }
#term-pop { position: absolute; z-index: 40; max-width: min(320px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 16px; font-size: 14px; line-height: 1.5; }
#term-pop strong { display: block; font-size: 15px; margin-bottom: 4px; }
#term-pop a { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.glossary { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.glossary dt, .glossary dd { padding: 12px 20px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; font-size: 15px; }
.glossary dt { font-weight: 500; }
.glossary dd { color: var(--ink-2); padding-left: 0; }
.glossary dt:last-of-type, .glossary dd:last-of-type { border-bottom: 0; }
.glossary dt:target, .glossary dt:target + dd { background: var(--bg-2); }

/* ---------- Fluxo: linha do tempo à esquerda, detalhe à direita (acordeão no celular) ---------- */
.flow2 { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: start; }
.tl-col { min-width: 0; }
.tl { display: grid; gap: 8px; }
.tl-group { background: var(--bg-2); border-radius: 12px; padding: 8px 4px 4px; }
.tl-phase { display: flex; align-items: baseline; gap: 8px; padding: 4px 12px; }
.tl-phase b { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.tl-phase small { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.tl-group.is-cur .tl-phase b { color: var(--ink); }
.tl-step { position: relative; scroll-margin-top: 80px; }
.tl-step::before { content: ""; position: absolute; left: 24px; top: 40px; bottom: -4px; width: 1px; background: var(--line); }
.tl-step.is-last::before { display: none; }
.tl-step.is-done::before { background: var(--ink-3); }
.tl-btn { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--ink); transition: background-color 160ms var(--ease); }
.tl-btn:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.tl-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); transition: background-color 160ms, border-color 160ms, color 160ms; }
.tl-step.is-stop .tl-num { border-color: var(--stop-line); color: var(--stop); background: var(--stop-bg); }
.tl-step.is-done .tl-num { border-color: var(--ink-3); color: var(--ink); }
.tl-step.is-cur .tl-btn { background: var(--paper); box-shadow: var(--shadow); }
.tl-step.is-cur .tl-num { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tl-step.is-stop.is-cur .tl-num { background: var(--stop-line); border-color: var(--stop-line); color: #111110; }
.tl-txt { display: grid; min-width: 0; }
.tl-name { font-size: 14px; font-weight: 500; line-height: 1.35; }
.tl-who { font-size: 12px; color: var(--ink-3); }
.flow-legend { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin: 16px 8px 0; }
.flow-legend span { display: inline-flex; align-items: center; gap: 8px; }
.flow-legend i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); }
.flow-legend i.s { border-color: var(--stop-line); background: var(--stop-bg); }
.flow-legend i.c { border-color: var(--ink); background: var(--ink); }
.flow-prog { height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; margin-bottom: 24px; }
.flow-prog span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 280ms var(--ease); }
.flow-detail { position: sticky; top: 88px; min-width: 0; }
.detail-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.detail-bar .count { font-family: var(--mono); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.js .step-detail { display: none; }
.js .step-detail.is-on { display: block; animation: p-in 200ms var(--ease); }
.step-detail + .step-detail { margin-top: 32px; }
.js .step-detail + .step-detail { margin-top: 0; }
@keyframes p-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.step-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.phase-name { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.who { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; border-radius: 999px; padding: 2px 10px; border: 1px solid var(--line); color: var(--ink-2); }
.who.you { color: var(--ink); border-color: var(--ink-3); }
.step-detail h3 { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 12px; font-size: 22px; letter-spacing: -.02em; }
.step-detail p, .step-detail li { font-size: 15px; }
.step-detail ul:last-child, .step-detail p:last-child { margin-bottom: 0; }
.tag { font-size: 12px; font-weight: 500; color: var(--stop); background: var(--stop-bg); border-radius: 999px; padding: 2px 10px; white-space: nowrap; letter-spacing: 0; }
.practice { margin-top: 16px; background: var(--bg-2); border-radius: 8px; padding: 12px 16px; font-size: 15px; }
.practice > span { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-bottom: 4px; }
.practice p { margin: 0; }

/* Notas: atenção (amarelo) e sacada (neutra) */
.note { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 16px; margin-top: 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); }
.note .i { margin-top: 4px; }
.note--warn .i { color: var(--stop); }
.note--tip .i { color: var(--ink-2); }
.note-k { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); margin-bottom: 2px; }
.note--warn .note-k { color: var(--stop); }
.note p { margin: 0; font-size: 15px; }

/* ---------- Evidência: esquema do comparativo ---------- */
.cmp { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.cmp .col, .cmp .row { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.cmp .col { padding-bottom: 4px; }
.mock { border-radius: 8px; padding: 12px; display: grid; gap: 8px; aspect-ratio: 16 / 10; align-content: start; border: 1px solid var(--line); }
.mock--l { background: #fafaf9; --m-bar: #e4e4e0; --m-ink: #c9c9c3; --m-panel: #ffffff; --m-pill: #dcefe0; }
.mock--d { background: #141413; border-color: #2a2a28; --m-bar: #2a2a28; --m-ink: #3d3d3a; --m-panel: #1d1d1b; --m-pill: #1f3a27; }
.mock--bug { --m-panel: #f3f3f0; --m-ink: #deded9; --m-pill: #eef1ee; }
.mock .bar { height: 8px; width: 40%; border-radius: 4px; background: var(--m-bar); }
.mock .panel { border-radius: 6px; background: var(--m-panel); padding: 8px; display: grid; gap: 6px; }
.mock .ln { display: flex; align-items: center; gap: 6px; }
.mock .ln span { height: 6px; border-radius: 3px; background: var(--m-ink); flex: 1; }
.mock .ln em { width: 24px; height: 8px; border-radius: 4px; background: var(--m-pill); flex: none; }
.cmp-cap { margin: 16px 0 0 !important; font-size: 14px; color: var(--ink-2); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpis div { border-top: 1px solid var(--line); padding-top: 12px; }
.kpis dt { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.kpis dd { margin-top: 4px; font-size: 15px; }

/* ---------- Orquestradora ---------- */
.sidebar-demo { border: 1px solid var(--line); background: var(--bg-2); border-radius: 12px; padding: 8px; font-size: 14px; display: grid; gap: 2px; min-width: 0; align-self: start; }
.sidebar-demo > div { padding: 8px 12px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.sidebar-demo .i { width: 14px; height: 14px; color: var(--ink-3); }
.sb-pin { background: var(--paper); box-shadow: var(--shadow); font-weight: 500; }
.sb-pin .i { color: var(--ink); }
.sb-group { color: var(--ink-2); font-size: 13px; font-weight: 500; margin-top: 4px; }
.sb-item { padding-left: 32px !important; }
.sb-item.is-done { color: var(--ink-3); }
.sb-item.is-done .i { color: var(--ok); }

/* Simulador */
.sim-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.sim-cell { background: var(--bg-2); border: 1px solid transparent; border-radius: 8px; padding: 8px 12px; min-width: 0; transition: border-color 280ms var(--ease); }
.sim-cell.is-changed { border-color: var(--ink-3); }
.sim-cell small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.sim-cell strong { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--ink-3); }
.dot.on { background: var(--ok); }
.dot.busy { background: var(--stop-line); }
.sim-log { display: grid; gap: 12px; height: 336px; overflow-y: auto; padding: 4px 0; overscroll-behavior: contain; align-content: start; }
.msg { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; animation: p-in 240ms var(--ease); }
.msg .av { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; font-weight: 500; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }
.msg .bubble { background: var(--bg-2); border-radius: 4px 12px 12px 12px; padding: 8px 12px; font-size: 14px; min-width: 0; border: 1px solid transparent; }
.msg .who-l { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-bottom: 2px; }
.msg .bubble code { font-size: 12px; background: var(--paper); }
.msg:not(.is-latest) { opacity: .56; }
.msg.is-latest .bubble { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow); }
.msg[data-a="orq"] .av { border-color: var(--ink-3); color: var(--ink); }
.msg[data-a="env"] .av { background: #111110; color: #4cc764; border-color: #111110; }
.msg[data-a="you"] .av { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sim-why { font-size: 15px; border-top: 1px solid var(--line); padding-top: 16px; margin: 16px 0 0 !important; min-height: 72px; color: var(--ink-2); }
.sim-why b { color: var(--ink); font-weight: 500; }
.sim-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.sim-progress { display: flex; gap: 4px; margin-left: auto; }
.sim-progress span { width: 16px; height: 2px; border-radius: 2px; background: var(--line); }
.sim-progress span.on { background: var(--ink); }

/* Armadilhas */
.traps li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.traps li:first-child { padding-top: 0; }
.traps li:last-child { border-bottom: 0; }
.traps b { font-weight: 500; }
.traps > li > span { color: var(--ink-2); }
.traps .k { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-bottom: 4px; font-weight: 400; }

/* ---------- Material completo ---------- */
/* Cartão escuro nos dois temas, com o amarelo do Fato Público no botão e nos marcadores */
.gate { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 32px; margin-top: 32px; padding: 40px; border-radius: 24px; background: #111110; color: #ededea; box-shadow: 0 24px 48px -32px rgba(17, 17, 16, .6); }
.gate::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(56% 72% at 100% 0%, rgba(255, 212, 0, .16), transparent 64%); }
[data-theme="dark"] .gate { background: #1a1a18; box-shadow: inset 0 0 0 1px rgba(255, 212, 0, .24); }
.gate p { margin: 0; }
.gate-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: #a3a39c; }
.gate-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #ffd400; }
.p-page .gate-title { margin-top: 16px; max-width: 16ch; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.035em; color: #fafaf9; text-wrap: balance; }
.gate-lead { margin-top: 16px !important; max-width: 52ch; font-size: 16px; color: #a3a39c; text-wrap: pretty; }
.gate-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .1); }
.gate-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; }
.gate-list .i { margin-top: 4px; color: #ffd400; stroke-width: 2.4; }
.gate-list b { display: block; font-size: 15px; font-weight: 500; color: #fafaf9; }
.gate-list span { display: block; margin-top: 2px; font-size: 14px; color: #a3a39c; }
.gate-form { display: grid; gap: 16px; }
.gate-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: box-shadow 160ms var(--ease); }
.gate-row:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 212, 0, .7); }
.gate-field { display: flex; min-width: 0; }
.gate-field input { width: 100%; min-width: 0; height: 48px; padding: 0 20px; border: 0; background: none; color: #fafaf9; font: 400 16px var(--font); outline: none; }
.gate-field input::placeholder { color: #8c8c85; }
.gate-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; background: #ffd400; color: #111110; font-size: 15px; font-weight: 500; white-space: nowrap; transition: transform 160ms var(--ease), opacity 160ms var(--ease); }
.gate-btn:hover { transform: translateY(-1px); }
.gate-btn:disabled { opacity: .56; transform: none; cursor: default; }
.gate-btn:focus-visible { outline: 2px solid #ffd400; outline-offset: 4px; }
.gate-consent { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; font-size: 13px; line-height: 1.55; color: #a3a39c; cursor: pointer; }
.gate-consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: #ffd400; }
.p-page .gate-consent a { color: #ededea; text-decoration-color: rgba(255, 255, 255, .32); }
.p-page .gate-consent a:hover { text-decoration-color: #ededea; }
.gate-msg { font-size: 14px; color: #ededea; }
.gate-msg:empty { display: none; }
.gate-msg.is-error { color: #ffd400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kit-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.kit-head p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Campos */
.fld { display: grid; gap: 4px; font-size: 14px; font-weight: 500; }
.fld .hint { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.fld input, .fld textarea { font: 400 15px var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; width: 100%; min-height: 44px; transition: border-color 160ms var(--ease); }
.fld textarea { resize: vertical; min-height: 64px; }
.fld input:hover, .fld textarea:hover { border-color: var(--ink-3); }
.fld input:focus, .fld textarea:focus { border-color: var(--ink); outline: none; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--ink-3); }
.chk { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.chk input { accent-color: var(--ink); }

/* Gerador */
.kit-team { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.kit-team summary small { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.kit-team form { padding: 0 16px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.gen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
.gen form { display: grid; gap: 12px; }
.gen-out { display: grid; gap: 12px; min-width: 0; position: sticky; top: 88px; }
.gen-out pre { max-height: min(560px, calc(100vh - 180px)); }
.gen-out .ph { color: var(--stop); background: var(--stop-bg); border-radius: 4px; }
.gen-out-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.missing { font-size: 13px; color: var(--ink-3); }
.missing b { color: var(--stop); font-weight: 500; }

/* Skill */
.skill-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; background: var(--bg-2); border-radius: 8px; padding: 8px 12px; overflow-wrap: anywhere; min-width: 0; }
.steps-mini { counter-reset: s; margin-top: 24px; display: grid; gap: 16px; }
.steps-mini > li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; font-size: 15px; }
.steps-mini > li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; display: grid; place-items: center; color: var(--ink-2); }
.steps-mini > li > div { min-width: 0; padding-top: 2px; }
.steps-mini p { margin: 0 0 8px; }
.cmd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.cmd pre { font-size: 12px; padding: 8px 12px; }
.preview { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.preview summary { cursor: pointer; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; list-style: none; }
.preview pre { margin-top: 12px; max-height: 480px; }

@media (max-width: 1023px) {
  .p-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .toc-m { display: block; }
  .gen { grid-template-columns: minmax(0, 1fr); }
  .gen-out { position: static; }
}
@media (max-width: 767px) {
  .p-sec { margin-top: 80px; }
  .flow2 { grid-template-columns: minmax(0, 1fr); }
  .flow-detail { position: static; }
  /* celular: acordeão sem caixa dentro de caixa. O passo aberto mostra só o conteúdo
     (nome e quem faz já estão no botão do passo) e termina com Anterior e Próximo lado a lado */
  #flow.card { padding: 0; border: 0; background: none; }
  .tl { gap: 12px; }
  .tl-group { padding: 8px 4px 4px; border-radius: 16px; }
  .tl-phase { padding: 6px 12px 8px; }
  .tl-btn { padding: 12px; border-radius: 12px; }
  .tl-step::before { display: none; }
  .tl-step > .flow-detail { display: flex; flex-direction: column; margin: 4px 0 8px; padding: 20px 16px 16px; background: var(--paper); border: 0; box-shadow: var(--shadow); border-radius: 12px; animation: p-in 200ms var(--ease); }
  .tl-step > .flow-detail .flow-prog { order: -1; margin-bottom: 20px; }
  .tl-step > .flow-detail .step-head, .tl-step > .flow-detail .step-detail h3 { display: none; }
  .tl-step > .flow-detail .step-detail > p:first-of-type { margin-top: 0; }
  .tl-step > .flow-detail .detail-bar { order: 9; margin: 24px 0 0; }
  .tl-step > .flow-detail .detail-bar .count { display: none; }
  .tl-step > .flow-detail .detail-bar .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .tl-step > .flow-detail .detail-bar .btn { width: auto; height: 48px; justify-content: center; }
  .two, .gate-list, .kit-team form { grid-template-columns: minmax(0, 1fr); }
  .traps li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .learn li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .card { padding: 16px; }
  .roles-head { display: none; }
  .roles li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px; }
  .roles .k { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); font-weight: 400; }
  .roles .topic { padding-top: 0; color: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 500; }
  .kpis { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cmp { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr); gap: 4px; }
  .cmp .row, .cmp .col { font-size: 11px; }
  .mock { padding: 8px; gap: 6px; }
  .sim-cell { padding: 8px; }
  .sim-cell strong { font-size: 12px; }
  .sim-log { height: 304px; }
  .sim-progress { display: none; }
  .glossary { grid-template-columns: minmax(0, 1fr); }
  .glossary dt { border-bottom: 0; padding-bottom: 0; }
  .glossary dd { padding-left: 20px; }
  .cmd { grid-template-columns: minmax(0, 1fr); }
  .cmd .btn { justify-self: start; }
  .gate { padding: 24px; gap: 24px; border-radius: 20px; }
  .gate-list { padding-top: 24px; gap: 16px; }
  .gate-row { grid-template-columns: minmax(0, 1fr); padding: 0; background: none; box-shadow: none; }
  .gate-row:focus-within { box-shadow: none; }
  .gate-field input { height: 52px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
  .gate-field input:focus { box-shadow: inset 0 0 0 1px rgba(255, 212, 0, .7); }
  .gate-btn { width: 100%; height: 52px; }
  .p-cta .btn { width: 100%; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .step-detail.is-on, .msg, .tl-step > .flow-detail { animation: none; }
}

/* O e-mail é opcional: o cartão vem depois do material, como aviso de versão */
.gate-done { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #fafaf9; outline: none; }
.gate-done[hidden] { display: none; }
.gate-done .i { color: #ffd400; stroke-width: 2.4; }
.gate-form[hidden] { display: none; }
.gate[hidden] { display: none; }

/* Banner da seção 08: levar a skill e o guia. O e-mail é só um aviso opcional, embaixo */
.p-page .gate .gate-title { max-width: 18ch; }
#kit > .gate + .p-sub { margin-top: 64px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gate-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 999px; color: #fafaf9; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); transition: box-shadow 160ms var(--ease), background-color 160ms var(--ease); }
.gate-link:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .36); }
.gate-link:focus-visible { outline: 2px solid #ffd400; outline-offset: 4px; }
.gate-link--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.gate-cmd { display: grid; gap: 12px; }
.gate-cmd p { font-size: 14px; color: #a3a39c; }
.gate-cmd-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 4px 4px 16px; border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.gate-cmd-row pre { margin: 0; overflow-x: auto; font: 400 13px/1.5 var(--mono); color: #ededea; white-space: pre; scrollbar-width: none; }
.gate-cmd-row pre::-webkit-scrollbar { display: none; }
.p-page .gate-hint code { font: 400 13px var(--mono); color: #ededea; }
.p-page .gate-hint a { color: #ededea; text-decoration-color: rgba(255, 255, 255, .32); }
.gate-sub { display: grid; gap: 16px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .1); }
.gate-sub[hidden] { display: none; }
.gate-sub-title { font-size: 15px; color: #ededea; }
.gate-btn .i { width: 16px; height: 16px; }
@media (max-width: 560px) {
  .gate { padding: 24px; }
  .gate-actions > * { width: 100%; }
  .gate-row { grid-template-columns: 1fr; border-radius: 16px; }
  .gate-btn { width: 100%; }
}
.p-page .gate-cmd-row pre { background: none; border: 0; border-radius: 0; padding: 8px 0; color: #ededea; white-space: pre; overflow-wrap: normal; }
.p-page .gate-hint code { background: rgba(255, 255, 255, .08); }
.p-page .gate-link { color: #fafaf9; text-decoration: none; }
.gate-preview { margin-top: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.gate-preview summary { color: #fafaf9; font-size: 15px; }
.p-page .gate-preview pre { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); color: #ededea; }
/* comando no mesmo formato de pílula do campo de e-mail; o texto some num degradê antes do botão */
.gate-cmd-row { border-radius: 999px; padding: 4px 4px 4px 20px; }
.p-page .gate-cmd-row pre { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.gate-cmd-row .gate-link--sm { height: 40px; }

/* celular: rótulos mono no mínimo 12px */
@media (max-width: 767px) {
  .traps .k, .roles .k, .tl-phase small, .practice > span, .sim-cell small, .cmp .row, .cmp .col { font-size: 12px; }
  .toc-m ol { gap: 0; }
  .toc-m ol a { display: block; padding-block: 10px; }
}
/* celular: topo mais justo */
@media (max-width: 767px) { .p-hero { padding-top: 32px; } }
