/* ============================================================
   formato.css — página do formato (formato.html)
   e páginas de conteúdo (comece-aqui.html)
   ============================================================ */

/* ---------- cabeçalho do formato ---------- */

.f-cab {
  padding: 26px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.f-volta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tx-medio);
  margin-bottom: 12px;
}

.f-selos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.f-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--tx-fraco);
  font-variant-numeric: tabular-nums;
}

.f-cab h1 {
  font-size: clamp(27px, 7.4vw, 42px);
  margin-bottom: 10px;
}

.f-linha {
  font-size: 15.5px;
  color: var(--tx-medio);
}
.f-linha b { color: var(--tx); font-weight: 700; }
.f-linha .sep { color: var(--line-forte); margin: 0 7px; }

.f-nicho {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--tx-fraco);
}

/* ---------- abas ---------- */

.abas {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  position: sticky;
  top: 62px;
  z-index: 30;
  background: var(--bg);
  padding: 8px 0;
}

.aba {
  flex: 1;
  min-height: 50px;
  border: 1.5px solid var(--line-forte);
  border-radius: var(--r);
  background: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .03em;
}
.aba[aria-selected="true"] {
  background: var(--tx);
  border-color: var(--tx);
  color: #fff;
}

.painel[hidden] { display: none; }

/* ---------- seções ---------- */

.sec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 20px 18px;
  margin-bottom: 14px;
}

.sec > h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--tx-fraco);
  margin-bottom: 14px;
}

.sec p, .sec li { font-size: 16px; }

.prosa p { color: var(--tx-medio); }
.prosa p b, .prosa p strong { color: var(--tx); }

/* listas de bala */
.lista-bala {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}
.lista-bala li {
  position: relative;
  padding-left: 17px;
  color: var(--tx-medio);
}
.lista-bala li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--line-forte);
}

/* listas com título em negrito (por que funciona / o que mata) */
.lista-tit {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 15px;
  counter-reset: n;
}
.lista-tit li { color: var(--tx-medio); }
.lista-tit b {
  color: var(--tx);
  font-weight: 800;
}
.lista-tit.num li { counter-increment: n; padding-left: 27px; position: relative; }
.lista-tit.num li::before {
  content: counter(n) ".";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--cat, var(--tx-fraco));
  font-variant-numeric: tabular-nums;
}

/* ritmo em destaque */
.ritmo-forte {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: 8px;
}

/* ponte para a aba aplicação */
.ponte {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  border-radius: var(--r);
  background: var(--grad);
  color: #fff;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: var(--sh-alto);
  margin-bottom: 14px;
}
.ponte:active { transform: translateY(1px); }

/* ---------- progresso do checklist ---------- */

.progresso {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.progresso-topo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 9px;
}
.progresso-rotulo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--tx-fraco);
}
.progresso-conta {
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.barra {
  height: 8px;
  border-radius: 999px;
  background: #EDEDF0;
  overflow: hidden;
}
.barra i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  transition: width .2s ease;
}

.progresso-fim {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #0F8A4A;
}

/* ---------- story ---------- */

.story {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 16px;
  margin-bottom: 12px;
}

.story-cab {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}

.story-badge {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--cat, var(--tx));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.story-nome {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  min-width: 0;
}

.story-horario {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-forte);
  background: #F7F7F9;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--tx-medio);
  white-space: nowrap;
}

.story-funcao {
  font-size: 14.5px;
  color: var(--tx-fraco);
  margin-bottom: 12px;
  padding-left: 40px;
}

/* A COPY — o que a aluna veio buscar */
.copy-bloco {
  background: var(--copy-bg);
  border: 1px solid var(--copy-line);
  border-radius: var(--r);
  padding: 18px 17px;
  margin-bottom: 12px;
}

.copy-texto {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--tx);
  white-space: pre-wrap;
}

/* enquete */
.enquete {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--copy-line);
}
.enquete-rotulo {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tx-fraco);
  margin-bottom: 8px;
}
.enquete-opcoes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.enquete-op {
  flex: 1 1 auto;
  min-width: 110px;
  text-align: center;
  padding: 11px 14px;
  border: 1.5px solid var(--tx);
  border-radius: 999px;
  background: #fff;
  font-size: 15.5px;
  font-weight: 800;
}

.story .btn-copiar { width: 100%; }

/* sustentação */
.sust-nota {
  font-size: 15.5px;
  color: var(--tx-medio);
  margin-bottom: 14px;
}
.sust-item { margin-bottom: 10px; }
.sust-item:last-child { margin-bottom: 0; }
.sust-rotulo {
  font-size: 14px;
  font-weight: 800;
  color: var(--tx-medio);
  margin-bottom: 5px;
}
.sust-item .copy-bloco { margin-bottom: 8px; padding: 13px 15px; }
.sust-item .copy-texto { font-size: 16.5px; }
.sust-item .btn-copiar { width: 100%; min-height: 42px; font-size: 14px; }

/* copiar sequência inteira */
.copiar-tudo {
  margin-bottom: 16px;
}
.copiar-tudo .btn-copiar {
  width: 100%;
  min-height: 52px;
}

/* ---------- o prompt ---------- */

.sec-prompt {
  border-color: var(--line-forte);
}

.prompt-intro {
  font-size: 15.5px;
  color: var(--tx-medio);
  margin-bottom: 14px;
}

.prompt-caixa {
  background: #14141A;
  border-radius: var(--r);
  padding: 16px 15px;
  margin-bottom: 14px;
  max-height: 420px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.prompt-caixa pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.62;
  color: #E8E8EF;
  /* pre-wrap em vez de pre: nada de scroll lateral no celular, e nenhuma
     linha do prompt fica escondida. A indentação continua preservada. */
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.prompt-acao .btn-grad { width: 100%; }

/* botão do prompt fixo no rodapé enquanto o bloco está na tela */
.prompt-fixo {
  position: fixed;
  left: 12px; right: 12px;
  bottom: 12px;
  z-index: 50;
  display: none;
}
.prompt-fixo.on { display: block; }
.prompt-fixo .btn-grad { width: 100%; }

/* ---------- prints ---------- */

.prints {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}

.print {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #F3F3F6;
  overflow: hidden;
}
/* o print fica por cima do placeholder; se não carregar, o JS o remove
   e o número aparece */
.print img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.print .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 2px;
  color: var(--tx-fraco);
}
.print .ph b {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--line-forte);
}

/* ---------- checklist ---------- */

.check-lista {
  display: grid;
  gap: 8px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  line-height: 1.45;
  color: var(--tx);
}
.check:active { background: #F7F7F9; }

.check-box {
  flex-shrink: 0;
  width: 24px; height: 24px;
  margin-top: 1px;
  border: 2px solid var(--line-forte);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  color: transparent;
}
.check[aria-checked="true"] {
  background: #F3FAF5;
  border-color: #BEE5CC;
}
.check[aria-checked="true"] .check-box {
  background: #0F8A4A;
  border-color: #0F8A4A;
  color: #fff;
}
.check[aria-checked="true"] .check-txt {
  color: var(--tx-fraco);
  text-decoration: line-through;
  text-decoration-color: #BEE5CC;
}

.check-recomecar {
  margin-top: 14px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line-forte);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tx-medio);
}

/* ---------- adaptação ---------- */

.adapta { display: grid; gap: 15px; }
.adapta-item { color: var(--tx-medio); font-size: 16px; }
.adapta-item b { color: var(--tx); font-weight: 800; }

/* ============================================================
   COMECE AQUI
   ============================================================ */

.pg-cab { padding: 30px 0 20px; }
.pg-cab h1 { font-size: clamp(28px, 7.4vw, 42px); }
.pg-cab p { margin-top: 10px; font-size: 16.5px; color: var(--tx-medio); }

.ca-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 22px 18px;
  margin-bottom: 14px;
}

.ca-card > h2 {
  font-size: 21px;
  letter-spacing: -.024em;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.ca-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 20px 0 10px;
}

.ca-card p { color: var(--tx-medio); }

.defs { display: grid; gap: 10px; margin-bottom: 4px; }
.def {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-forte);
  background: #FCFCFD;
  font-size: 16px;
  color: var(--tx-medio);
}
.def b {
  display: block;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--tx);
  margin-bottom: 1px;
}
.def[data-cat="VENDAS"] { border-left-color: var(--c-vendas); }
.def[data-cat="VENDAS"] b { color: var(--c-vendas); }
.def[data-cat="VISUALIZACOES"] { border-left-color: var(--c-visualizacoes); }
.def[data-cat="VISUALIZACOES"] b { color: var(--c-visualizacoes); }
.def[data-cat="INTERACAO"] { border-left-color: var(--c-interacao); }
.def[data-cat="INTERACAO"] b { color: var(--c-interacao); }
.def[data-cat="AUTORIDADE"] { border-left-color: var(--c-autoridade); }
.def[data-cat="AUTORIDADE"] b { color: var(--c-autoridade); }

.passos {
  margin: 0; padding: 0;
  list-style: none;
  counter-reset: p;
  display: grid;
  gap: 11px;
}
.passos li {
  counter-increment: p;
  position: relative;
  padding-left: 34px;
  color: var(--tx-medio);
}
.passos li::before {
  content: counter(p);
  position: absolute;
  left: 0; top: 1px;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: #F1F1F4;
  color: var(--tx);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.ca-destaque {
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: var(--r);
  border: 1px solid var(--copy-line);
  background: var(--copy-bg);
  font-size: 16px;
  color: var(--tx);
}

/* tabela responsiva (semana modelo) */
.tab-lista { display: grid; gap: 9px; }
.tab-linha {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #FCFCFD;
  padding: 12px 14px;
}
.tab-dia {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--tx-fraco);
  margin-bottom: 3px;
}
.tab-seq {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 3px;
}
.tab-obj { font-size: 15px; color: var(--tx-medio); }

/* tabela de sintomas dentro do comece aqui */
.ca-sintomas { display: grid; gap: 8px; }

@media (min-width: 760px) {
  .sec, .ca-card { padding: 26px 24px; }
  .story { padding: 20px; }
  .copy-bloco { padding: 22px 22px; }
  .copy-texto { font-size: 19px; }
  .prompt-caixa pre { font-size: 13.5px; }
  .prompt-fixo { display: none !important; }
  .abas { position: static; padding: 0; }
  .prints { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
}
