/* /precos-2002-2026 · Comida em 2002 vs 2026.
   Usa o estilo.css do site (Ignição) e acrescenta o herói, os gráficos e a tabela.
   Cores dos gráficos: verde = mais barato, laranja = mais caro (o laranja da marca no Palco, o tom de texto no Papel). */

.secao, .pheroi {
  --g-texto: var(--creme);
  --g-mudo: var(--creme-2);
  --g-fundo: var(--carvao);
  --g-linha: rgba(245, 239, 230, .13);
  --g-eixo: rgba(245, 239, 230, .55);
  --g-barato: #8CC48A;
  --g-caro: var(--laranja);
  --g-oficial: var(--creme-2);
  --g-dica-fundo: var(--creme);
  --g-dica-texto: var(--carvao);
}
.papel {
  --g-texto: var(--carvao);
  --g-mudo: var(--cinza);
  --g-fundo: var(--papel);
  --g-linha: rgba(20, 17, 15, .1);
  --g-eixo: rgba(20, 17, 15, .55);
  --g-barato: #2F7A47;
  --g-caro: #B8461B;
  --g-oficial: var(--carvao);
  --g-dica-fundo: var(--carvao);
  --g-dica-texto: var(--creme);
}

/* ---------- herói ---------- */
.pheroi {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px var(--margem) clamp(132px, 14vw, 180px);
  background:
    radial-gradient(ellipse 55% 55% at 82% 26%, rgba(245, 130, 31, .17), transparent 70%),
    var(--carvao);
}
.pheroi__dentro { position: relative; max-width: var(--largura); margin: 0 auto; }
.pheroi__topo { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pheroi__casa {
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--creme-2);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.pheroi__casa:hover { color: var(--laranja); }
.pheroi__texto { padding-top: clamp(56px, 9vw, 112px); }
.pheroi__titulo {
  font-family: var(--titulo);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(44px, 15vw, 116px);
  line-height: .88;
  letter-spacing: -.01em;
  margin-top: 18px;
}
.pheroi__titulo .w { display: inline-block; }
.pheroi__linha { white-space: nowrap; }

/* a ilustração do herói, no mesmo molde da home: em cima no celular, à direita no computador */
.pheroi { --foto-h: min(100vw, 560px); }
.pheroi__foto {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--foto-h);
  z-index: -1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 42%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 42%, transparent 100%);
}
.pheroi__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.pheroi__foto::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 17, 15, .6) 0%, transparent 24%);
}
.pheroi--foto .pheroi__texto { padding-top: calc(var(--foto-h) - 210px); }
@media (min-width: 960px) {
  .pheroi--foto { min-height: 100svh; }
  .pheroi__foto {
    left: auto;
    width: 60%;
    height: auto;
    bottom: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 28%, #000 58%), linear-gradient(to top, transparent 0%, #000 30%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 28%, #000 58%), linear-gradient(to top, transparent 0%, #000 30%);
    mask-composite: intersect;
  }
  .pheroi__foto img { object-position: 55% 35%; }
  .pheroi--foto .pheroi__texto { padding-top: clamp(56px, 8vw, 104px); max-width: 720px; }
  .pheroi--foto .placar { max-width: 640px; }
  .pheroi--foto .pheroi__lead { max-width: 28ch; }
}
.pheroi__lead {
  font-family: var(--serifa);
  font-style: italic;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  text-wrap: balance;
  margin-top: 26px;
  max-width: 32ch;
}
.pheroi__lead b { font-weight: 400; color: var(--laranja); white-space: nowrap; }

.placar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.4vw, 32px);
  margin-top: clamp(34px, 4.5vw, 52px);
  max-width: 880px;
}
.placar__item { border-top: 2px solid rgba(245, 239, 230, .18); padding-top: 14px; }
.placar__pais {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--creme-2);
}
.placar__num {
  display: block;
  margin-top: 8px;
  font-family: var(--titulo);
  font-weight: 800;
  font-size: clamp(46px, 6.4vw, 88px);
  line-height: .9;
  font-variant-numeric: tabular-nums;
}
.placar__num b { color: var(--laranja); font-weight: 800; }
.placar__de { font-size: .48em; color: var(--creme-2); letter-spacing: .02em; }
.placar__rot { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; color: var(--creme-2); }
.pheroi .heroi__acoes { margin-top: clamp(32px, 4vw, 44px); }
.tarja--pe { top: auto; bottom: clamp(30px, 4vw, 54px); }

.aviso {
  margin: 0;
  padding: 16px var(--margem);
  background: var(--laranja);
  color: var(--carvao);
  font-weight: 600;
}

/* ---------- peças comuns ---------- */
.papel .titulo-secao em { color: var(--cinza); }
.cabeca { margin-bottom: clamp(32px, 4vw, 48px); }
.nota { margin-top: 20px; max-width: 72ch; font-size: 14px; line-height: 1.55; color: var(--g-mudo); }
/* a nota fica alinhada à esquerda da coluna de 1200 px, e não centrada */
.secao > .nota { margin-left: max(0px, calc((100% - var(--largura)) / 2)); margin-right: auto; }
.legenda { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--g-mudo); }
.legenda span { display: inline-flex; align-items: center; }
.amostra { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 8px; flex: none; }
.amostra--barato { background: var(--g-barato); }
.amostra--caro { background: var(--g-caro); }
.amostra--oficial { background: var(--g-oficial); }
.amostra--2002 { border-radius: 50%; border: 2.5px solid var(--g-mudo); }
.amostra--2026 { border-radius: 50%; background: var(--g-texto); }

/* ---------- gráficos ---------- */
.grafico { position: relative; width: 100%; min-height: 120px; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafico text { font-family: var(--corpo); font-size: 14px; fill: var(--g-texto); }
.g-rot { font-size: 15px; font-weight: 500; }
.g-mudo { fill: var(--g-mudo); }
.grafico .g-peq { font-size: 13px; }
.g-valor { font-weight: 600; font-variant-numeric: tabular-nums; }
.grafico .g-destaque { fill: var(--g-caro); font-weight: 600; }
.grafico .g-grupo { font-family: var(--titulo); font-weight: 800; font-size: 22px; letter-spacing: .03em; text-transform: uppercase; }
.grafico .g-sem { font-style: italic; }
.g-barato { fill: var(--g-barato); }
.g-caro { fill: var(--g-caro); }
.g-oficial { fill: var(--g-oficial); }
.g-grade { stroke: var(--g-linha); stroke-width: 1; }
.g-zero { stroke: var(--g-eixo); stroke-width: 1.5; }
.g-separa { stroke: var(--g-linha); stroke-width: 1; }
.g-alvo { fill: transparent; cursor: pointer; }
.g-alvo:hover { fill: var(--g-linha); }
.g-haste { stroke-width: 4; stroke-linecap: round; }
.g-haste--barato { stroke: var(--g-barato); }
.g-haste--caro { stroke: var(--g-caro); }
.g-ponto-2002 { fill: var(--g-fundo); stroke: var(--g-mudo); stroke-width: 2.5; }
.g-ponto-2026 { fill: var(--g-texto); }

.dica {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  max-width: 270px;
  padding: 12px 14px;
  border-radius: 4px;
  background: var(--g-dica-fundo);
  color: var(--g-dica-texto);
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 14px 32px -14px rgba(0, 0, 0, .55);
}
.dica[hidden] { display: none; }
.dica strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--titulo);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.dica p + p { margin-top: 2px; }
.dica b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dica .dica__nota { margin-top: 8px; font-size: 13px; opacity: .8; }

/* ---------- recibo ---------- */
.recibo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.recibo__p { margin-top: 18px; font-size: 18px; color: var(--cinza); max-width: 46ch; }
.recibo__p:first-of-type { margin-top: 28px; }
.recibo__p b { color: var(--carvao); font-weight: 600; white-space: nowrap; }
.recibo__p a { color: var(--laranja-texto); }
.recibo__p a:hover { color: var(--carvao); }
.recibo__grafico .legenda { margin-bottom: 18px; }
.recibo__direita { display: grid; gap: clamp(36px, 4vw, 52px); }
.recibo__foto { display: flex; align-items: flex-end; gap: clamp(20px, 2.4vw, 32px); }
.recibo__img {
  position: relative;
  flex: none;
  width: min(300px, 48%);
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 24px 44px -26px rgba(20, 17, 15, .6);
}
.recibo__img img { width: 100%; height: auto; }
/* a tarja "feito com IA" cruza a imagem de borda a borda, por cima dos logotipos */
.recibo__carimbo {
  position: absolute;
  left: -15%;
  right: -15%;
  top: 25%;
  transform: rotate(-4deg);
  padding: 7px 0;
  background: var(--laranja);
  color: var(--carvao);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  font-family: var(--titulo);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 16px -6px rgba(20, 17, 15, .45);
}
.recibo__carimbo b { padding: 0 .5em; }
.recibo__credito { max-width: 34ch; font-size: 14px; line-height: 1.5; color: var(--cinza); }
.recibo__credito-titulo { display: block; margin-bottom: 8px; font-family: var(--titulo); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; color: var(--carvao); }
.recibo__credito a { color: var(--laranja-texto); }
.recibo__credito a:hover { color: var(--carvao); }

/* ---------- salário mínimo ---------- */
.salarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.salario {
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--carvao-2);
  border: 1px solid rgba(245, 239, 230, .08);
  border-radius: 6px;
}
.salario__pais { font-family: var(--titulo); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; }
.salario__periodo { margin-top: 6px; font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--creme-2); }
.salario__valor {
  margin-top: 22px;
  font-family: var(--titulo);
  font-weight: 800;
  font-size: clamp(50px, 5.4vw, 76px);
  line-height: .95;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.salario__antes { margin-top: 6px; font-size: 15px; color: var(--creme-2); }
.salario__barra { height: 10px; margin-top: 22px; border-radius: 5px; background: rgba(245, 239, 230, .1); overflow: hidden; }
.salario__barra i { display: block; height: 100%; border-radius: 5px; background: var(--laranja); }
.salario__alta { margin-top: 10px; font-family: var(--serifa); font-style: italic; font-size: 26px; line-height: 1.1; color: var(--laranja); }
.salario__alta span { font-size: 18px; color: var(--creme-2); }

/* ---------- horas: seletor ---------- */
.controlos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 28px;
  margin-bottom: 22px;
}
.seletor { display: inline-flex; padding: 3px; border: 2px solid var(--carvao); border-radius: 999px; }
.seletor button {
  min-height: 44px;
  padding: 6px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--carvao);
  font-family: var(--titulo);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.seletor button:hover { color: var(--laranja-texto); }
.seletor button[aria-pressed="true"] { background: var(--carvao); color: var(--creme); }

/* ---------- minutos ---------- */
.legenda--minutos { margin-bottom: 28px; }
.paineis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.painel__titulo {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245, 239, 230, .14);
  font-family: var(--titulo);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}
.painel__titulo span { font-family: var(--serifa); font-style: italic; font-weight: 400; font-size: 20px; text-transform: none; color: var(--creme-2); }

/* ---------- tabela (5 colunas; no celular, um cartão por item) ---------- */
.tabela-caixa {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--areia-escura);
  border-radius: 6px;
  background: #FFFDF9;
}
.tabela { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.tabela th, .tabela td { padding: 12px 18px; border-bottom: 1px solid var(--areia); text-align: right; vertical-align: middle; }
.tabela thead th {
  background: var(--papel);
  color: var(--cinza);
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .05em;
  line-height: 1.1;
  text-transform: uppercase;
  vertical-align: bottom;
}
.tabela th:first-child, .tabela td:first-child { text-align: left; }
.tabela td { white-space: nowrap; }
.t-pais th {
  padding-top: 22px;
  background: #FFFDF9;
  border-bottom: 2px solid var(--carvao);
  text-align: left;
}
.t-pais__nome { font-family: var(--titulo); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; color: var(--carvao); margin-right: 14px; }
.t-pais__info { font-family: var(--serifa); font-style: italic; font-size: 19px; color: var(--cinza); }
.t-item { white-space: normal; }
.t-item__nome { display: block; font-weight: 600; color: var(--carvao); }
.t-item__sub { display: block; margin-top: 2px; font-size: 13px; color: var(--cinza); }
.tabela tbody tr:last-child td { border-bottom: 0; }
.tabela .t-barato { color: var(--g-barato); font-weight: 700; }
.tabela .t-caro { color: var(--g-caro); font-weight: 700; }
.tabela .t-nd { color: var(--cinza); }

@media (max-width: 640px) {
  .tabela-caixa { overflow: visible; border: 0; background: transparent; }
  .tabela, .tabela tbody, .tabela tr, .tabela th, .tabela td { display: block; width: 100%; }
  .tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .t-pais th { padding: 26px 0 10px; background: transparent; }
  .t-pais__nome { display: block; font-size: 28px; }
  .t-pais__info { display: block; margin-top: 4px; }
  .tabela tr.t-linha {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-top: 10px;
    padding: 16px;
    background: #FFFDF9;
    border: 1px solid var(--areia-escura);
    border-radius: 6px;
  }
  .tabela td { padding: 0; border: 0; text-align: left; white-space: normal; }
  .tabela td.t-item { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid var(--areia); }
  .tabela td.t-item .t-item__nome { font-size: 17px; }
  .tabela td:not(.t-item)::before {
    content: attr(data-rotulo);
    display: block;
    margin-bottom: 2px;
    font-family: var(--titulo);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cinza);
  }
  .tabela td.t-barato::before, .tabela td.t-caro::before { font-weight: 700; color: var(--cinza); }
}

/* ---------- como ler ---------- */
.notas details { border-top: 1px solid rgba(245, 239, 230, .14); border-bottom: 1px solid rgba(245, 239, 230, .14); }
.notas summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
}
.notas summary::-webkit-details-marker { display: none; }
.notas__titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--titulo);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: .95;
  text-transform: uppercase;
}
.notas__titulo::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--laranja);
  color: var(--carvao);
  font-size: 36px;
  line-height: 1;
  transition: transform .25s ease;
}
.notas details[open] .notas__titulo::after { content: "−"; }
.notas summary:hover .notas__titulo::after { transform: rotate(90deg); }
.notas__corpo { max-width: 78ch; padding-bottom: 44px; color: var(--creme-2); }
.notas__corpo h3 {
  margin: 34px 0 12px;
  font-family: var(--titulo);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--creme);
}
.notas__corpo h3:first-child { margin-top: 0; }
.notas__corpo p + p { margin-top: 12px; }
.notas__corpo ol, .notas__corpo ul { padding-left: 22px; }
.notas__corpo ol { list-style: decimal; }
.notas__corpo ul { list-style: disc; }
.notas__corpo li + li { margin-top: 8px; }
.notas__corpo li::marker { color: var(--laranja); }
.formulas { margin: 12px 0 16px; }
.formulas code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  color: var(--creme);
  background: var(--carvao-3);
  padding: 3px 8px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.conversa__casa { margin-top: 36px; }

/* ---------- ecrãs menores ---------- */
@media (max-width: 960px) {
  .recibo { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .salarios, .paineis { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .placar { gap: 10px; }
  .placar__rot { font-size: 12.5px; }
  .placar__pais { font-size: 11px; letter-spacing: .14em; }
  .recibo__p { font-size: 16px; }
  .recibo__foto { flex-direction: column; align-items: flex-start; }
  .recibo__img { width: 100%; max-width: 360px; }
  .seletor { width: 100%; }
  .seletor button { flex: 1; padding-inline: 10px; }
  .notas__titulo::after { width: 44px; height: 44px; font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .seletor button, .notas__titulo::after { transition: none; }
}
