/* ==========================================================================
   DL SERVICE — 04 · PÁGINAS DE DETALHE E AJUSTES FINOS
   ========================================================================== */

/* Correções dos mockups do portfólio */
.mock-p {
  display: block;
  width: 72%;
  height: 3px;
  margin-top: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
}
.mock-p + .mock-p { width: 54%; margin-top: 4px; }
.mock--nv .mock-logo { border-color: #1c1917; background: #1c1917; }
.mock--neon .mock-logo { border-color: rgba(232, 121, 249, 0.6); background: rgba(232, 121, 249, 0.25); }
.mock--neon .mock-opts { margin-top: 0; }

/* Ícones play/pause */
.demo-play .i-pause,
.video-play .i-pause { display: none; }
.demo-play.is-playing .i-play,
.video-play.is-playing .i-play { display: none; }
.demo-play.is-playing .i-pause,
.video-play.is-playing .i-pause { display: block; }

/* Player de vídeo (demo) */
.video-mock {
  position: relative;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b0b0f;
  overflow: hidden;
}

.video-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 16 / 9;
  padding: 14px;
  background:
    radial-gradient(80% 110% at 85% 0%, rgba(6, 182, 212, 0.3), transparent 62%),
    radial-gradient(70% 90% at 10% 100%, rgba(16, 185, 129, 0.22), transparent 62%),
    linear-gradient(150deg, #101018, #08080b);
  overflow: hidden;
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 85%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 85%);
  opacity: 0.55;
}

.video-frame::after {
  content: "DEMO";
  position: absolute;
  right: -8px;
  bottom: -26px;
  color: rgba(255, 255, 255, 0.055);
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
}

.video-top,
.video-bottom { position: relative; z-index: 2; }

.video-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: #a5f3fc;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-title {
  position: absolute;
  left: 14px;
  bottom: 38px;
  z-index: 2;
  max-width: 68%;
  font-family: var(--font-display);
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #fafafa;
}

.video-title em {
  display: block;
  font-style: normal;
  color: #67e8f9;
  font-size: 0.78em;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ecfeff;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), background-color 0.2s ease;
}

.video-play:hover { transform: translate(-50%, -50%) scale(1.06); background: rgba(6, 182, 212, 0.32); }
.video-play svg { width: 20px; height: 20px; }

.video-time {
  position: absolute;
  right: 14px;
  bottom: 38px;
  z-index: 2;
  color: #d4d4d8;
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.video-progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.video-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #22d3ee, #10b981);
  transition: width 0.25s linear;
}

.video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

/* Lista de features em 2 colunas quando houver espaço */
@media (min-width: 640px) {
  .detail-body .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Ajuste do hero de detalhe no mobile */
.detail-hero h1 { line-height: 1.06; }
.detail-hero .lead { margin-bottom: 0; }

.detail-body h2 {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.detail-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Etiqueta de categoria */
.detail-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(6, 182, 212, 0.24);
  border-radius: 7px;
  background: rgba(6, 182, 212, 0.07);
  color: #a5f3fc;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Selo de preço na sidebar */
.detail-price-card .price-prefix {
  display: block;
  margin-bottom: 4px;
  color: #5eead4;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-price-card .price-unit {
  margin-top: 3px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Conteúdo relacionado no mobile fica em grid confortável */
@media (max-width: 420px) {
  .related-grid { grid-template-columns: 1fr; }
  .detail-price { font-size: 2rem; }
  .spec-row { align-items: flex-start; }
  .spec-row strong { max-width: 62%; }
}

/* Melhor respiro no rodapé em telas com botão flutuante */
@media (max-width: 939px) {
  .site-footer { padding-bottom: 54px; }
}

/* Página 404 */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 78svh;
  padding-top: calc(var(--header) + 40px);
}
.notfound .code-404 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
}
.notfound h1 { margin-top: 12px; max-width: 16ch; }
.notfound p { margin-top: 14px; max-width: 46ch; }
.notfound .btn-row { margin-top: 24px; }
