/* Portal do parceiro — jornada (brief 23/08) sobre os tokens do design
   system (design.css, gerado do repo www). Densidade de ferramenta na visão
   técnica; calor de proposta na jornada. */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 20px 64px;
}
.screen {
  background: #fff;
  border: 1px solid var(--rg-primary-100);
  border-radius: var(--rg-radius-xl);
  padding: 28px;
  box-shadow: var(--rg-shadow-card);
  position: relative;
}
.hero-gradient {
  height: 6px;
  background: var(--rg-gradient-chevron);
  border-radius: 999px;
  margin: -8px 0 18px;
}
h1 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 8px;
}
h3 {
  font-size: 0.95rem;
  margin: 16px 0 4px;
}
p {
  line-height: 1.55;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--rg-primary-500);
  white-space: nowrap;
}
.pill-test {
  background: #946200;
}
.pill-live {
  background: #157347;
}
.pill-ok {
  background: #157347;
}
.pill-role {
  background: var(--rg-secondary-500);
  text-transform: capitalize;
}

/* Jornada: passos numerados no topo. */
.journey {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0 auto 14px;
  max-width: 880px;
  padding-inline: 4px;
}
.jstep {
  background: none;
  border: 1px solid var(--rg-primary-100);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--rg-font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rg-primary-500);
  cursor: pointer;
  margin: 0;
}
.jstep-on {
  background: var(--rg-primary-900);
  color: #fff;
  border-color: var(--rg-primary-900);
}

/* O arco da parceria. */
.stage-arc {
  list-style: none;
  display: flex;
  gap: 0;
  padding: 0;
  margin: 18px 0;
}
.stage-arc li {
  flex: 1;
  text-align: center;
  position: relative;
}
.stage-arc li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--rg-primary-100);
  z-index: 0;
}
.stage-arc li:first-child::before {
  display: none;
}
.arc-dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--rg-primary-100);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--rg-primary-300);
}
.arc-on .arc-dot {
  border-color: var(--rg-secondary-500);
  color: var(--rg-secondary-500);
}
.arc-done .arc-dot {
  background: var(--rg-secondary-500);
  border-color: var(--rg-secondary-500);
  color: #fff;
}
.arc-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 6px;
  color: var(--rg-primary-500);
}
.arc-todo .arc-label {
  color: var(--rg-primary-300);
}

/* Cards da home. */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.card {
  text-align: left;
  background: #fff;
  border: 1px solid var(--rg-primary-100);
  border-radius: var(--rg-radius-lg);
  padding: 16px;
  cursor: pointer;
  font-family: var(--rg-font);
  color: var(--rg-neutral-950);
  margin: 0;
  font-weight: 400;
}
.card:hover {
  border-color: var(--rg-secondary-500);
  box-shadow: var(--rg-shadow-card);
}
.card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--rg-primary-500);
}
.card span {
  font-size: 0.85rem;
  color: var(--rg-neutral-600);
  line-height: 1.4;
  display: block;
}
@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Esquema visual do fluxo. */
.flow-schema {
  width: 100%;
  height: auto;
  margin: 12px 0;
}
.flow-schema .lane-title {
  font: 700 0.85rem var(--rg-font);
  fill: var(--rg-primary-500);
}
.flow-schema .lane-roster {
  fill: var(--rg-secondary-500);
}
.flow-schema .node {
  font: 600 0.72rem var(--rg-font);
  fill: #1f2733;
}
.flow-schema .wire {
  font: 700 0.62rem var(--rg-mono);
  fill: var(--rg-primary-500);
}
.flow-schema .wire-hook {
  fill: var(--rg-secondary-500);
}
.wire-legend {
  padding-left: 18px;
}
.wire-legend li {
  margin: 8px 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Preview do botão dentro da plataforma DELES. */
.platform-preview {
  border: 1px solid var(--rg-primary-100);
  border-radius: var(--rg-radius-lg);
  overflow: hidden;
  margin: 14px 0;
}
.pp-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--rg-primary-50);
  border-bottom: 1px solid var(--rg-primary-100);
}
.pp-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rg-primary-100);
}
.pp-title {
  margin-left: 8px;
  font-size: 0.78rem;
  color: var(--rg-neutral-600);
  font-weight: 600;
}
.pp-body {
  padding: 22px;
}
.pp-line {
  height: 10px;
  border-radius: var(--rg-radius-sm);
  background: var(--rg-primary-50);
  margin: 10px 0;
}
.pp-short {
  width: 55%;
}
.preview-btn {
  margin: 12px 0;
  padding: 11px 20px;
  border: 0;
  border-radius: var(--rg-radius-md);
  background: #152b4e;
  color: #fff;
  font-weight: 700;
  font-family: var(--rg-font);
  cursor: default;
}

/* Go-live: checklist visual. */
.golive {
  list-style: none;
  padding: 0;
  counter-reset: none;
}
.golive > li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rg-primary-50);
}
.golive .check {
  flex: 0 0 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid var(--rg-primary-100);
  color: var(--rg-primary-300);
}
.golive li.done .check {
  background: #157347;
  border-color: #157347;
  color: #fff;
}
.golive p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--rg-neutral-600);
}
.resp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  flex-wrap: wrap;
}
.resp-row > span:first-child {
  flex: 0 0 80px;
  font-weight: 600;
  font-size: 0.88rem;
}
.resp-row select {
  flex: 1;
  min-width: 180px;
  width: auto;
}

/* Botão humano — presente em toda tela. */
.book-call {
  display: block;
  width: fit-content;
  margin: 26px auto 0;
  padding: 12px 18px;
  background: #fff;
  border: 1.5px dashed var(--rg-primary-200);
  color: var(--rg-primary-900);
  border-radius: var(--rg-radius-md);
  font-weight: 600;
  font-family: var(--rg-font);
  cursor: pointer;
}
.book-call:hover {
  background: var(--rg-primary-50);
}

/* Visão técnica (abas por chave sk_). */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--rg-primary-100);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tab {
  background: none;
  border: 0;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--rg-neutral-600);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin: 0;
  font-family: var(--rg-font);
}
.tab-on {
  color: var(--rg-primary-500);
  border-bottom-color: var(--rg-primary-500);
}

label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 600;
  font-size: 0.9rem;
}
input,
select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: var(--rg-font);
  border: 1px solid var(--rg-primary-100);
  border-radius: var(--rg-radius-md);
  background: #fff;
}
input[type="color"] {
  width: 64px;
  height: 40px;
  padding: 4px;
}
input:focus,
select:focus {
  outline: 2px solid var(--rg-accent-500);
  border-color: transparent;
}
button {
  margin-top: 14px;
  padding: 11px 18px;
  font-weight: 700;
  color: #fff;
  font-family: var(--rg-font);
  background: var(--rg-primary-900);
  border: 0;
  border-radius: var(--rg-radius-md);
  cursor: pointer;
}
button:hover {
  background: var(--rg-primary-700);
}
button.link {
  background: none;
  color: var(--rg-primary-500);
  text-decoration: underline;
  padding: 4px 0;
  margin: 0;
}
.button-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--rg-primary-500);
  font-weight: 700;
}
a {
  color: var(--rg-secondary-600);
}
.row {
  display: flex;
  gap: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th,
td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--rg-primary-50);
  vertical-align: top;
}
.mono {
  font-family: var(--rg-mono);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
pre.mono {
  background: var(--rg-primary-25, #f6f8fb);
  border: 1px solid var(--rg-primary-50);
  border-radius: var(--rg-radius-md);
  padding: 10px 12px;
  white-space: pre-wrap;
}
.small {
  max-width: 320px;
  overflow-wrap: anywhere;
}
.fine {
  color: var(--rg-neutral-600);
  font-size: 0.85rem;
}
.notice {
  color: #7a5200;
  background: #fff6e3;
  padding: 10px 12px;
  border-radius: var(--rg-radius-md);
  margin-top: 12px;
}
.secret {
  background: #fff8e6;
  border: 1px dashed #c99700;
  padding: 12px;
  border-radius: var(--rg-radius-md);
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.progress {
  height: 10px;
  background: var(--rg-primary-50);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--rg-secondary-500);
}
ul.cert {
  list-style: none;
  padding: 0;
}
ul.cert li {
  padding: 6px 0;
}
ul.cert li.done {
  color: #157347;
  font-weight: 600;
}

/* Ambiente na CARA (decisão 23/08): sandbox é âmbar, produção é verde —
   impossível confundir onde se está. */
.envbar {
  max-width: 880px;
  margin: 0 auto 14px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-radius: var(--rg-radius-md);
}
.envbar-sandbox {
  background: #fff3d6;
  color: #7a5200;
  border: 1px solid #e0a800;
}
.envbar-live {
  background: #e7f5ee;
  color: #0d5c38;
  border: 1px solid #157347;
}
.screen .envbar {
  margin: -28px -28px 16px;
  border: 0;
  border-radius: var(--rg-radius-xl) var(--rg-radius-xl) 0 0;
}
.screen.env-sandbox {
  border-color: #e0a800;
}
.screen.env-live {
  border-color: #157347;
}
.env-sandbox .tab-on {
  color: #7a5200;
  border-bottom-color: #e0a800;
}
