/* Página de acompanhamento — tokens de docs/DESIGN_SYSTEM.md */
:root {
  /* cores do kit FUTsway (design/brand-kit/CORES.json) */
  --preto: #0a0a0a;
  --primaria: #0d1f17;
  --secundaria: #1f4d34;
  --destaque: #7dd08a;
  --gelo: #f5f7f5;
  --destaque-escuro: #4f9e5e;
  --destaque-claro: #a8e8b1;
  --warning: #f2b84b;
  --danger: #ff6b6b;
  --info: #7cb8f0;
  --muted: #a3b2a8;
  --radius: 12px;
  color-scheme: dark;
}

@font-face {
  font-family: "Inter";
  src: url("inter.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--preto);
  color: var(--gelo);
  font: 400 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1, h2, h3 { font-family: Inter, sans-serif; line-height: 1.15; margin: 0; }
h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
a { color: var(--destaque); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--destaque-claro); outline-offset: 2px; border-radius: 4px; }
code { font: 500 0.88em ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--secundaria); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.lead { color: var(--muted); margin-bottom: 16px; }
.eyebrow { font: 600 12px/1.2 Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; }

/* cabeçalho */
.top { border-bottom: 1px solid var(--secundaria); background: var(--primaria); }
.top-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark { font-size: 27px; line-height: 1; color: var(--gelo); white-space: nowrap; }
.w-fut { font-weight: 700; letter-spacing: 0.085em; }
.w-sway { font-weight: 300; letter-spacing: 0.09em; }

.top-meta { display: grid; gap: 4px; }
.top-meta .eyebrow { color: var(--gelo); }

main section { padding: 32px 0 8px; scroll-margin-top: 16px; }

.card { min-width: 0; overflow-wrap: anywhere; background: var(--primaria); border: 1px solid var(--secundaria); border-radius: var(--radius); padding: 16px; }

.notice { margin-top: 24px; border-left: 3px solid var(--info); }
.notice p { font-size: 15px; }

.toc { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 0; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; color: var(--gelo); text-decoration: none; font-size: 14px; padding: 6px 12px; border: 1px solid var(--secundaria); border-radius: 999px; transition: border-color 150ms ease-out; }
.toc a:hover { border-color: var(--destaque); }

.tag { display: inline-block; font: 600 12px/1 Inter, sans-serif; color: var(--muted); border: 1px solid var(--secundaria); border-radius: 6px; padding: 4px 6px; }

.badge { display: inline-block; font: 600 12px/1.2 Inter, sans-serif; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.badge-ok { color: var(--destaque); }
.badge-wait { color: var(--warning); }
.badge-adjust { color: var(--danger); }
.badge-progress { color: var(--info); }
.badge-blocked { color: var(--warning); }
.badge-neutral { color: var(--muted); }

/* aprovações */
.approvals { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.approval header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.approval h3 { font-size: 18px; margin-bottom: 12px; }
.approval.tone-ok { border-color: var(--destaque-escuro); }
.approval.tone-wait { border-left: 3px solid var(--warning); }
.approval.tone-adjust { border-left: 3px solid var(--danger); }
.approval dl { display: grid; gap: 8px; margin: 0; }
.approval dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.approval dd { margin: 2px 0 0; }

/* fases */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.phase { display: grid; gap: 8px; }
.phase-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.phase-head .badge, .estado-cols .badge { white-space: normal; text-align: right; }
.phase.tone-progress { border-left: 3px solid var(--info); }
.phase.tone-ok { border-left: 3px solid var(--destaque); }
.phase.tone-blocked { border-left: 3px solid var(--warning); }
.phase.tone-neutral { opacity: 0.8; }
.phase.phase-main { border: 1px solid var(--destaque-escuro); border-left: 3px solid var(--destaque); }
.phase-main .eyebrow { margin: 0; }

/* linha do tempo */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.timeline > li { display: grid; gap: 6px; }
.timeline time { font-size: 13px; color: var(--muted); }
.timeline summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.timeline summary::-webkit-details-marker { display: none; }
.timeline summary::after { content: "+"; color: var(--destaque); font-weight: 600; }
.timeline details[open] summary::after { content: "–"; }
.timeline summary h3 { flex: 1; }
.timeline ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: 15px; }

/* galeria */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery figure { margin: 0; background: var(--primaria); border: 1px solid var(--secundaria); border-radius: var(--radius); overflow: hidden; }
.gallery a { display: block; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--secundaria); transition: opacity 150ms ease-out; }
.gallery a:hover img { opacity: 0.88; }
.gallery figcaption { padding: 10px 12px; font-size: 14px; display: flex; align-items: center; gap: 8px; }

/* bloqueios */
.blockers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.blocker { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.blocker .tag { justify-self: start; }

.next { margin: 0; padding: 16px 16px 16px 34px; display: grid; gap: 8px; }

/* commits */
.commits { list-style: none; margin: 0; padding: 0; border: 1px solid var(--secundaria); border-radius: var(--radius); overflow: hidden; }
.commits li { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 12px; align-items: baseline; padding: 10px 14px; font-size: 14px; }
.commits li + li { border-top: 1px solid var(--secundaria); }
.commits .date { color: var(--muted); font-size: 13px; }
.commits .hash { text-decoration: none; }
@media (max-width: 560px) {
  .commits li { grid-template-columns: auto 1fr; }
  .commits .subject { grid-column: 1 / -1; }
}

.foot { margin-top: 48px; border-top: 1px solid var(--secundaria); padding: 24px 0 40px; color: var(--muted); font-size: 13px; }

@media (min-width: 760px) {
  h2 { font-size: 28px; }
  .approvals { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases > li:first-child { grid-column: 1 / -1; }
}

/* acesso ao sistema */
.btn { display: inline-block; background: var(--destaque); color: var(--preto); font: 600 15px/1 Inter, sans-serif; text-decoration: none; padding: 12px 18px; border-radius: 10px; margin: 12px 12px 4px 0; transition: background 150ms ease-out; }
.btn:hover { background: var(--destaque-claro); }
.notice.sistema { border-left-color: var(--destaque); }
.sistema-lists { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.sistema-lists h3 { font-size: 14px; margin-bottom: 6px; }
.sistema-lists ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.doc > div { flex: 1 1 280px; min-width: 0; }
.doc h3 { font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.doc .btn { margin: 8px 0; }

/* Estado atual (docs/ESTADO.md) */
.estado { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.estado h3 { margin-bottom: 10px; }
.estado-cols { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.estado-cols li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.phase-detail { color: var(--gelo); overflow-wrap: anywhere; }

/* telas anteriores à troca de nome (marca antiga), recolhidas abaixo das atuais */
.old-shots { margin-top: 16px; }
.old-shots summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.old-shots[open] summary { margin-bottom: 12px; }
