/* Site de apresentação. Linguagem: folha de projeto. Papel branco, tinta grafite, fio fino, um só azul. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fontes/barlow-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fontes/barlow-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fontes/barlow-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fontes/barlow-semi-condensed-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fontes/barlow-semi-condensed-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fontes/geist-mono-latin.woff2") format("woff2"); }

:root {
  --papel: oklch(0.992 0.002 262);
  --branco: oklch(1 0 0);
  --fundo: oklch(0.966 0.004 262);
  --linha: oklch(0.905 0.006 262);
  --linha-forte: oklch(0.8 0.012 262);
  --tinta: oklch(0.21 0.018 262);
  --tinta-2: oklch(0.43 0.018 262);
  --grafite: oklch(0.205 0.022 262);
  --grafite-2: oklch(0.27 0.024 262);
  --sobre-grafite: oklch(0.82 0.014 262);
  --fio-grafite: oklch(1 0 0 / 0.18);
  --azul: oklch(0.45 0.17 262);
  --azul-claro: oklch(0.78 0.11 258);
  --azul-suave: oklch(0.955 0.022 262);
  --ok: oklch(0.42 0.12 152);
  --ok-suave: oklch(0.95 0.04 152);
  --alerta: oklch(0.43 0.09 68);
  --alerta-suave: oklch(0.95 0.055 88);
  --perigo: oklch(0.48 0.19 27);
  --perigo-suave: oklch(0.955 0.028 27);
  --neutro-suave: oklch(0.94 0.006 262);

  --titulo: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --texto: "Barlow", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --saida: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 1.125rem/1.6 var(--texto);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--azul); color: white; }

h1, h2, h3, p, ul, ol, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--titulo); font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); line-height: 1.06; letter-spacing: -0.012em; max-width: 14ch; }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.15; letter-spacing: -0.005em; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; }

:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 2px; }
.escuro :focus-visible { outline-color: white; }

.largura { position: relative; width: min(100% - 2.5rem, 78rem); margin-inline: auto; }

.pular { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.75rem 1rem; background: var(--tinta); color: white; font-weight: 600; }
.pular:focus { top: 1rem; }

/* Curvas de nível da cava: linha fina, ao fundo. */
.curvas {
  position: absolute; inset: 0; pointer-events: none; background: var(--tinta); opacity: 0.11;
  -webkit-mask: url("img/curvas.svg") no-repeat right -14rem top -9rem / 76rem auto;
  mask: url("img/curvas.svg") no-repeat right -14rem top -9rem / 76rem auto;
}
.escuro .curvas { background: white; opacity: 0.09; }

/* ---------- Botões ---------- */

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.6rem 1.35rem; border: 0; border-radius: 2px;
  font: 600 1.0625rem/1.2 var(--texto); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.2s var(--saida), color 0.2s var(--saida), box-shadow 0.2s var(--saida);
}
.botao-cheio { background: var(--tinta); color: white; }
.botao-cheio:hover { background: var(--azul); }
.botao-fio { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linha-forte); }
.botao-fio:hover { box-shadow: inset 0 0 0 1px var(--tinta); }
.botao-claro { background: white; color: var(--tinta); }
.botao-claro:hover { background: var(--azul-suave); }
.botao-fio-claro { background: transparent; color: white; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.45); }
.botao-fio-claro:hover { box-shadow: inset 0 0 0 1px white; }
.botao-texto { min-height: 2.75rem; padding-inline: 0.5rem; background: none; color: var(--tinta-2); font-weight: 500; text-decoration: underline; text-underline-offset: 0.22em; }
.botao-texto:hover { color: var(--tinta); }
.botao-menor { min-height: 2.75rem; font-size: 1rem; }

/* ---------- Selo de estado: quadrado na cor e o estado escrito, como no sistema ---------- */

.selo {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.2rem 0.6rem 0.2rem 0.5rem; border-radius: 2px;
  font: 600 0.9375rem/1.35 var(--texto); white-space: nowrap;
  background: var(--neutro-suave); color: var(--tinta-2);
}
.selo::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; background: currentColor; }
.selo-ok { background: var(--ok-suave); color: var(--ok); }
.selo-alerta { background: var(--alerta-suave); color: var(--alerta); }
.selo-perigo { background: var(--perigo-suave); color: var(--perigo); }
.selo-azul { background: var(--azul-suave); color: var(--azul); }

/* ---------- Topo ---------- */

.topo { position: relative; overflow: hidden; overflow: clip; padding-bottom: clamp(3.5rem, 7vw, 6rem); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; }
.marca { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 2.75rem; text-decoration: none; }
.marca-nome { font: 600 1.5rem/1 var(--titulo); letter-spacing: -0.005em; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.9rem;
  font-weight: 500; font-size: 1.0625rem; text-decoration: none; border-radius: 2px;
}
.nav-links a:hover { text-decoration: underline; }
.nav-links .nav-contato { margin-left: 0.6rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--linha-forte); }
.nav-links .nav-contato:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--tinta); }

.manchete {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 2rem clamp(2rem, 5vw, 5rem);
  padding-top: clamp(2.25rem, 7vh, 5.5rem);
}
h1 { font-size: clamp(3rem, 6.8vw, 6rem); line-height: 0.98; letter-spacing: -0.02em; }
h1 span { display: block; color: var(--azul); }
.manchete-lado { display: grid; gap: 1.5rem; padding-bottom: 0.5rem; }
.sub { max-width: 46ch; font-size: 1.1875rem; line-height: 1.55; color: var(--tinta-2); }
.acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Quadro da semana, no desenho do sistema ---------- */

.quadro { margin-top: clamp(2.75rem, 6vh, 4.5rem); }
.quadro-folha { background: var(--branco); border: 1px solid var(--linha-forte); border-top: 2px solid var(--tinta); }
.quadro-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--linha); }
.quadro-titulo { display: flex; align-items: baseline; gap: 0.8rem; max-width: none; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.005em; }
.quadro-datas { font: 400 1.0625rem/1.2 var(--texto); letter-spacing: 0; color: var(--tinta-2); }
.quadro-conta { font-size: 1.0625rem; color: var(--tinta-2); }
.quadro-conta strong { color: var(--tinta); font-weight: 600; }
.quadro-conta .atraso { color: var(--perigo); font-weight: 600; }
.quadro-botoes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-left: auto; }

.trilho-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sem-js { grid-column: 1 / -1; padding: 2rem 1.25rem; color: var(--tinta-2); }
.dia { min-width: 0; min-height: 19rem; }
.dia + .dia { border-left: 1px solid var(--linha); }
.dia-rotulo {
  display: flex; align-items: baseline; gap: 0.5rem; padding: 0.7rem 0.9rem 0.6rem; border-bottom: 1px solid var(--linha);
  font-size: 1rem; color: var(--tinta-2);
}
.dia-rotulo b { font: 600 1.5rem/1 var(--titulo); color: var(--tinta); }
.dia-hoje { background: var(--azul-suave); }
.dia-hoje .dia-rotulo { color: var(--azul); font-weight: 600; border-bottom-color: oklch(0.86 0.05 262); }
.dia-hoje .dia-rotulo b { color: var(--azul); }

.item { display: grid; justify-items: start; gap: 0.15rem; padding: 0.8rem 0.9rem 0.85rem; }
.item + .item { border-top: 1px solid var(--linha); }
.dia-hoje .item + .item { border-top-color: oklch(0.86 0.05 262); }
.item-tag { font: 600 1.0625rem/1.2 var(--mono); color: var(--azul); }
.item-tipo { font-size: 0.9375rem; line-height: 1.3; color: var(--tinta-2); }
.item .selo { margin-top: 0.45rem; }
.item-nota { margin-top: 0.3rem; font-size: 0.9375rem; line-height: 1.3; color: var(--tinta-2); }
.item-botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; min-height: 2.5rem; margin-top: 0.6rem;
  padding: 0.3rem 0.6rem; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--branco); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linha-forte);
  font: 600 1rem/1.2 var(--texto);
  transition: background-color 0.18s var(--saida), color 0.18s var(--saida), box-shadow 0.18s var(--saida);
}
.item-botao:hover { background: var(--tinta); color: white; box-shadow: inset 0 0 0 1px var(--tinta); }
.item-desfazer {
  min-height: 2.5rem; margin-top: 0.15rem; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 0.9375rem/1.2 var(--texto); color: var(--tinta-2); text-decoration: underline; text-underline-offset: 0.22em;
}
.item-desfazer:hover { color: var(--tinta); }

/* Cota de desenho técnico: a semana mede 7 dias. */
.cota { position: relative; height: 1.25rem; margin-top: 1rem; border-inline: 1px solid var(--linha-forte); }
.cota::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--linha-forte); }
.cota span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0 0.9rem;
  background: var(--papel); font-size: 0.9375rem; line-height: 1; color: var(--tinta-2); white-space: nowrap;
}
.quadro-nota { margin-top: 1rem; max-width: 84ch; font-size: 1rem; color: var(--tinta-2); }

/* ---------- Seções ---------- */

.escuro { position: relative; overflow: hidden; overflow: clip; background: var(--grafite); color: white; }
.video, .pcm, .telas { padding-block: clamp(4.5rem, 9vw, 8rem); }
.secao-cabeca { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 1.5rem clamp(2rem, 5vw, 5rem); }
.secao-cabeca > p { max-width: 56ch; padding-top: 0.5rem; font-size: 1.1875rem; line-height: 1.55; color: var(--tinta-2); }
.escuro .secao-cabeca > p { color: var(--sobre-grafite); }

/* ---------- Vídeo ---------- */

.video-moldura {
  position: relative; margin-top: clamp(2.25rem, 5vw, 4rem); aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--grafite-2); border: 1px solid var(--fio-grafite);
}
.video-capa { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.video-moldura::after { content: ""; position: absolute; inset: 0; background: oklch(0.205 0.022 262 / 0.72); pointer-events: none; }
.video-moldura.tocando::after, .video-moldura.tocando .video-capa { display: none; }
.video-moldura video, .video-moldura iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: black; }
.video-tocar {
  position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem;
  background: none; border: 0; color: white; cursor: pointer; font: 600 1.125rem/1.2 var(--texto);
}
.video-tocar-circulo {
  display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px white; transition: background-color 0.2s var(--saida), color 0.2s var(--saida);
}
.video-tocar:hover .video-tocar-circulo { background: white; color: var(--grafite); }
.video-espera {
  position: absolute; z-index: 1; left: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1rem, 3vw, 2.5rem);
  display: grid; justify-items: start; gap: 0.55rem; max-width: 23rem; padding: 1rem 1.2rem 1.1rem;
  background: var(--branco); color: var(--tinta); border-top: 2px solid var(--tinta);
  font-size: 1.0625rem; line-height: 1.45;
}

/* ---------- De PCM para PCM ---------- */

.pcm-texto { display: grid; gap: 1.25rem; max-width: 60ch; padding-top: 0.5rem; }
.destaque { font-size: clamp(1.25rem, 1.75vw, 1.5rem); line-height: 1.45; }
.pcm-texto > p:not(.destaque) { color: var(--tinta-2); }
.lingua { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lingua .selo { font-size: 1rem; padding-block: 0.3rem; }

.ficha { width: 100%; margin-top: clamp(3.5rem, 7vw, 5.5rem); border-collapse: collapse; border-top: 2px solid var(--tinta); }
.ficha caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ficha thead th { padding: 0.9rem 2rem 0.8rem 0; text-align: left; font: 600 0.9375rem/1.2 var(--texto); color: var(--tinta-2); border-bottom: 1px solid var(--linha-forte); }
.ficha tbody th, .ficha tbody td { padding: 1.6rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linha); }
.ficha tbody th { width: 41.667%; padding-right: clamp(1.5rem, 4vw, 4rem); font: 600 clamp(1.3125rem, 1.9vw, 1.5rem)/1.25 var(--titulo); text-wrap: balance; }
.ficha tbody td { max-width: 62ch; color: var(--tinta-2); }
.ficha tbody tr:last-child th, .ficha tbody tr:last-child td { border-bottom-color: var(--linha-forte); }

.pcm-fecha {
  display: grid; grid-template-columns: 41.667% minmax(0, 1fr); gap: 1rem 0; margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--fundo);
}
.pcm-fecha h3 { padding-right: clamp(1.5rem, 4vw, 4rem); }
.pcm-fecha p { max-width: 62ch; }

/* ---------- As telas ---------- */

.telas { background: var(--fundo); }
.abas {
  display: flex; margin-top: clamp(2rem, 4vw, 3.25rem); border-bottom: 1px solid var(--linha-forte);
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--linha-forte) transparent;
}
.aba {
  flex: none; min-height: 3rem; margin-bottom: -1px; padding: 0 1.15rem; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
  font: 500 1.0625rem/1.2 var(--texto); color: var(--tinta-2); white-space: nowrap;
  transition: color 0.18s var(--saida), border-color 0.18s var(--saida);
}
.aba:first-child { padding-left: 0; }
.aba:hover { color: var(--tinta); }
.aba[aria-selected="true"] { color: var(--tinta); font-weight: 600; border-bottom-color: var(--azul); }
.aba:focus-visible { outline-offset: -3px; }

.folha { margin-top: 1.75rem; background: var(--branco); border: 1px solid var(--linha-forte); border-top: 2px solid var(--tinta); }
.folha-legenda { padding: 1.1rem clamp(1rem, 2.4vw, 1.75rem); border-bottom: 1px solid var(--linha); font-size: 1.125rem; }
.folha-janela { padding: clamp(0.75rem, 2.2vw, 1.75rem); }
.folha-tela { aspect-ratio: 1160 / 884; display: grid; justify-items: center; align-items: start; }
.folha-tela img { width: calc(var(--w) / 1160 * 100%); max-width: none; }
.folha.troca .folha-tela img { animation: surge 0.35s var(--saida) both; }

/* ---------- Fecho e rodapé ---------- */

.fecho { padding-top: clamp(4.5rem, 9vw, 8rem); }
.fecho-topo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 2rem clamp(2rem, 5vw, 5rem); }
.fecho h2 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: 1.02; letter-spacing: -0.018em; max-width: 15ch; }
.fecho-lado { display: grid; gap: 1.5rem; }
.fecho-lado > p { color: var(--sobre-grafite); font-size: 1.1875rem; line-height: 1.55; }
.fecho-aviso { font-size: 1rem !important; }
.fecho-passos {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--fio-grafite); counter-reset: passo;
}
.fecho-passos li { counter-increment: passo; display: grid; align-content: start; gap: 0.35rem; padding: 1.5rem 2rem 0 0; }
.fecho-passos li + li { padding-left: 2rem; border-left: 1px solid var(--fio-grafite); }
.fecho-passos li::before { content: counter(passo); font: 600 1rem/1 var(--mono); color: var(--azul-claro); }
.fecho-passos strong { margin-top: 0.5rem; font: 600 1.625rem/1.15 var(--titulo); }
.fecho-passos span { color: var(--sobre-grafite); }

.rodape {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem;
  margin-top: clamp(3.5rem, 7vw, 6rem); padding-block: 1.25rem 1.5rem; border-top: 1px solid var(--fio-grafite);
  font-size: 1rem; color: var(--sobre-grafite);
}
.rodape strong { color: white; font: 600 1.25rem/1 var(--titulo); }
.rodape a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- Movimento: discreto, a partir do que já está visível ---------- */

@keyframes surge { from { transform: translateY(0.5rem); } to { transform: none; } }
@keyframes assenta { from { transform: translateY(-0.4rem); } to { transform: none; } }
.item.novo { animation: assenta 0.45s var(--saida) both; animation-delay: calc(var(--i, 0) * 30ms); }
.item .selo.troca { animation: surge 0.3s var(--saida) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Telas menores ---------- */

@media (max-width: 68rem) {
  .trilho { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--linha-forte) transparent; }
  .trilho-grade { width: max-content; min-width: 100%; grid-template-columns: repeat(7, 10.5rem); }
  .dia { scroll-snap-align: start; }
  .cota { display: none; }
}

@media (max-width: 56rem) {
  .nav-links li:not(:last-child) { display: none; }
  .manchete, .secao-cabeca, .fecho-topo, .pcm-fecha { grid-template-columns: minmax(0, 1fr); }
  .manchete { align-items: start; gap: 1.5rem; }
  .secao-cabeca > p, .pcm-texto { padding-top: 0; }
  .pcm-fecha h3 { padding-right: 0; }
  .folha-tela { aspect-ratio: auto; max-width: 24.375rem; margin-inline: auto; }
  .folha-tela img { width: 100%; }
  #aba-celular { display: none; }
  .fecho-passos { grid-template-columns: minmax(0, 1fr); }
  .fecho-passos li { padding: 1.25rem 0; }
  .fecho-passos li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--fio-grafite); }

  .ficha, .ficha tbody, .ficha tr, .ficha tbody th, .ficha tbody td { display: block; width: 100%; }
  .ficha thead { display: none; }
  .ficha tbody tr { padding-block: 1.4rem; border-bottom: 1px solid var(--linha); }
  .ficha tbody th { padding: 0 0 0.6rem; border: 0; }
  .ficha tbody td { padding: 0; border: 0; }
}

@media (max-width: 30rem) {
  body { font-size: 1.0625rem; }
  .nav { padding-block: 1rem; }
  .nav-links .nav-contato { padding-inline: 0.75rem; font-size: 1rem; }
  .manchete { padding-top: 1.5rem; }
  .manchete .botao-fio { display: none; }
  .acoes .botao { flex: 1 1 100%; }
  .sub { font-size: 1.0625rem; }
  .quadro { margin-top: 2rem; }
  .quadro-botoes { width: 100%; margin-left: 0; }
  .quadro-botoes .botao-cheio { flex: 1 1 auto; }
  .item-botao, .item-desfazer { min-height: 2.75rem; }
  .video-espera { position: static; max-width: none; }
  .video-moldura { aspect-ratio: auto; display: grid; }
  .video-capa { height: auto; aspect-ratio: 16 / 9; }
  .video-moldura::after { display: none; }
}
