/* ==========================================================================
   GigaMedia — home de quatro portas, versao 3, tema cinza (03/11/2026)
   A forma da home atual (titulo ao centro e quatro botoes) com acabamento
   profissional: fundo cinza escuro (o preto foi recusado), material real de cada produto atras e
   botoes solidos com o logo do produto.
   ========================================================================== */

:root {
  --verde: #166730;
  --verde-claro: #6fcf8f;
  --tinta: #f3f5f4;
  --texto: #c4ccc8;
  --suave: #95a09a;
  --fio: rgba(255, 255, 255, .08);
  --pagina: #262b2e;
  --veu: 34, 39, 42;          /* rgb do veu, usado com transparencia */

  /* cores de cada produto, tiradas dos logos oficiais e clareadas para o escuro */
  --pncr-claro: #4fd08f;
  --pncr-ouro: #f2b705;
  --ram-claro: #3ed39a;
  --cond-claro: #a9b8c6;

  /* o fundo de cada faixa: cinza medio, nao preto, com um tom do produto */
  --fundo-pncr: #2c3331;
  --fundo-cursos: #2b2f33;
  --fundo-ram: #293134;
  --fundo-cond: #2c3137;

  --topo: 112px;
  --curva: cubic-bezier(.22, .61, .36, 1);
  --sem: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sem);
  font-size: 16px;
  line-height: 1.55;
  color: var(--texto);
  background: var(--pagina);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--verde-claro);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nome { white-space: nowrap; }

.pular {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--verde);
  color: #fff;
  font-weight: 600;
}
.pular:focus { left: 0; top: 0; }

/* ================================ TOPO ================================ */

/* so a marca, centralizada; sem menu enquanto o site for de pagina unica */
.topo {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
}

.faixa {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--topo);
  padding-inline: 20px;
}

.marca img { height: 64px; width: auto; }

/* ================================ PALCO ================================ */

.palco {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  padding: var(--topo) 24px 56px;
}

/* o veu escuro so atras do titulo e dos botoes; as bordas do fundo ficam limpas */
.palco::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--veu), .9) 0, rgba(var(--veu), 0) 22%),
    radial-gradient(ellipse 46% 36% at 50% 46%,
      rgba(var(--veu), .86) 0%,
      rgba(var(--veu), .62) 55%,
      rgba(var(--veu), 0) 100%);
}

/* ============================ O FUNDO: AS FAIXAS ============================ */

.cenario {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
}

.painel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  container-type: size;
  transition: flex-grow .8s var(--curva), opacity .5s ease;
}
.painel + .painel { box-shadow: inset 1px 0 0 var(--fio); }

.painel[data-id="pncr"]        { background: var(--fundo-pncr); }
.painel[data-id="cursos"]      { background: var(--fundo-cursos); }
.painel[data-id="rampipes"]    { background: var(--fundo-ram); }
.painel[data-id="condominios"] { background: var(--fundo-cond); }

/* em repouso o material fica discreto, para nao disputar com os botoes */
.painel > * {
  transition: opacity .6s ease, filter .6s ease, transform .8s var(--curva);
  opacity: .55;
  filter: saturate(.7) brightness(.85);
}

/* o botao em foco abre a sua faixa e devolve a cor ao material dela.
   TESTE de 04/11/2026, a pedido do Caio: a faixa escolhida ocupa a tela inteira
   e as outras tres se fecham. Para voltar ao jeito anterior (a faixa so cresce),
   trocar aqui para "flex-grow: 1; opacity: .55" e, na regra seguinte, "flex-grow: 2" */
.palco:has(.porta:hover) .painel,
.palco:has(.porta:focus-visible) .painel { flex-grow: 0; opacity: 0; }

.palco:has(.porta[data-painel="pncr"]:hover)              .painel[data-id="pncr"],
.palco:has(.porta[data-painel="pncr"]:focus-visible)      .painel[data-id="pncr"],
.palco:has(.porta[data-painel="cursos"]:hover)            .painel[data-id="cursos"],
.palco:has(.porta[data-painel="cursos"]:focus-visible)    .painel[data-id="cursos"],
.palco:has(.porta[data-painel="rampipes"]:hover)          .painel[data-id="rampipes"],
.palco:has(.porta[data-painel="rampipes"]:focus-visible)  .painel[data-id="rampipes"],
.palco:has(.porta[data-painel="condominios"]:hover)       .painel[data-id="condominios"],
.palco:has(.porta[data-painel="condominios"]:focus-visible) .painel[data-id="condominios"] {
  flex-grow: 1;
  opacity: 1;
}
.palco:has(.porta[data-painel="pncr"]:hover)              .painel[data-id="pncr"] > *,
.palco:has(.porta[data-painel="pncr"]:focus-visible)      .painel[data-id="pncr"] > *,
.palco:has(.porta[data-painel="cursos"]:hover)            .painel[data-id="cursos"] > *,
.palco:has(.porta[data-painel="cursos"]:focus-visible)    .painel[data-id="cursos"] > *,
.palco:has(.porta[data-painel="rampipes"]:hover)          .painel[data-id="rampipes"] > *,
.palco:has(.porta[data-painel="rampipes"]:focus-visible)  .painel[data-id="rampipes"] > *,
.palco:has(.porta[data-painel="condominios"]:hover)       .painel[data-id="condominios"] > *,
.palco:has(.porta[data-painel="condominios"]:focus-visible) .painel[data-id="condominios"] > * {
  opacity: 1;
  filter: none;
}

/* a pagina de documento real: folha branca com sombra, como papel sobre a mesa */
.pagina {
  position: absolute;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 26px 50px -18px rgba(0, 0, 0, .75);
}

/* ------------------------------ 01 · PNCR */

/* a seta da marca, enorme e quase transparente, como na abertura do site da PNCR */
.seta-fundo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120cqw;
  aspect-ratio: 1;
  transform: translate(-50%, -18%) rotate(45deg);
  border-top: 28px solid rgba(79, 208, 143, .08);
  border-left: 28px solid rgba(79, 208, 143, .08);
  border-radius: 36px 0 0 0;
}

.paginas {
  position: absolute;
  left: 50%;
  top: 30%;
  width: min(60cqw, 220px);
  aspect-ratio: 520 / 735;
  translate: -50% 0;
}
.paginas .pagina {
  inset: 0;
  width: 100%;
  animation: flutuar 9s ease-in-out infinite;
  transition: transform .8s var(--curva);
}
.paginas .p1 { transform: translate(-24%, 7%) rotate(-8deg); animation-delay: -3s; }
.paginas .p2 { transform: translate(22%, 3%) rotate(6deg);   animation-delay: -6s; }
.paginas .p3 { transform: translate(0, -3%) rotate(-1deg);   z-index: 2; }


@keyframes flutuar {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}

/* ------------------------------ 02 · CURSOS */

/* largura fixa: na faixa estreita aparece um recorte, aberta aparece a tela */
.tela {
  position: absolute;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -24px rgba(0, 0, 0, .8);
  animation: deriva 14s ease-in-out infinite;
}
.t-catalogo {
  width: clamp(420px, 38vw, 560px);
  left: 26%;
  top: 70%;
  animation-delay: -5s;
}
.t-curso {
  width: clamp(480px, 44vw, 660px);
  left: 8%;
  top: 77%;
}

@keyframes deriva {
  0%, 100% { translate: 0 0; }
  50%      { translate: -10px -6px; }
}

/* ------------------------------ 03 · RAMPIPES */

/* o mockup da pagina de produto le as cores destes tokens (triplas HSL), que
   atravessam o shadow DOM. Valores do tema escuro do RamPipes, com o cartao
   puxado para o cinza da home */
.painel[data-id="rampipes"] {
  --background: 200 12% 12%;
  --foreground: 210 20% 92%;
  --card: 200 10% 15%;
  --primary: 152 45% 45%;
  --secondary: 210 12% 22%;
  --muted: 210 12% 22%;
  --muted-foreground: 210 10% 62%;
  --border: 210 12% 26%;
}

/* comeca logo abaixo dos botoes, com a barra da janela a vista; aberta a
   faixa, sobe um pouco e mostra mais da janela */
.mockup {
  position: absolute;
  left: 50%;
  top: 76%;
  width: min(94cqw, 560px);
  translate: -50% 0;
  pointer-events: none;
}
.palco:has(.porta[data-painel="rampipes"]:hover) .mockup,
.palco:has(.porta[data-painel="rampipes"]:focus-visible) .mockup { transform: translateY(-8%); }

/* ------------------------------ 04 · CONDOMINIOS */

.predio {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(88cqw, 330px);
  height: auto;
  transform: translateX(-50%);
}
.predio .estrutura line,
.predio .estrutura rect {
  fill: none;
  stroke: rgba(220, 228, 236, .4);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}
.predio .janelas rect {
  fill: none;
  stroke: rgba(220, 228, 236, .2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.predio .janelas rect.acesa { animation: acender 9s ease-in-out infinite; }
@keyframes acender {
  0%, 40%, 100% { fill: rgba(242, 183, 5, 0); }
  52%, 86%      { fill: rgba(242, 183, 5, .5); }
}

/* primeiras paginas de dois documentos gerados para um condominio ficticio
   (edital de convocacao e ata da AGO). Nunca documento de condominio real:
   o edital real saiu em 03/11 por citar um condominio de verdade */
.docs-cond {
  position: absolute;
  left: 56%;
  top: 20%;
  width: min(44cqw, 156px);
  aspect-ratio: 520 / 735;
  translate: -50% 0;
}
.docs-cond .pagina {
  inset: 0;
  width: 100%;
  animation: flutuar 9s ease-in-out infinite;
}
.docs-cond .d1 { transform: translate(-30%, 4%) rotate(-7deg); animation-delay: -2s; }
.docs-cond .d2 { transform: translate(8%, -6%) rotate(5deg); z-index: 2; animation-delay: -6s; }

/* ========================= A FAIXA ABERTA: MAIS MATERIAL =========================
   Com o mouse (ou o Tab) num botao, a faixa do produto ocupa a tela inteira.
   Ai entram os elementos marcados "so-aberto", que em repouso ficam invisiveis.
   A faixa estreita, em repouso, nao muda. */

.painel > .so-aberto,
.paginas .so-aberto { opacity: 0; }

/* ------------------------------ PNCR aberta: seis paginas, tres de cada lado */

.palco:has(.porta[data-painel="pncr"]:is(:hover, :focus-visible)) .paginas .so-aberto { opacity: 1; }
.paginas .pagina { transition: transform .9s var(--curva), opacity .6s ease; }
.paginas .p4, .paginas .p5, .paginas .p6 { transform: rotate(0); }
.palco:has(.porta[data-painel="pncr"]:is(:hover, :focus-visible)) .p1 { transform: translate(-41cqw, 4%) rotate(-12deg) scale(.84); }
.palco:has(.porta[data-painel="pncr"]:is(:hover, :focus-visible)) .p2 { transform: translate(-36cqw, -3%) rotate(-5deg) scale(.84); }
.palco:has(.porta[data-painel="pncr"]:is(:hover, :focus-visible)) .p3 { transform: translate(-31cqw, 6%) rotate(2deg) scale(.84); }
.palco:has(.porta[data-painel="pncr"]:is(:hover, :focus-visible)) .p4 { transform: translate(31cqw, 6%) rotate(-2deg) scale(.84); }
.palco:has(.porta[data-painel="pncr"]:is(:hover, :focus-visible)) .p5 { transform: translate(36cqw, -3%) rotate(5deg) scale(.84); }
.palco:has(.porta[data-painel="pncr"]:is(:hover, :focus-visible)) .p6 { transform: translate(41cqw, 4%) rotate(12deg) scale(.84); z-index: 1; }

/* ------------------------------ RamPipes aberta: as tres cenas do mockup em fluxo
   Consulta (esquerda) -> Artefato (base) -> Download (direita), ligadas por
   linhas com o dado correndo. O mockup que cicla sozinho some, para nao repetir.
   As posicoes estao em % da faixa, as mesmas do viewBox 1440 x 900 do fluxo. */

.palco:has(.porta[data-painel="rampipes"]:is(:hover, :focus-visible)) .painel[data-id="rampipes"] > .mockup { opacity: 0; }

.ram-fluxo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ram-fluxo path {
  fill: none;
  stroke: hsl(var(--primary) / .45);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  vector-effect: non-scaling-stroke;
}
.ram-fluxo circle { fill: hsl(var(--primary)); }

.ram-janela {
  position: absolute;
  overflow: hidden;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .85);
  font-size: 12.5px;
  color: hsl(var(--foreground));
  transform: translateY(14px);
  transition: opacity .6s ease, filter .6s ease, transform .8s var(--curva);
}
.ram-j1 { left: 3%;  top: 24%;   width: 19%; }
.ram-j3 { left: 78%; top: 24%;   width: 19%; }
.ram-j2 { left: 30.8%; top: 77%; width: 38.4%; }
.ram-j2 { transition-delay: .1s; }
.ram-j3 { transition-delay: .2s; }
.palco:has(.porta[data-painel="rampipes"]:is(:hover, :focus-visible)) .ram-janela { transform: none; }

.ram-barra {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / .5);
}
.ram-barra i { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--muted-foreground) / .35); }
.ram-barra b { margin-left: 6px; font-size: 11.5px; font-weight: 600; color: hsl(var(--muted-foreground)); }
.ram-chip {
  margin-left: auto;
  padding: 2px 9px;
  border: 1px solid hsl(var(--primary) / .35);
  border-radius: 999px;
  background: hsl(var(--primary) / .1);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .09em;
  color: hsl(var(--primary));
}

.ram-corpo { display: grid; gap: 10px; padding: 14px; }

/* consulta */
.ram-q {
  justify-self: end;
  padding: 8px 11px;
  border: 1px solid hsl(var(--primary) / .3);
  border-radius: 11px 11px 3px 11px;
  background: hsl(var(--primary) / .12);
  font-weight: 600;
}
.ram-a { font-size: 12px; line-height: 1.5; }
.ram-selo {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 6px;
  background: hsl(var(--primary) / .1);
  font-size: 10.5px;
  font-weight: 700;
  color: hsl(var(--primary));
}

/* artefato: as tres etapas acendem uma a uma, e o documento sai pronto */
.ram-etapas { display: flex; align-items: center; gap: 8px; }
.ram-etapa {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  font-weight: 600;
  animation: etapa 6s infinite;
}
.ram-etapa em {
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: hsl(var(--muted-foreground) / .35);
  animation: etapa-ponto 6s infinite;
}
.ram-etapa small {
  margin-left: auto;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  color: hsl(var(--muted-foreground));
}
.ram-etapa.e2, .ram-etapa.e2 em { animation-delay: .8s; }
.ram-etapa.e3, .ram-etapa.e3 em { animation-delay: 1.6s; }
.ram-seta { color: hsl(var(--muted-foreground)); }
@keyframes etapa       { 0%, 8% { border-color: hsl(var(--border)); } 14%, 88% { border-color: hsl(var(--primary) / .5); } 100% { border-color: hsl(var(--border)); } }
@keyframes etapa-ponto { 0%, 8% { background: hsl(var(--muted-foreground) / .35); } 14%, 88% { background: hsl(var(--primary)); } 100% { background: hsl(var(--muted-foreground) / .35); } }

.ram-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid hsl(var(--primary) / .4);
  border-radius: 11px;
  background: hsl(var(--background) / .5);
}
.ram-j2 .ram-doc { animation: doc-pronto 6s infinite; }
@keyframes doc-pronto { 0%, 34% { opacity: .25; } 42%, 92% { opacity: 1; } 100% { opacity: .25; } }
.ram-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: hsl(var(--primary) / .14);
  color: hsl(var(--primary));
  font-size: 14px;
}
.ram-doc-txt { display: grid; flex: 1; min-width: 0; }
.ram-doc-txt b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ram-doc-txt small { font-size: 10.5px; font-weight: 700; color: hsl(var(--primary)); }
.ram-fmt { display: flex; gap: 5px; }
.ram-fmt i {
  padding: 2px 7px;
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
}

/* download: a barra enche, aparece o "Baixado" */
.ram-arquivo { border-color: hsl(var(--border)); }
.ram-barra-prog { height: 6px; overflow: hidden; border-radius: 999px; background: hsl(var(--muted)); }
.ram-barra-prog span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: hsl(var(--primary));
  animation: encher 4s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes encher { 0%, 10% { width: 0; } 55%, 100% { width: 100%; } }
.ram-baixado { font-size: 12px; font-weight: 700; color: hsl(var(--primary)); animation: baixado 4s infinite; }
@keyframes baixado { 0%, 55% { opacity: 0; } 62%, 100% { opacity: 1; } }
.ram-avs { display: flex; }
.ram-avs i {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  margin-left: -7px;
  border: 2px solid hsl(var(--card));
  border-radius: 50%;
  background: hsl(var(--secondary));
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}
.ram-avs i:first-child { margin-left: 0; }

/* ------------------------------ Cursos aberta: as telas sobem para as laterais
   e a da turma aparece na base, para dar para ver do que se trata */

.tela { transition: opacity .6s ease, filter .6s ease, left .9s var(--curva), top .9s var(--curva), width .9s var(--curva), transform .9s var(--curva); }
.t-turma { left: 50%; top: 100%; width: clamp(300px, 28vw, 420px); transform: translateX(-50%); }
.palco:has(.porta[data-painel="cursos"]:is(:hover, :focus-visible)) .t-catalogo { left: 1%;  top: 21%; width: 23cqw; transform: rotate(-3deg); }
.palco:has(.porta[data-painel="cursos"]:is(:hover, :focus-visible)) .t-curso    { left: 76.5%; top: 19%; width: 22.5cqw; transform: rotate(3deg); }
.palco:has(.porta[data-painel="cursos"]:is(:hover, :focus-visible)) .t-turma    { top: 76%; width: 40cqw; }

/* ------------------------------ Condominios aberta: bairro de casas e predios */

.bairro {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 27%;
}
.bairro .traco {
  fill: none;
  stroke: rgba(220, 228, 236, .42);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}
.bairro .jan {
  fill: none;
  stroke: rgba(220, 228, 236, .22);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.bairro .jan.acesa { animation: acender 9s ease-in-out infinite; }

/* o predio central da faixa estreita da lugar ao bairro */
.palco:has(.porta[data-painel="condominios"]:is(:hover, :focus-visible)) .painel[data-id="condominios"] > .predio { opacity: 0; }

/* os dois documentos vao para as laterais e crescem */
.docs-cond { transition: opacity .6s ease, filter .6s ease, left .8s var(--curva), width .8s var(--curva); }
.docs-cond .pagina { transition: transform .9s var(--curva); }
.palco:has(.porta[data-painel="condominios"]:is(:hover, :focus-visible)) .docs-cond { left: 50%; width: min(14cqw, 190px); }
.palco:has(.porta[data-painel="condominios"]:is(:hover, :focus-visible)) .docs-cond .d1 { transform: translate(-36cqw, 10%) rotate(-8deg); }
.palco:has(.porta[data-painel="condominios"]:is(:hover, :focus-visible)) .docs-cond .d2 { transform: translate(34cqw, 0) rotate(6deg); }

/* ================================ O CENTRO ================================ */

.centro {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  text-align: center;
}

.centro h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--tinta);
}
.centro h1 .h1-tom { color: #a9b5af; }

.subtitulo {
  margin-top: 16px;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--texto);
}
.subtitulo-2 {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  color: var(--suave);
}

/* ------------------------------ os quatro botoes */

.portas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(32px, 5.5vh, 52px);
  text-align: left;
}

.porta {
  --acento: var(--verde-claro);
  --marca-fundo: rgba(255, 255, 255, .06);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px 16px 16px;
  background: rgba(46, 52, 56, .86);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 1px 2px rgba(0, 0, 0, .3),
    0 14px 32px -18px rgba(0, 0, 0, .8);
  backdrop-filter: blur(10px);
  transition: transform .25s var(--curva), box-shadow .25s ease, background-color .25s ease;
}

.porta[data-painel="pncr"]        { --acento: var(--pncr-claro);  --marca-fundo: rgba(255, 255, 255, .94); }
.porta[data-painel="cursos"]      { --acento: var(--verde-claro); --marca-fundo: rgba(111, 207, 143, .12); }
.porta[data-painel="rampipes"]    { --acento: var(--ram-claro);   --marca-fundo: rgba(255, 255, 255, .94); }
.porta[data-painel="condominios"] { --acento: var(--cond-claro);  --marca-fundo: rgba(169, 184, 198, .12); }

.porta:hover,
.porta:focus-visible {
  background: rgba(56, 63, 68, .95);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .16),
    0 2px 4px rgba(0, 0, 0, .35),
    0 20px 44px -18px rgba(0, 0, 0, .9);
}

.porta-marca {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--marca-fundo);
}
.porta-marca img { width: 28px; height: 28px; }
.porta-marca svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--acento);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.porta-corpo { display: grid; gap: 2px; min-width: 0; }

.porta-nome {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tinta);
  transition: color .2s ease;
}
.porta-linha {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--suave);
}

.porta-seta {
  font-size: 18px;
  color: var(--suave);
  transition: transform .25s var(--curva), color .2s ease;
}

.porta:hover .porta-nome,
.porta:focus-visible .porta-nome { color: var(--acento); }
.porta:hover .porta-seta,
.porta:focus-visible .porta-seta { color: var(--acento); transform: translateX(4px); }

.porta-breve { cursor: default; }
.porta-breve-selo {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-size: 12px;
  font-weight: 500;
  color: var(--suave);
  white-space: nowrap;
}

/* ------------------------------ o conceito-raiz, abaixo dos botoes
   "Formacao que fideliza" (04/11/2026). Texto oficial em CONTEXTO.md 3.6.
   Discreto de proposito: e a postura da casa, nao uma quinta porta. */

.conceito {
  position: relative;
  max-width: 660px;
  margin: clamp(22px, 3.6vh, 34px) auto 0;
  padding-top: clamp(18px, 2.8vh, 24px);
  border-top: 1px solid var(--fio);
  font-size: 14px;
  line-height: 1.6;
  color: var(--suave);
  text-wrap: pretty;
  transition: opacity .35s ease;
}
/* com a faixa de um produto aberta, a frase sai de cena: o material da faixa
   aberta ocupa esse espaco e foi desenhado sem ela (testes de 04/11/2026) */
.palco:has(.porta:hover) .conceito,
.palco:has(.porta:focus-visible) .conceito { opacity: 0; }
/* veu proprio, como o do titulo: a frase fica abaixo do veu central e cai
   sobre a parte mais carregada do fundo */
.conceito::before {
  content: "";
  position: absolute;
  inset: -36px -120px -48px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side,
    rgba(var(--veu), .94) 0%,
    rgba(var(--veu), .86) 62%,
    rgba(var(--veu), 0) 100%);
}
.conceito strong { font-weight: 600; color: var(--tinta); }
.conceito a {
  font-weight: 600;
  color: var(--verde-claro);
  white-space: nowrap;
  transition: color .2s ease;
}
.conceito a span { display: inline-block; transition: transform .25s var(--curva); }
.conceito a:hover,
.conceito a:focus-visible { color: #9be3b2; }
.conceito a:hover span,
.conceito a:focus-visible span { transform: translateX(3px); }

/* ================================ RESPOSTAS ================================ */

@media (max-width: 760px) {
  :root { --topo: 96px; }
  .so-aberto { display: none; }
  .marca img { height: 54px; }
  .palco {
    height: auto;
    min-height: 100svh;
    padding: calc(var(--topo) + 24px) 16px 40px;
  }
  .palco::after {
    background: linear-gradient(180deg,
      rgba(var(--veu), .92) 0%,
      rgba(var(--veu), .8) 60%,
      rgba(var(--veu), .7) 100%);
  }

  .portas { grid-template-columns: 1fr; gap: 10px; }
  .porta { padding: 14px 16px 14px 14px; }

  /* no celular o fundo vira textura; os botoes nao abrem faixa */
  .palco:has(.porta:hover) .painel { opacity: 1; flex-grow: 1; }
  .paginas { top: 22%; }
  .t-catalogo { top: 50%; }
  .t-curso    { top: 58%; }
  .mockup     { top: 58%; }
}

@media (prefers-reduced-motion: reduce) {
  .paginas .pagina, .docs-cond .pagina, .tela, .predio .janelas rect.acesa { animation: none; }
  .predio .janelas rect.acesa { fill: rgba(242, 183, 5, .5); }
  .painel, .painel > *, .paginas .pagina, .porta, .porta-seta { transition-duration: .01ms; }
}
