/* Prova Inteira — site. Tokens de conteudo/marca/tokens.css (guia de marca §5).
   Layout: coluna de leitura à esquerda (≤ 66 ch), produto mostrado como páginas A4 sobre a mesa (névoa); cantos retos. */

@font-face { font-family: "Schibsted Grotesk"; src: url("fontes/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fontes/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fontes/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fontes/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fontes/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --papel: #FFFFFF;
  --nevoa: #EEF0F2;
  --linha: #D7DCE1;
  --grafite: #55606B;
  --tinta: #111418;
  --marca-texto: #F2D33D;
  --fonte: "Schibsted Grotesk", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --sombra-pagina: 0 1px 2px rgba(17, 20, 24, 0.16);
  --largura: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tinta); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 52px); line-height: 1.06; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.mono, code { font-family: var(--mono); font-size: 0.86em; }
.num { font-variant-numeric: tabular-nums; }
.trecho { background: var(--marca-texto); color: var(--tinta); padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Faixas de largura total; o recuo lateral fica no .dentro */
.faixa { padding-block: 72px; }
.faixa.mesa { background: var(--nevoa); }
.faixa.escura { background: var(--tinta); color: var(--papel); }
.faixa.escura a { color: var(--papel); }
.dentro {
  max-width: var(--largura);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.leitura { max-width: 66ch; display: flex; flex-direction: column; gap: 16px; }
.leitura > p { color: #2E353D; }
.rotulo { font-family: var(--mono); font-size: 13px; color: var(--grafite); }
.escura .rotulo { color: #C4CBD2; }

/* Cabeçalho */
.topo { border-bottom: 1px solid var(--linha); background: var(--papel); }
.topo .dentro { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.topo .logo img { height: 30px; width: auto; }
.topo nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.topo nav a { text-decoration: none; }
.topo nav a:hover { text-decoration: underline; }
@media (max-width: 720px) { .topo nav .secundario { display: none; } .topo .dentro { flex-wrap: nowrap; } .topo .logo img { height: 24px; } }
@media (max-width: 420px) { .topo .longo { display: none; } }

/* Botões: tinta com texto branco; o secundário é contorno */
.botoes { display: flex; gap: 12px; flex-wrap: wrap; }
.botao {
  display: inline-flex; align-items: center; min-height: 48px; padding: 12px 20px;
  background: var(--tinta); color: var(--papel); text-decoration: none; font-weight: 500; font-size: 16px;
  border: 2px solid var(--tinta);
}
.botao:hover { background: #2A313A; border-color: #2A313A; text-decoration: none; }
.botao.contorno { background: transparent; color: var(--tinta); }
.botao.contorno:hover { background: var(--nevoa); }
.escura .botao { background: var(--papel); color: var(--tinta); border-color: var(--papel); }
.topo .botao { min-height: 44px; padding: 8px 16px; font-size: 15px; }

/* Abertura: tese à esquerda, a transformação à direita */
.abertura { padding-block: 64px 72px; }
.abertura .dentro { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.abertura .tese { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.abertura .tese .apoio { font-size: 19px; color: #2E353D; max-width: 34em; }
.abertura .tese .local { font-size: 15px; color: var(--grafite); }
@media (max-width: 900px) { .abertura .dentro { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.transformacao { display: grid; grid-template-columns: minmax(0, 0.8fr) 28px minmax(0, 1.2fr); align-items: center; gap: 10px; }
.transformacao .seta { font-family: var(--mono); color: var(--grafite); text-align: center; font-size: 20px; }
@media (max-width: 560px) {
  .transformacao { grid-template-columns: minmax(0, 1fr); }
  .transformacao .seta { transform: rotate(90deg); }
}
.bruto { background: var(--nevoa); padding: 16px; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: #2E353D; display: flex; flex-direction: column; gap: 8px; overflow-wrap: anywhere; }
.bruto .rotulo { font-size: 11px; }
.pagina-demo { background: var(--papel); box-shadow: var(--sombra-pagina); border: 1px solid var(--linha); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.pagina-demo .cab { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--grafite); border-bottom: 1px solid var(--linha); padding-bottom: 8px; }
.msg { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 8px; font-size: 13.5px; line-height: 1.45; }
.msg .n { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.msg .meta { font-family: var(--mono); font-size: 10.5px; color: var(--grafite); }
.msg .corpo { grid-column: 2; }
.msg .audio { grid-column: 2; font-family: var(--mono); font-size: 10.5px; color: var(--grafite); }
.msg .transc { grid-column: 2; border-left: 2px solid var(--linha); padding-left: 8px; }
.pagina-demo .pe { font-family: var(--mono); font-size: 9.5px; color: var(--grafite); border-top: 1px solid var(--linha); padding-top: 8px; overflow-wrap: anywhere; }

/* Listas simples */
.lista { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lista li { padding-left: 22px; position: relative; }
.lista li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--tinta); }

/* Páginas do dossiê sobre a mesa */
.entregaveis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
@media (max-width: 860px) { .entregaveis { grid-template-columns: minmax(0, 1fr); max-width: 460px; } }
.entregaveis figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.entregaveis figure img { background: var(--papel); box-shadow: var(--sombra-pagina); aspect-ratio: 909 / 1287; width: 100%; }
.entregaveis figcaption { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: #2E353D; }
.entregaveis figcaption strong { color: var(--tinta); font-size: 17px; }
.tambem { margin-top: 56px; display: flex; flex-direction: column; gap: 20px; }
.tambem dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
@media (max-width: 760px) { .tambem dl { grid-template-columns: minmax(0, 1fr); } }
.tambem dl > div { border-top: 1px solid var(--linha); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.tambem dt { font-weight: 700; }
.tambem dd { margin: 0; color: #2E353D; font-size: 16px; }

/* Tabelas */
.tabela { overflow-x: auto; margin-top: 28px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--linha); }
thead th { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--grafite); border-bottom: 2px solid var(--tinta); }
.escura table th, .escura table td { border-color: #3A424B; }
.escura thead th { color: #C4CBD2; border-bottom-color: var(--papel); }
td.destaque, th.destaque { background: var(--nevoa); padding-left: 14px; }
.valor { font-weight: 700; font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fonte { margin-top: 14px; font-size: 13.5px; color: var(--grafite); }
.escura .fonte { color: #C4CBD2; }

/* Passos (sequência real: a numeração é informação) */
.passos { counter-reset: passo; list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .passos { grid-template-columns: minmax(0, 1fr); } }
.passos li { counter-increment: passo; border-top: 2px solid var(--tinta); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.passos li::before { content: counter(passo); font-family: var(--mono); font-size: 13px; color: var(--grafite); }

/* Duas colunas de texto */
.duas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
@media (max-width: 860px) { .duas { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* Perguntas */
.perguntas { margin-top: 24px; border-top: 1px solid var(--linha); max-width: 72ch; }
.perguntas details { border-bottom: 1px solid var(--linha); }
.perguntas summary { cursor: pointer; padding: 16px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: "+"; font-family: var(--mono); color: var(--grafite); }
.perguntas details[open] summary::after { content: "−"; }
.perguntas details p { padding-bottom: 18px; color: #2E353D; max-width: 66ch; }

/* Rodapé */
.rodape { border-top: 1px solid var(--linha); padding-block: 32px 40px; font-size: 14px; color: var(--grafite); }
.rodape .dentro { display: flex; flex-direction: column; gap: 10px; }
.rodape nav { display: flex; gap: 20px; flex-wrap: wrap; }
.rodape a { color: var(--grafite); }

/* Páginas de texto (como exportar, privacidade) */
.documento { padding-block: 56px 72px; }
.documento .leitura h2 { margin-top: 24px; font-size: 24px; }
.documento .leitura h3 { margin-top: 8px; }
.documento ol, .documento ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.documento ol li::marker { font-family: var(--mono); font-size: 0.9em; color: var(--grafite); }
.caixa { background: var(--nevoa); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.menu { font-weight: 500; }

/* Recortes reais do dossiê: o que fica documentado */
.faixa .dentro > h2 + * { margin-top: 36px; }
.detalhes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; align-items: start; }
@media (max-width: 760px) { .detalhes { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.detalhes figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.folha { background: var(--papel); box-shadow: var(--sombra-pagina); border: 1px solid var(--linha); padding: 14px 16px; }
.folha img { width: 100%; }
.detalhes figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 15.5px; color: #2E353D; }
.detalhes figcaption strong { color: var(--tinta); font-size: 17px; }
.extras { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--linha); font-size: 15px; color: var(--grafite); max-width: 80ch; }
.entregaveis figcaption { gap: 2px; }

/* Única animação da página: a conversa vira página e o trecho citado é marcado */
@media (prefers-reduced-motion: no-preference) {
  .pagina-demo .msg { animation: entra 0.5s ease-out both; }
  .pagina-demo .m1 { animation-delay: 0.15s; }
  .pagina-demo .m2 { animation-delay: 0.45s; }
  .pagina-demo .m3 { animation-delay: 0.75s; }
  .trecho.varre {
    background: linear-gradient(var(--marca-texto), var(--marca-texto)) no-repeat 0 0 / 0% 100%;
    animation: varre 0.9s ease-in-out 1.3s forwards;
  }
}
@keyframes entra { from { opacity: 0.25; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes varre { to { background-size: 100% 100%; } }
